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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4c70c5b5cac41446c2d6e2b617c7424a6a15edc
4
- data.tar.gz: cf2b22c4d08d293687a5cfd5dafac9e4fb985177
3
+ metadata.gz: 8822c542e39d9f29ed92ec04999f5720e5f671f4
4
+ data.tar.gz: 018b6e3e86d03f4088f62288aca19653183d25cc
5
5
  SHA512:
6
- metadata.gz: 6fae34c4cc31c48e2143b226fe5c2fe2bdc0de15f9e777b3d49a1332da405586fe1bac17d58b3e2862b874d3f4921606e1b219f52885cecf0b1e0c95537d4c1f
7
- data.tar.gz: 3ad28f290a367973e34f0cf6459e5490946ac90e2a1aab43a6643542956111464d05a3b2535d28b57cf330d6b6a9624ecb6aef7d6546457b8e91c0ab3aca65f6
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 'ruby-debug', :platform => :mri_18
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' if RUBY_VERSION.to_f > 1.8
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'
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  module Interpol
2
- VERSION = "0.10.7"
2
+ VERSION = "0.11.0"
3
3
  end
4
4
 
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.10.7
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-09-25 00:00:00.000000000 Z
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: 1.1.1
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: 1.1.1
40
+ version: 2.2.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement