Skip to content

Commit

Permalink
Bump v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nepalez committed Jan 28, 2017
1 parent eaf650a commit 0c9b1f9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## v1.1.0 2017-01-28

# Added:
- enhancement via `Dry::Initializer::Attribute.dispatchers` registry (nepalez)

# Register dispatcher for `:string` option
Dry::Initializer::Attribute.dispatchers << ->(string: nil, **op) do
string ? op.merge(type: proc(&:to_s)) : op
end

# Now you can use the `:string` key for `param` and `option`
class User
extend Dry::Initializer
param :name, string: true
end

User.new(:Andy).name # => "Andy"

# Internals:
- optimize assignments for performance (nepalez)

[Compare v1.0.0...v1.1.0](https://github.com/dry-rb/dry-initializer/compare/v1.0.0...v1.1.0)

## v1.0.0 2017-01-22

In this version the code has been rewritten for simplicity
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 = "1.0.0"
gem.version = "1.1.0"
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 0c9b1f9

Please sign in to comment.