Skip to content

Commit

Permalink
Bump v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nepalez committed Apr 28, 2016
1 parent 23881e1 commit d9d17ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.1.1 2016-04-28

### Added

* `include Dry::Initializer.define -> do .. end` syntax (flash-gordon)

## v0.1.0 2016-04-26

Class DSL splitted to mixin and container versions (thanks to @AMHOL for the idea).
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ Instead of extending a class with the `Dry::Initializer::Mixin`, you can include
require 'dry-initializer'

class User
# notice `{}` syntax for the block, not `do..end`
include Dry::Initializer.define {
# notice `-> do .. end` syntax
include Dry::Initializer.define -> do
param :name, type: String
param :role, default: proc { 'customer' }
option :admin, default: proc { false }
}
end
end
```

Expand Down
2 changes: 1 addition & 1 deletion dry-initializer.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |gem|
gem.name = "dry-initializer"
gem.version = "0.1.0"
gem.version = "0.1.1"
gem.author = ["Vladimir Kochnev (marshall-lee)", "Andrew Kozin (nepalez)"]
gem.email = ["hashtable@yandex.ru", "andrew.kozin@gmail.com"]
gem.homepage = "https://github.com/dryrb/dry-initializer"
Expand Down

0 comments on commit d9d17ae

Please sign in to comment.