dry-rb / dry-logic

Predicate logic with rule composition
https://dry-rb.org/gems/dry-logic/
MIT License
179 stars 66 forks source link

`nil?` method with argument doesn't work #40

Closed AnatolyShirykalov closed 5 years ago

AnatolyShirykalov commented 5 years ago

Can't use version 0.5.0. Method nil? was called without an argument.

ArgumentError: wrong number of arguments (given 0, expected 1)
  /home/anatoly/.gem/ruby/2.6.0/gems/dry-logic-0.5.0/lib/dry/logic/predicates.rb:17:in `nil?'
  /home/anatoly/.gem/ruby/2.6.0/gems/dry-configurable-0.7.0/lib/dry/configurable.rb:110:in `setting'
  /home/anatoly/.gem/ruby/2.6.0/gems/dry-validation-0.12.2/lib/dry/validation/schema/class_interface.rb:15:in `<class:Schema>'
  /home/anatoly/.gem/ruby/2.6.0/gems/dry-validation-0.12.2/lib/dry/validation/schema/class_interface.rb:7:in `<module:Validation>'
  /home/anatoly/.gem/ruby/2.6.0/gems/dry-validation-0.12.2/lib/dry/validation/schema/class_interface.rb:6:in `<module:Dry>'
  /home/anatoly/.gem/ruby/2.6.0/gems/dry-validation-0.12.2/lib/dry/validation/schema/class_interface.rb:5:in `<top (required)>'
solnic commented 5 years ago

@AnatolyShirykalov this will be fixed in dry-validation 0.13.0. It'll be released later today. Sorry about the trouble.

solnic commented 5 years ago

Please update to dry-validation 0.13.0. It's fixed there.