Sha256: 1a828780a3931133b55383e4314c7497cb9e49080c281eccd6c2c91b53336fb2
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
# Lotus::Validations Validations mixin for Ruby objects ## v0.2.1 - 2014-12-23 ### Added - [Luca Guidi] Introduced `Validations::Errors#to_h` and `to_a` - [Luca Guidi] Introduced `Validations::Errors#any?` ### Fixed - [Satoshi Amemiya] Made `Validations#valid?` idempotent ## v0.2.0 - 2014-11-23 ### Added - [Luca Guidi] Skip attribute whitelisting when a validator does not define any attribute - [Luca Guidi] Official support for Rubinius 2.3+ - [Luca Guidi] Implemented `#each` in order to allow bulk operations on attributes - [Luca Guidi] Implemented `#to_h` to make validations usable by other libraries - [Luca Guidi] Made `#initialize` to accept Hashes with strings as keys, but only for declared attributes - [Luca Guidi] Lazy coercions, from now on `valid?` is not required to obtain a coerced value from a single attribute - [Rik Tonnard] Made validators reusable by allowing infinite inclusion ## v0.1.0 - 2014-10-23 ### Added - [Luca Guidi] Made `#initialize` to accept any object that implements `#to_h` - [Luca Guidi] Custom coercions for user defined classes - [Luca Guidi] Raise an exception at the load time when a validation is not recognized - [Luca Guidi] Allow validators inheritance - [Luca Guidi] Confirmation validation - [Luca Guidi] Exclusion validation - [Luca Guidi] Size validation - [Luca Guidi] Acceptance validation - [Jeremy Stephens] Inclusion validation - [Luca Guidi] Format validation - [Luca Guidi] Presence validation - [Luca Guidi] Coercions - [Luca Guidi] Basic module inclusion - [Luca Guidi] Official support for JRuby 1.7+ (with 2.0 mode) - [Luca Guidi] Official support for MRI 2.0+ ### Fixed - [Jeremy Stephens] Ensure to not fail validations when coerce falsey values - [Luca Guidi] Ensure `Lotus::Validations#valid?` to be idempotent
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lotus-validations-0.2.1 | CHANGELOG.md |