diff --git a/CHANGELOG.md b/CHANGELOG.md index 9abdd08..30e5810 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/README.md b/README.md index 5abf44b..fee81b3 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/dry-initializer.gemspec b/dry-initializer.gemspec index 125f177..b8e2554 100644 --- a/dry-initializer.gemspec +++ b/dry-initializer.gemspec @@ -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"