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 +4 -4
- data/CHANGELOG.md +15 -13
- data/README.md +261 -573
- data/hanami-validations.gemspec +6 -10
- data/lib/hanami/validations/form.rb +26 -20
- data/lib/hanami/validations/version.rb +1 -2
- data/lib/hanami/validations.rb +35 -311
- data/lib/hanami/validator.rb +9 -0
- metadata +13 -84
- data/lib/hanami/validations/inline_predicate.rb +0 -48
- data/lib/hanami/validations/namespace.rb +0 -67
- data/lib/hanami/validations/predicates.rb +0 -47
- data/lib/hanami-validations.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c94b88f4b0a39d33e6ce6d5a27e9c843afc611b3a5d76ac48799c05648c73ed1
|
4
|
+
data.tar.gz: 93a768f5a5c977ada49f6f400bade010ebe87be3072ab7b1fdec6e36afe0f00a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
##
|
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]
|
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
|
-
|
17
|
-
|
18
|
-
- [
|
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
|