dry-validation 0.10.4 → 0.10.5

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: edf13779b21ef1f3313847f3dfc4678e039d8352
4
- data.tar.gz: f9e381733562194e590520528fdb4525958e5fd0
3
+ metadata.gz: 36e1f0888606fa21ee7c838c70cf467efac88716
4
+ data.tar.gz: c3547d8a4c3829a4d40703c99ba4983f516b6061
5
5
  SHA512:
6
- metadata.gz: b746e81131b3020d929c91aef54a77117608e13ab86f090a7c3eed3447b65101075ba87f46c5bb738f80fae0e8dee55ff47ec19dd1a21656673ee538c23fe62a
7
- data.tar.gz: f0fe7d3bdaff33e2218998f8ae89cf56d484346fcd2393936640f9b2c720df38cc8a017d05ab216a418fa125ab36abe04042a53b85d415c3e3388815e90f643f
6
+ metadata.gz: a6cd0689dac500264b7bb95bc6ab4945b9807abc345cf1d3883f8eb9cd0ee512a9555bbcc57e88ecc960ec7b103d8d04a1ae8f6e5f3f820aed7803c1ccf6655a
7
+ data.tar.gz: 99e0d34b67ebd88827f2b262088c66d925d9aff1a23987e299bd9587dc7a0b87ecf89f0e182b8569d9b62c8ca64eb288a0171fbf95ac57a28625024ea4f8348a
data/.travis.yml CHANGED
@@ -11,6 +11,7 @@ rvm:
11
11
  - 2.1
12
12
  - 2.2
13
13
  - 2.3
14
+ - 2.4.0
14
15
  - jruby-9.1.5.0
15
16
  - rbx-3
16
17
  env:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # v0.10.5 2017-01-12
2
+
3
+ ### Fixed
4
+
5
+ * Warnings under MRI 2.4.0 are gone (koic)
6
+
7
+ [Compare v0.10.4...v0.10.5](https://github.com/dryrb/dry-validation/compare/v0.10.4...v0.10.5)
8
+
1
9
  # v0.10.4 2016-12-03
2
10
 
3
11
  ### Fixed
data/Rakefile CHANGED
@@ -8,7 +8,6 @@ require 'rspec/core/rake_task'
8
8
 
9
9
  desc 'Run all specs in spec directory'
10
10
  task :run_specs do
11
- require 'rspec/core'
12
11
 
13
12
  RSpec::Core::Runner.run(['spec/integration', 'spec/unit'])
14
13
  RSpec.clear_examples
@@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
19
19
  spec.add_runtime_dependency 'dry-configurable', '~> 0.1', '>= 0.1.3'
20
- spec.add_runtime_dependency 'dry-container', '~> 0.2', '>= 0.2.8'
21
20
  spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
22
21
  spec.add_runtime_dependency 'dry-logic', '~> 0.4', '>= 0.4.0'
23
22
  spec.add_runtime_dependency 'dry-types', '~> 0.9', '>= 0.9.0'
@@ -1,6 +1,3 @@
1
- require 'dry-equalizer'
2
- require 'dry-configurable'
3
- require 'dry-container'
4
1
  require 'dry/core/extensions'
5
2
  require 'dry/core/constants'
6
3
 
@@ -1,4 +1,5 @@
1
1
  require 'logger'
2
+ require 'dry/configurable'
2
3
 
3
4
  module Dry
4
5
  module Validation
@@ -21,7 +21,6 @@ module Dry
21
21
  CONST_MAP = {
22
22
  NilClass => 'form.nil',
23
23
  String => 'string',
24
- Fixnum => 'form.int',
25
24
  Integer => 'form.int',
26
25
  Float => 'form.float',
27
26
  BigDecimal => 'form.decimal',
@@ -17,7 +17,6 @@ module Dry
17
17
  CONST_MAP = {
18
18
  NilClass => 'nil',
19
19
  String => 'string',
20
- Fixnum => 'int',
21
20
  Integer => 'int',
22
21
  Float => 'float',
23
22
  BigDecimal => 'json.decimal',
@@ -19,7 +19,6 @@ module Dry
19
19
  CONST_MAP = {
20
20
  NilClass => 'nil',
21
21
  String => 'string',
22
- Fixnum => 'int',
23
22
  Integer => 'int',
24
23
  Float => 'float',
25
24
  BigDecimal => 'decimal',
@@ -1,3 +1,5 @@
1
+ require 'dry/equalizer'
2
+
1
3
  module Dry
2
4
  module Validation
3
5
  class Message
@@ -1,5 +1,7 @@
1
1
  require 'pathname'
2
2
  require 'concurrent/map'
3
+ require 'dry/equalizer'
4
+ require 'dry/configurable'
3
5
 
4
6
  module Dry
5
7
  module Validation
@@ -1,6 +1,7 @@
1
1
  require 'yaml'
2
2
  require 'pathname'
3
3
 
4
+ require 'dry/equalizer'
4
5
  require 'dry/validation/messages/abstract'
5
6
 
6
7
  module Dry
@@ -92,7 +92,7 @@ module Dry
92
92
  case args_or_arity
93
93
  when Array
94
94
  raise_invalid_arity_error(name) if ![0, args_or_arity.size + 1].include?(arity)
95
- when Fixnum
95
+ when Integer
96
96
  raise_invalid_arity_error(name) if args_or_arity != arity
97
97
  end
98
98
  else
@@ -1,3 +1,5 @@
1
+ require 'dry/equalizer'
2
+
1
3
  module Dry
2
4
  module Validation
3
5
  class Result
@@ -1,3 +1,4 @@
1
+ require 'dry/configurable'
1
2
  require 'dry/validation/messages'
2
3
  require 'dry/validation/type_specs'
3
4
 
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Validation
3
- VERSION = '0.10.4'.freeze
3
+ VERSION = '0.10.5'.freeze
4
4
  end
5
5
  end
@@ -59,7 +59,7 @@ RSpec.describe Dry::Validation::InputProcessorCompiler::Form, '#call' do
59
59
  :and,
60
60
  [
61
61
  [:val, p(:key?, :age)],
62
- [:key, [:age, p(:type?, Fixnum)]]
62
+ [:key, [:age, p(:type?, Integer)]]
63
63
  ]
64
64
  ]
65
65
  ]
@@ -9,7 +9,7 @@ RSpec.describe Dry::Validation::InputProcessorCompiler::JSON, '#call' do
9
9
  :and,
10
10
  [
11
11
  [:val, p(:key?, :age)],
12
- [:key, [:age, p(:type?, Fixnum)]]
12
+ [:key, [:age, p(:type?, Integer)]]
13
13
  ]
14
14
  ]
15
15
  ]
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.10.4
4
+ version: 0.10.5
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-12-03 00:00:00.000000000 Z
12
+ date: 2017-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby
@@ -45,26 +45,6 @@ dependencies:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.1.3
48
- - !ruby/object:Gem::Dependency
49
- name: dry-container
50
- requirement: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.2'
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 0.2.8
58
- type: :runtime
59
- prerelease: false
60
- version_requirements: !ruby/object:Gem::Requirement
61
- requirements:
62
- - - "~>"
63
- - !ruby/object:Gem::Version
64
- version: '0.2'
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: 0.2.8
68
48
  - !ruby/object:Gem::Dependency
69
49
  name: dry-equalizer
70
50
  requirement: !ruby/object:Gem::Requirement