v1.0.0.rc2 (YANKED)
Pre-release
Pre-release
This was yanked on rubygems.org because the bundled gem was missing config directory, thus it was not possible to require it. It was fixed in rc3.
Added
- [EXPERIMENTAL] support for registering macros via
Dry::Validation::Macros.register(:your_macro, &block)(solnic) - [EXPERIMENTAL]
:acceptanceas the first built-in macro (issue #157) (solnic)
Fixed
- Passing invalid argument to
failurewill raise a meaningful error instead of crashing (solnic)
Changed
- In rule validation blocks,
valuesis now an instance of a hash-likeDry::Validation::Valuesclass, rather thanDry::Schema::Result. This gives more convenient access to data within rules (solnic) - Dependency on
dry-schemawas updated to~> 1.0(solnic)