CHANGELOG.md in rubanok-0.2.1 vs CHANGELOG.md in rubanok-0.3.0

- old
+ new

@@ -1,9 +1,20 @@ # Change log ## master +## 0.3.0 (2020-10-21) + +- Add `filter_with: Symbol | Proc` option to `.map` to allowing filtering the input value. ([@palkan][]) + +- Allow specifying `ignore_empty_values: *` per rule. ([@palkan][]) + +- Add `prepare` DSL method to transform the input once before the first rule is activated. ([@palkan][]) + +When no rules match, the method is not called. +Useful when you want to perform some default transformations. + ## 0.2.1 (2019-08-24) - Fix bug with trying to add a helper for API controller. ([@palkan][]) Fixes [#10](https://github.com/palkan/rubanok/issues/10). @@ -12,11 +23,11 @@ - Add `Process.project` and `rubanok_scope` methods to get the Hash of recognized params. ([@palkan][]) ```ruby class PostsProcessor < Rubanok::Processor - map :q { ... } - match :page, :per_page, activate_on: :page { ... } + map(:q) { block } + match(:page, :per_page, activate_on: :page) { block } end PostsProcessor.project(q: "search_me", filter: "smth", page: 2) # => { q: "search_me", page: 2 }