hanami-validations 1.3.7 → 2.0.0.beta1

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: 1a260f62f3f079229e28d43c20ce88826e06d23aff8ddcd4e67b1bda812b87a2
4
- data.tar.gz: 2f0d8555be09a4a113570f99e810a76a141b7a6728aff90c073a8740cf0c2573
3
+ metadata.gz: eda81bb07fed409acb5e005379b64604a8e085eeff66f766b7687d8d43f749ec
4
+ data.tar.gz: 06c36d39aad7a13e3a2af1a32c82d29c9bd5c78330749e581fe59f3ef8c54dba
5
5
  SHA512:
6
- metadata.gz: 3d6ce05e6ca243b83a4a7d0ab5b3d3c41fbf86ad552f68b7439bd4f57dcbc673747a86c74b417fdeec184cdb501f208fcba5b210c5bd0b163755e9b3ef0d9fbe
7
- data.tar.gz: c90675c4bd0ecf46a0bc9d9c6ec5e35b3d8e79270fe40abdb29c344fa8e37fc2eeb9adf3e8ae871e9428ded029ea8e3e312132d9b1fe1ed44a96250dcb9b1223
6
+ metadata.gz: 9f22646af1a99c979d0759d53345ac3f8e0c3c1b030285acfd8f94143f6d02a1148ef79679d556bdf8f5670a0b39c59a1b5078a2691b12e44377cd4be40c5f84
7
+ data.tar.gz: 7e2329639eab468ff83b28c7ead59b9817770bd91f239ebadfec42fc43daf99f2dd54cdd28a9c004b55eca6bc07842c588f6a83d411eae076fff51736177e492
data/CHANGELOG.md CHANGED
@@ -1,48 +1,106 @@
1
1
  # Hanami::Validations
2
+
2
3
  Validations mixin for Ruby objects
3
4
 
5
+ ## v2.0.0.beta1 - 2022-07-20
6
+
7
+ ### Added
8
+
9
+ - [Luca Guidi] Official support for Ruby: MRI 3.1
10
+
11
+ ## v2.0.0.alpha2 - 2021-05-04
12
+
13
+ ### Added
14
+
15
+ - [Luca Guidi] Official support for Ruby: MRI 3.0
16
+
17
+ ### Changed
18
+
19
+ - [Luca Guidi] Drop support for Ruby: MRI 2.4, 2.5
20
+
21
+ ## v2.0.0.alpha1 - 2019-07-26
22
+
23
+ ### Added
24
+
25
+ - [Luca Guidi] Introduced `Hanami::Validator`
26
+ - [Luca Guidi] Added support to validate JSON data
27
+ - [Luca Guidi] Added rules
28
+ - [Luca Guidi] Allow to inherit validations from superclasses (e.g. `ApplicationValidator < Hanami::Validator` => `SignupValidator < ApplicationValidator`)
29
+ - [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.
30
+ - [Luca Guidi] Added support for validator external dependencies
31
+
32
+ ### Changed
33
+
34
+ - [Luca Guidi] Drop support for Ruby: MRI 2.3, JRuby 9.1.
35
+ - [Luca Guidi] New validation syntax
36
+ - [Luca Guidi] Removed custom predicates (`Hanami::Validations.predicate`)
37
+ - [Luca Guidi] Removed global custom predicates (`Hanami::Validations::Predicates`)
38
+ - [Luca Guidi] Removed messages path setting (`Hanami::Validations.messages_path=`)
39
+ - [Luca Guidi] Removed messages namespace setting (`Hanami::Validations.namespace`)
40
+ - [Luca Guidi] Removed messages engine setting (`Hanami::Validations.messages`)
41
+
4
42
  ## v1.3.7 - 2021-01-06
43
+
5
44
  ### Fixed
45
+
6
46
  - [Panagiotis Matsinopoulos] Ensure `predicate` and `predicates` to work together
7
47
 
8
48
  ## v1.3.6 - 2020-01-08
49
+
9
50
  ### Added
51
+
10
52
  - [Luca Guidi] Official support for Ruby: MRI 2.7
11
53
 
12
54
  ## v1.3.5 - 2019-07-26
55
+
13
56
  ### Fixed
57
+
14
58
  - [ippachi] Ensure I18n doesn't crash when used for inline predicates
15
59
 
16
60
  ## v1.3.4 - 2019-07-26
61
+
17
62
  ### Fixed
63
+
18
64
  - [Luca Guidi] Ensure to load i18n backend (including `i18n` gem), when messages engine is `:i18n`
19
65
 
20
66
  ## v1.3.3 - 2019-01-31
67
+
21
68
  ### Fixed
69
+
22
70
  - [Luca Guidi] Depend on `dry-validation` `~> 0.11`, `< 0.12`
23
71
  - [Luca Guidi] Depend on `dry-logic` `~> 0.4.2`, `< 0.5`
24
72
 
25
73
  ## v1.3.2 - 2019-01-30
74
+
26
75
  ### Fixed
76
+
27
77
  - [Luca Guidi] Depend on `dry-validation` `~> 0.11.2`, `< 0.12` in order to skip non compatible `dry-logic` `0.5.0`
28
78
 
29
79
  ## v1.3.1 - 2019-01-18
80
+
30
81
  ### Added
82
+
31
83
  - [Luca Guidi] Official support for Ruby: MRI 2.6
32
84
  - [Luca Guidi] Support `bundler` 2.0+
33
85
 
34
86
  ## v1.3.0 - 2018-10-24
35
87
 
36
88
  ## v1.3.0.beta1 - 2018-08-08
89
+
37
90
  ### Added
91
+
38
92
  - [Luca Guidi] Official support for JRuby 9.2.0.0
39
93
 
40
94
  ## v1.2.2 - 2018-06-05
95
+
41
96
  ### Fixed
97
+
42
98
  - [Luca Guidi] Revert dependency to `dry-validation` to `~> 0.11`, `< 0.12`
43
99
 
44
100
  ## v1.2.1 - 2018-06-04
101
+
45
102
  ### Fixed
103
+
46
104
  - [Luca Guidi] Bump dependency to `dry-validation` to `~> 0.12`
47
105
 
48
106
  ## v1.2.0 - 2018-04-11
@@ -54,7 +112,9 @@ Validations mixin for Ruby objects
54
112
  ## v1.2.0.beta2 - 2018-03-23
55
113
 
56
114
  ## v1.2.0.beta1 - 2018-02-28
115
+
57
116
  ### Added
117
+
58
118
  - [Luca Guidi] Official support for Ruby: MRI 2.5
59
119
 
60
120
  ## v1.1.0 - 2017-10-25
@@ -74,22 +134,31 @@ Validations mixin for Ruby objects
74
134
  ## v1.0.0.beta2 - 2017-03-17
75
135
 
76
136
  ## v1.0.0.beta1 - 2017-02-14
137
+
77
138
  ### Added
139
+
78
140
  - [Luca Guidi] Official support for Ruby: MRI 2.4
79
141
 
80
142
  ### Fixed
143
+
81
144
  - [Luca Guidi] Don't let inline predicates to discard other YAML error messages
82
145
 
83
146
  ## v0.7.1 - 2016-11-18
147
+
84
148
  ### Fixed
149
+
85
150
  - [Luca Guidi] Ensure custom validators to work with concrete classes with name
86
151
 
87
152
  ## v0.7.0 - 2016-11-15
153
+
88
154
  ### Changed
155
+
89
156
  - [Luca Guidi] Official support for Ruby: MRI 2.3+ and JRuby 9.1.5.0+
90
157
 
91
158
  ## v0.6.0 - 2016-07-22
159
+
92
160
  ### Added
161
+
93
162
  - [Luca Guidi] Predicates syntax
94
163
  - [Luca Guidi] Custom predicates
95
164
  - [Luca Guidi] Inline predicates
@@ -100,10 +169,13 @@ Validations mixin for Ruby objects
100
169
  - [Luca Guidi] Introduced `Hanami::Validations::Form` mixin, which must be used when input comes from HTTP params or web forms.
101
170
 
102
171
  ### Fixed
172
+
103
173
  – [Luca Guidi] Ensure to threat blank values as `nil`
104
174
 
105
175
  ### Changed
176
+
106
177
  – [Luca Guidi] Drop support for Ruby 2.0, 2.1 and Rubinius. Official support for JRuby 9.0.5.0+.
178
+
107
179
  - [Luca Guidi] Validations must be wrapped in `.validations` block.
108
180
  - [Luca Guidi] Removed `.attribute` DSL. A validator doesn't create accessors (getters/setters) for validated keys.
109
181
  - [Luca Guidi] Removed `Hanami::Validations#valid?` in favor of `#validate`.
@@ -111,62 +183,86 @@ Validations mixin for Ruby objects
111
183
  - [Luca Guidi] Coerced and sanitized data is accessible via result object. Eg. `result.output`
112
184
 
113
185
  ## v0.5.0 - 2016-01-22
186
+
114
187
  ### Changed
188
+
115
189
  - [Luca Guidi] Renamed the project
116
190
 
117
191
  ## v0.4.0 - 2016-01-12
192
+
118
193
  ## Changed
194
+
119
195
  - [Hélio Costa e Silva & Luca Guidi] Ignore blank values for format and size validation
120
196
 
121
197
  ### Fixed
198
+
122
199
  - [Pascal Betz] Ensure acceptance validation to reject blank strings
123
200
 
124
201
  ## v0.3.3 - 2015-09-30
202
+
125
203
  ### Added
204
+
126
205
  - [Luca Guidi] Official support for JRuby 9k+
127
206
 
128
207
  ## v0.3.2 - 2015-05-22
208
+
129
209
  ### Added
210
+
130
211
  - [deepj] Introduced `Lotus::Validations#invalid?`
131
212
 
132
213
  ## v0.3.1 - 2015-05-15
214
+
133
215
  ### Fixed
216
+
134
217
  - [Luca Guidi] Fixed Hash serialization for nested validations. It always return nested `::Hash` structure.
135
218
  - [Alfonso Uceda Pompa & Dmitry Tymchuk] Fixed Hash serialization when `Lotus::Entity` is included in the same class.
136
219
 
137
220
  ## v0.3.0 - 2015-03-23
138
221
 
139
222
  ## v0.2.4 - 2015-01-30
223
+
140
224
  ### Added
225
+
141
226
  - [Steve Hodgkiss] Introduced `Lotus::Validations::Error#attribute_name`
142
227
  - [Steve Hodgkiss] Nested validations
143
228
 
144
229
  ### Changed
230
+
145
231
  - [Steve Hodgkiss] `Lotus::Validations::Error#name` returns the complete attribute name (Eg. `first_name` or `address.street`)
146
232
 
147
233
  ## v0.2.3 - 2015-01-12
234
+
148
235
  ### Added
236
+
149
237
  - [Luca Guidi] Compatibility with Lotus::Entity
150
238
 
151
239
  ### Fixed
240
+
152
241
  - [Luca Guidi] Ensure `.validates` usage to not raise `ArgumentError` when `:type` option is passed
153
242
  - [Luca Guidi] Ensure to assign attributes when only `.validates` is used
154
243
 
155
244
  ## v0.2.2 - 2015-01-08
245
+
156
246
  ### Added
247
+
157
248
  - [Steve Hodgkiss] Introduced `Validations.validates`. It defines validations, for already existing attributes.
158
249
 
159
250
  ## v0.2.1 - 2014-12-23
251
+
160
252
  ### Added
253
+
161
254
  - [Luca Guidi] Introduced `Validations::Errors#to_h` and `to_a`
162
255
  - [Luca Guidi] Introduced `Validations::Errors#any?`
163
256
  - [Luca Guidi] Official support for Ruby 2.2
164
257
 
165
258
  ### Fixed
259
+
166
260
  - [Satoshi Amemiya] Made `Validations#valid?` idempotent
167
261
 
168
262
  ## v0.2.0 - 2014-11-23
263
+
169
264
  ### Added
265
+
170
266
  - [Luca Guidi] Skip attribute whitelisting when a validator does not define any attribute
171
267
  - [Luca Guidi] Official support for Rubinius 2.3+
172
268
  - [Luca Guidi] Implemented `#each` in order to allow bulk operations on attributes
@@ -176,7 +272,9 @@ Validations mixin for Ruby objects
176
272
  - [Rik Tonnard] Made validators reusable by allowing infinite inclusion
177
273
 
178
274
  ## v0.1.0 - 2014-10-23
275
+
179
276
  ### Added
277
+
180
278
  - [Luca Guidi] Made `#initialize` to accept any object that implements `#to_h`
181
279
  - [Luca Guidi] Custom coercions for user defined classes
182
280
  - [Luca Guidi] Raise an exception at the load time when a validation is not recognized
@@ -194,5 +292,6 @@ Validations mixin for Ruby objects
194
292
  - [Luca Guidi] Official support for MRI 2.0+
195
293
 
196
294
  ### Fixed
295
+
197
296
  - [Jeremy Stephens] Ensure to not fail validations when coerce falsey values
198
297
  - [Luca Guidi] Ensure `Lotus::Validations#valid?` to be idempotent