dry-rb / dry-schema

Coercion and validation for data structures
https://dry-rb.org/gems/dry-schema
MIT License
421 stars 110 forks source link

Back to eql? and respond_to? #443

Closed solnic closed 1 year ago

solnic commented 1 year ago

This makes sure that eql? and respond_to? with changed arity in dry-logic will work as expected, so that we don't have to go through deprecation and renaming of these predicates.

For context - it turned out that some tools that inspect all runtime objects rely on eql? or respond_to?, which means that Dry::Logic::Predicates module which has its own implementation of these methods broke such tools. To fix it, we've made the predicates compatible with the default Object#eql? and Object#respond_to? behavior.