spyke 5.4.1 → 5.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/lib/spyke/http.rb +6 -1
- data/lib/spyke/version.rb +1 -1
- data/spyke.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a67a8bfd8ac985172e534108b72f8a03a206daeb7fbd33a04c94f22b45e0126c
|
4
|
+
data.tar.gz: 360d138ed27015204ad9a7b9be20e068b214cb1e1c4dfcea9e23da08a68f02cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aac5b80d13d31fc9ecf437f0437dc98c59de493591ebc4307882570bea75e934e208ae991f881ab45b628e4cd177857d63dbe8546d66e6faa79c32cfe7c320a
|
7
|
+
data.tar.gz: e7857930a37776d02a75493597d6859268b8955fcad572993f5666598177e352b5b5d0ca8200ab65411839ec857afe9782d7ec59d7431943a1a3e4a9b859d294
|
data/.travis.yml
CHANGED
data/lib/spyke/http.rb
CHANGED
@@ -105,7 +105,12 @@ module Spyke
|
|
105
105
|
errors_hash.each do |field, field_errors|
|
106
106
|
field_errors.each do |error_attributes|
|
107
107
|
error = NormalizedValidationError.new(error_attributes)
|
108
|
-
|
108
|
+
|
109
|
+
if errors.method(:add).arity == -2
|
110
|
+
errors.add(field.to_sym, error.message, **error.options)
|
111
|
+
else
|
112
|
+
errors.add(field.to_sym, error.message, error.options)
|
113
|
+
end
|
109
114
|
end
|
110
115
|
end
|
111
116
|
end
|
data/lib/spyke/version.rb
CHANGED
data/spyke.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_dependency 'addressable', '>= 2.5.2'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'actionpack', '>= 4.0.0'
|
28
|
-
spec.add_development_dependency 'bundler', '
|
28
|
+
spec.add_development_dependency 'bundler', '>= 1.6'
|
29
29
|
spec.add_development_dependency 'coveralls', '~> 0.7'
|
30
30
|
spec.add_development_dependency 'minitest'
|
31
31
|
spec.add_development_dependency 'minitest-line'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spyke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -110,14 +110,14 @@ dependencies:
|
|
110
110
|
name: bundler
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- - "
|
113
|
+
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '1.6'
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- - "
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '1.6'
|
123
123
|
- !ruby/object:Gem::Dependency
|