interpol 0.10.7 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/lib/interpol/endpoint.rb +2 -2
- data/lib/interpol/request_params_parser.rb +1 -1
- data/lib/interpol/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8822c542e39d9f29ed92ec04999f5720e5f671f4
|
4
|
+
data.tar.gz: 018b6e3e86d03f4088f62288aca19653183d25cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 579e793cacbff9b8aa39b83706f3b7bfe2ccea39ba728a23200c440be9b96cf668d040c07273e17408c8bd4c56c461a7ec40a01fd3f67a25bab8a2fa35f54647
|
7
|
+
data.tar.gz: 0eaf3f7f0e9e35d6bda50be166e40899087bbe4338014e15a774eb3b21fe1cf0de04b045dd3714d502a0c3e0f48c62d271ae455b61bb5c47302845a9d428abc2
|
data/Gemfile
CHANGED
@@ -5,7 +5,7 @@ gemspec
|
|
5
5
|
|
6
6
|
group :extras do
|
7
7
|
gem 'debugger' if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && RUBY_VERSION == '1.9.3'
|
8
|
-
gem '
|
8
|
+
gem 'byebug' if RUBY_VERSION.start_with?('2.')
|
9
9
|
end
|
10
10
|
|
11
11
|
gem 'json-jruby', :platform => 'jruby'
|
@@ -13,7 +13,7 @@ gem 'compass_twitter_bootstrap', :git => 'git://github.com/vwall/compass-twitter
|
|
13
13
|
|
14
14
|
gem 'json', :platform => 'ruby_18'
|
15
15
|
|
16
|
-
gem 'cane', '~> 2.6'
|
16
|
+
gem 'cane', '~> 2.6'
|
17
17
|
|
18
18
|
# 1.6 won't install on JRuby or 1.8.7 :(.
|
19
19
|
gem 'nokogiri', '~> 1.5.10'
|
data/lib/interpol/endpoint.rb
CHANGED
@@ -217,10 +217,10 @@ module Interpol
|
|
217
217
|
|
218
218
|
def validate_data!(data, validate_schema = true)
|
219
219
|
if validate_schema
|
220
|
-
errors = ::JSON::Validator.fully_validate_schema(schema)
|
220
|
+
errors = ::JSON::Validator.fully_validate_schema(schema, :version => :draft3)
|
221
221
|
raise ValidationError.new(errors, schema, description) if errors.any?
|
222
222
|
end
|
223
|
-
errors = ::JSON::Validator.fully_validate(schema, data)
|
223
|
+
errors = ::JSON::Validator.fully_validate(schema, data, :version => :draft3)
|
224
224
|
raise ValidationError.new(errors, data, description) if errors.any?
|
225
225
|
end
|
226
226
|
|
@@ -53,7 +53,7 @@ module Interpol
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def validate!(params)
|
56
|
-
errors = ::JSON::Validator.fully_validate(@params_schema, params)
|
56
|
+
errors = ::JSON::Validator.fully_validate(@params_schema, params, :version => :draft3)
|
57
57
|
raise ValidationError.new(errors, params, description) if errors.any?
|
58
58
|
end
|
59
59
|
|
data/lib/interpol/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interpol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myron Marston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.2.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.2.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|