hanami-validations 1.3.8 → 2.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6037e2050e7638e3d113854d7e951fd0c7caf4910040a996308cd2eed542905
4
- data.tar.gz: 9b66dcca9264c8563f6adc4099868aeaf49c28e36953eb7ce8986ffcc89be2b9
3
+ metadata.gz: c94b88f4b0a39d33e6ce6d5a27e9c843afc611b3a5d76ac48799c05648c73ed1
4
+ data.tar.gz: 93a768f5a5c977ada49f6f400bade010ebe87be3072ab7b1fdec6e36afe0f00a
5
5
  SHA512:
6
- metadata.gz: bd56c613075a47d861de741089756ee7f326f4bc8cac8a2120faf04fae92df1b26c1c13ae268fb90b3acd960d89ecdac617c03fb62929986bd55796e1f0c12f7
7
- data.tar.gz: 391abc2c160bb6bfca2d4aa1808824681ef70dbef6c1245159d5045a2a7a13d5fd03d8690d3ad66b9e8228e0e84eb8d6dd0207e4d624f4da682762db12039059
6
+ metadata.gz: 01bae680528b53b9564393aaa923f6e66f91d9ccda370e6297c6c458b0fbc127c83a39a1ba61d110bb7c698e28cb95e8ce8bb0f7f174bc151a384bb7b3bdb3d5
7
+ data.tar.gz: 15c2f866bae8f77acca611e4a70aefc6da227fc33aa556e14beff08e2725880e094a6de7fa9a5cbcff22fa8fce80f282f4623627cb206119821ebdab41e5fc6a
data/CHANGELOG.md CHANGED
@@ -1,21 +1,23 @@
1
1
  # Hanami::Validations
2
2
  Validations mixin for Ruby objects
3
3
 
4
- ## v1.3.8 - 2021-10-14
5
- ### Fixed
6
- - [Luca Guidi] Ensure `.validations` to not raise `NoMethodError: undefined method 'size' for nil:NilClass`. Due to a breaking change in transitive dependency (`dry-configurable` `0.13.x`).
7
-
8
- ## v1.3.7 - 2021-01-06
9
- ### Fixed
10
- - [Panagiotis Matsinopoulos] Ensure `predicate` and `predicates` to work together
11
-
12
- ## v1.3.6 - 2020-01-08
4
+ ## v2.0.0.alpha1 - 2019-07-26
13
5
  ### Added
14
- - [Luca Guidi] Official support for Ruby: MRI 2.7
6
+ - [Luca Guidi] Introduced `Hanami::Validator`
7
+ - [Luca Guidi] Added support to validate JSON data
8
+ - [Luca Guidi] Added rules
9
+ - [Luca Guidi] Allow to inherit validations from superclasses (e.g. `ApplicationValidator < Hanami::Validator` => `SignupValidator < ApplicationValidator`)
10
+ - [Luca Guidi] Allow to error messages to receive arbitrary information as a `Hash` (e.g. `error_code: 123`), which will be interpolated in the final error message.
11
+ - [Luca Guidi] Added support for validator external dependencies
15
12
 
16
- ## v1.3.5 - 2019-07-26
17
- ### Fixed
18
- - [ippachi] Ensure I18n doesn't crash when used for inline predicates
13
+ ### Changed
14
+ - [Luca Guidi] Drop support for Ruby: MRI 2.3, JRuby 9.1.
15
+ - [Luca Guidi] New validation syntax
16
+ - [Luca Guidi] Removed custom predicates (`Hanami::Validations.predicate`)
17
+ - [Luca Guidi] Removed global custom predicates (`Hanami::Validations::Predicates`)
18
+ - [Luca Guidi] Removed messages path setting (`Hanami::Validations.messages_path=`)
19
+ - [Luca Guidi] Removed messages namespace setting (`Hanami::Validations.namespace`)
20
+ - [Luca Guidi] Removed messages engine setting (`Hanami::Validations.messages`)
19
21
 
20
22
  ## v1.3.4 - 2019-07-26
21
23
  ### Fixed