interpol 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -215,9 +215,11 @@ module Interpol
215
215
  @endpoint.name
216
216
  end
217
217
 
218
- def validate_data!(data)
219
- errors = ::JSON::Validator.fully_validate_schema(schema)
220
- raise ValidationError.new(errors, schema, description) if errors.any?
218
+ def validate_data!(data, validate_schema = true)
219
+ if validate_schema
220
+ errors = ::JSON::Validator.fully_validate_schema(schema)
221
+ raise ValidationError.new(errors, schema, description) if errors.any?
222
+ end
221
223
  errors = ::JSON::Validator.fully_validate(schema, data)
222
224
  raise ValidationError.new(errors, data, description) if errors.any?
223
225
  end
@@ -1,4 +1,4 @@
1
1
  module Interpol
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interpol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,168 +9,168 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-11 00:00:00.000000000 Z
12
+ date: 2013-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
- prerelease: false
17
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
- none: false
23
22
  type: :runtime
23
+ prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
25
26
  requirements:
26
27
  - - ! '>='
27
28
  - !ruby/object:Gem::Version
28
29
  version: '0'
29
- none: false
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: json-schema
32
- prerelease: false
33
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
37
  version: 1.1.1
38
- none: false
39
38
  type: :runtime
39
+ prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
41
42
  requirements:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
45
  version: 1.1.1
45
- none: false
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rspec
48
- prerelease: false
49
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: '2.13'
54
- none: false
55
54
  type: :development
55
+ prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
57
58
  requirements:
58
59
  - - ~>
59
60
  - !ruby/object:Gem::Version
60
61
  version: '2.13'
61
- none: false
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rspec-fire
64
- prerelease: false
65
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  version: '1.2'
70
- none: false
71
70
  type: :development
71
+ prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
73
74
  requirements:
74
75
  - - ~>
75
76
  - !ruby/object:Gem::Version
76
77
  version: '1.2'
77
- none: false
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: simplecov
80
- prerelease: false
81
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0.6'
86
- none: false
87
86
  type: :development
87
+ prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
89
90
  requirements:
90
91
  - - ~>
91
92
  - !ruby/object:Gem::Version
92
93
  version: '0.6'
93
- none: false
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: tailor
96
- prerelease: false
97
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
- none: false
103
102
  type: :development
103
+ prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
105
106
  requirements:
106
107
  - - ~>
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
- none: false
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: rake
112
- prerelease: false
113
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.9.2.2
118
- none: false
119
118
  type: :development
119
+ prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
121
122
  requirements:
122
123
  - - ~>
123
124
  - !ruby/object:Gem::Version
124
125
  version: 0.9.2.2
125
- none: false
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rack-test
128
- prerelease: false
129
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
133
  version: 0.6.1
134
- none: false
135
134
  type: :development
135
+ prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
137
138
  requirements:
138
139
  - - '='
139
140
  - !ruby/object:Gem::Version
140
141
  version: 0.6.1
141
- none: false
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: hashie
144
- prerelease: false
145
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
146
  requirements:
147
147
  - - ~>
148
148
  - !ruby/object:Gem::Version
149
149
  version: '1.2'
150
- none: false
151
150
  type: :development
151
+ prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
153
154
  requirements:
154
155
  - - ~>
155
156
  - !ruby/object:Gem::Version
156
157
  version: '1.2'
157
- none: false
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: sinatra
160
- prerelease: false
161
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
162
  requirements:
163
163
  - - ~>
164
164
  - !ruby/object:Gem::Version
165
165
  version: '1.4'
166
- none: false
167
166
  type: :development
167
+ prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
169
170
  requirements:
170
171
  - - ~>
171
172
  - !ruby/object:Gem::Version
172
173
  version: '1.4'
173
- none: false
174
174
  description: Interpol is a toolkit for working with API endpoint definition files,
175
175
  giving you a stub app, a schema validation middleware, and browsable documentation.
176
176
  email:
@@ -233,20 +233,26 @@ rdoc_options: []
233
233
  require_paths:
234
234
  - lib
235
235
  required_ruby_version: !ruby/object:Gem::Requirement
236
+ none: false
236
237
  requirements:
237
238
  - - ! '>='
238
239
  - !ruby/object:Gem::Version
239
240
  version: '0'
240
- none: false
241
+ segments:
242
+ - 0
243
+ hash: 4230425968358833339
241
244
  required_rubygems_version: !ruby/object:Gem::Requirement
245
+ none: false
242
246
  requirements:
243
247
  - - ! '>='
244
248
  - !ruby/object:Gem::Version
245
249
  version: '0'
246
- none: false
250
+ segments:
251
+ - 0
252
+ hash: 4230425968358833339
247
253
  requirements: []
248
254
  rubyforge_project:
249
- rubygems_version: 1.8.24
255
+ rubygems_version: 1.8.25
250
256
  signing_key:
251
257
  specification_version: 3
252
258
  summary: Interpol is a toolkit for policing your HTTP JSON interface.