Skip to content

Commit

Permalink
Bump version to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DevL committed Mar 20, 2015
1 parent 5ff5f5f commit ceb9b95
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Macros expanding into code that can be safely used in guard clauses.
Update your `mix.exs` file and run `mix deps.get`.
```elixir
defp deps do
[{:guardsafe, "~> 0.3.1"}]
[{:guardsafe, "~> 0.4.0"}]
end
```

Expand Down Expand Up @@ -71,6 +71,14 @@ than `Kernel` you need to require it before use, e.g. `require Integer`.
* `divisible_by?/2` - checks whether two integers are evenly divisible.
* `even?/1` - returns true for even integers.
* `odd?/1` - returns true for odd integers.
* `within?/3` - checks whether a value is in the range of the last two arguments.

#### Macros for dates and times
* `date?/1` - checks if the term is an Erlang-style date tuple.
* `datetime?/1` - checks if the term is an Erlang-style datetime tuple.
* `time?/1` - checks if the term is an Erlang-style time tuple.

_These can come in handy when working with a library such as [GoodTimes](https://github.com/magplus/good_times)._

### Why nil? and float? instead of is_nil and is_float

Expand Down
2 changes: 1 addition & 1 deletion lib/guardsafe.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Guardsafe do
@vsn "0.3.1"
@vsn "0.4.0"
@doc false
def version, do: @vsn

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Guardsafe.Mixfile do
def project do
[
app: :guardsafe,
version: "0.3.1",
version: "0.4.0",
name: "Guardsafe",
source_url: "https://github.com/DevL/guardsafe",
homepage_url: "https://hex.pm/packages/guardsafe",
Expand Down

0 comments on commit ceb9b95

Please sign in to comment.