Skip to content

Commit d9d17ae

Browse files
committed
Bump v0.1.1
1 parent 23881e1 commit d9d17ae

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v0.1.1 2016-04-28
2+
3+
### Added
4+
5+
* `include Dry::Initializer.define -> do .. end` syntax (flash-gordon)
6+
17
## v0.1.0 2016-04-26
28

39
Class DSL splitted to mixin and container versions (thanks to @AMHOL for the idea).

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ Instead of extending a class with the `Dry::Initializer::Mixin`, you can include
8484
require 'dry-initializer'
8585

8686
class User
87-
# notice `{}` syntax for the block, not `do..end`
88-
include Dry::Initializer.define {
87+
# notice `-> do .. end` syntax
88+
include Dry::Initializer.define -> do
8989
param :name, type: String
9090
param :role, default: proc { 'customer' }
9191
option :admin, default: proc { false }
92-
}
92+
end
9393
end
9494
```
9595

dry-initializer.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |gem|
22
gem.name = "dry-initializer"
3-
gem.version = "0.1.0"
3+
gem.version = "0.1.1"
44
gem.author = ["Vladimir Kochnev (marshall-lee)", "Andrew Kozin (nepalez)"]
55
gem.email = ["hashtable@yandex.ru", "andrew.kozin@gmail.com"]
66
gem.homepage = "https://github.com/dryrb/dry-initializer"

0 commit comments

Comments
 (0)