dry-validation 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -2
- data/Gemfile +1 -1
- data/lib/dry/validation/schema/class_interface.rb +1 -3
- data/lib/dry/validation/version.rb +1 -1
- data/spec/integration/schema/default_settings_spec.rb +11 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6264ea291d1db83bc0c5287b0c30bf169ed7827c
|
4
|
+
data.tar.gz: 9547e197029c1bd5c2631ff7c2116e283a04a523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627e9356d6d2929c3a6df3bb1797a2490f780ebcdfb36e9298e7566e84b18a50613dc693f684b960669b3cb79e0a105e8968bd03f048071ea2fa92296a1c952e
|
7
|
+
data.tar.gz: 2178df16d678ef40b5e8cdace34962fd014349b0170a36f1eac79b611bef034a605249d79ac01aedce946f70fd95c37420550c235c1f24579a8d66ddd8950737
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# v0.9.1 2016-07-11
|
2
|
+
|
3
|
+
### Fixed
|
4
|
+
|
5
|
+
* `I18n` backend is no longer required and set by default (solnic)
|
6
|
+
|
7
|
+
[Compare v0.9.0...v0.9.1](https://github.com/dryrb/dry-validation/compare/v0.9.0...v0.9.1)
|
8
|
+
|
1
9
|
# v0.9.0 2016-07-08
|
2
10
|
|
3
11
|
### Added
|
@@ -23,7 +31,6 @@
|
|
23
31
|
* Hints now work with array elements too (solnic)
|
24
32
|
* Hints for elements are no longer provided for an array when the value is not an array (solnic)
|
25
33
|
* `input` macro no longer messes up error messages for nested structures (solnic)
|
26
|
-
* `messages` and `error_compiler` are now properly inherited from base schema class (solnic)
|
27
34
|
|
28
35
|
### Internal
|
29
36
|
|
@@ -34,7 +41,7 @@
|
|
34
41
|
* Added `MessageSet` that result objects now use (in 1.0.0 it'll be exposed via public API) (solnic)
|
35
42
|
* We can now distinguish error messages from validation hints via `Message` and `Hint` objects (solnic)
|
36
43
|
|
37
|
-
[Compare v0.8.0...
|
44
|
+
[Compare v0.8.0...v0.9.0](https://github.com/dryrb/dry-validation/compare/v0.8.0...v0.9.0)
|
38
45
|
|
39
46
|
# v0.8.0 2016-07-01
|
40
47
|
|
data/Gemfile
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
RSpec.describe Dry::Validation::Schema, 'default settings' do
|
2
|
+
subject(:schema) do
|
3
|
+
Dry::Validation.Schema(build: false) do
|
4
|
+
required(:name).filled
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
it 'uses :yaml messages by default' do
|
9
|
+
expect(schema.config.messages).to be(:yaml)
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-validation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Holland
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -269,6 +269,7 @@ files:
|
|
269
269
|
- spec/integration/schema/check_rules_spec.rb
|
270
270
|
- spec/integration/schema/check_with_nested_el_spec.rb
|
271
271
|
- spec/integration/schema/check_with_nth_el_spec.rb
|
272
|
+
- spec/integration/schema/default_settings_spec.rb
|
272
273
|
- spec/integration/schema/defining_base_schema_spec.rb
|
273
274
|
- spec/integration/schema/dynamic_predicate_args_spec.rb
|
274
275
|
- spec/integration/schema/each_with_set_spec.rb
|
@@ -402,6 +403,7 @@ test_files:
|
|
402
403
|
- spec/integration/schema/check_rules_spec.rb
|
403
404
|
- spec/integration/schema/check_with_nested_el_spec.rb
|
404
405
|
- spec/integration/schema/check_with_nth_el_spec.rb
|
406
|
+
- spec/integration/schema/default_settings_spec.rb
|
405
407
|
- spec/integration/schema/defining_base_schema_spec.rb
|
406
408
|
- spec/integration/schema/dynamic_predicate_args_spec.rb
|
407
409
|
- spec/integration/schema/each_with_set_spec.rb
|