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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2a8ab72eef1372d4c7e77ca26f239505a4bc8e3
4
- data.tar.gz: cdf67dd43d094a74a2e1b7426e465e8a1207de70
3
+ metadata.gz: 6264ea291d1db83bc0c5287b0c30bf169ed7827c
4
+ data.tar.gz: 9547e197029c1bd5c2631ff7c2116e283a04a523
5
5
  SHA512:
6
- metadata.gz: 171bc1e3cd30d4b5d6bcb04fbaeaf3d3150a35dd07eadd293f9f4295845caa453e071c342f50fbab1f78d9f877ffb8030a5bf940c65b3a0211a8bcbd91117bdd
7
- data.tar.gz: 0ad0b772fffd453b7f948169568fbebc57b8731d4baf18f6be47be330bf36540f2a30d99312af786489e8be633edf08601a8b4fdae3860eacb775f69714c3a40
6
+ metadata.gz: 627e9356d6d2929c3a6df3bb1797a2490f780ebcdfb36e9298e7566e84b18a50613dc693f684b960669b3cb79e0a105e8968bd03f048071ea2fa92296a1c952e
7
+ data.tar.gz: 2178df16d678ef40b5e8cdace34962fd014349b0170a36f1eac79b611bef034a605249d79ac01aedce946f70fd95c37420550c235c1f24579a8d66ddd8950737
@@ -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...master](https://github.com/dryrb/dry-validation/compare/v0.8.0...master)
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
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'i18n'
6
+ gem 'i18n', require: false
7
7
  gem 'codeclimate-test-reporter', platform: :rbx
8
8
  end
9
9
 
@@ -1,6 +1,4 @@
1
- require 'dry/validation/messages/yaml'
2
- require 'dry/validation/messages/i18n'
3
-
1
+ require 'dry/validation/messages'
4
2
  require 'dry/validation/type_specs'
5
3
 
6
4
  module Dry
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Validation
3
- VERSION = '0.9.0'.freeze
3
+ VERSION = '0.9.1'.freeze
4
4
  end
5
5
  end
@@ -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.0
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-08 00:00:00.000000000 Z
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