Skip to content

Commit

Permalink
Bump v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nepalez committed Feb 1, 2018
1 parent ed951c3 commit cb94d0b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.4.0] [2018-02-01]

### Added
- Dispatchers for adding syntax sugar to `param` and `options` (nepalez)

```ruby
# Converts `integer: true` to `type: proc(&:to_i)`
dispatcher = ->(op) { op[:integer] ? op.merge(type: proc(&:to_i)) : op }
# Register a dispatcher
Dry::Initializer::Dispatchers << dispatcher
# Use syntax sugar
class User
param :id, integer: true # same as param :id, proc(&:to_i)
end
```

## [2.3.0] [2017-09-19]

### Added
Expand Down Expand Up @@ -741,3 +757,4 @@ First public release
[2.1.0]: https://github.com/dry-rb/dry-initializer/compare/v2.0.0...v2.1.0
[2.2.0]: https://github.com/dry-rb/dry-initializer/compare/v2.1.0...v2.2.0
[2.3.0]: https://github.com/dry-rb/dry-initializer/compare/v2.2.0...v2.3.0
[2.4.0]: https://github.com/dry-rb/dry-initializer/compare/v2.3.0...v2.4.0
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 = "2.3.0"
gem.version = "2.4.0"
gem.author = ["Vladimir Kochnev (marshall-lee)", "Andrew Kozin (nepalez)"]
gem.email = "andrew.kozin@gmail.com"
gem.homepage = "https://github.com/dryrb/dry-initializer"
Expand Down

0 comments on commit cb94d0b

Please sign in to comment.