interpol 0.10.6 → 0.10.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Mjg2YTlmNDQ1ZDI2YzIyMjQzNTE3NTNmYTk5ZTJiYWQ2YzJhZGFjYw==
5
- data.tar.gz: !binary |-
6
- YTMxMGU2YjUyYzAwYTQ0MzI3ZWExMTJjOTM2NGJiZmJlMTE0YWE2Zg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MjIzMDljZjgxNDBiMWYxYWZkMzZiZGRkZmUwNjk5YjNiY2E0ODA5MTE1NmE4
10
- MDU5ZmM2ZTA3MmFlYzMyNmYwNTJmNDkwZTY1ZWRkNDExMGYzMTExNzhhNGU3
11
- N2RlNDNjZjkzNmEzYWM3ZDUxMzI4ZjNjMmY1MjdlZTQzMmUyNWI=
12
- data.tar.gz: !binary |-
13
- NjgwNmUyNDVlYTI2N2YzZDI3Y2IwMWNhMjg0MDJjZmRiNTBlNmVmODFjYzNl
14
- YTQyOTA3YjRhYTAzNWJkY2ExMTkyMGYwNjdhYTAwNTc1NjQ0MWIxNDUwMjI3
15
- OWQ4YmE5NDQ4YTFhNDk2ZDYxMTRhZTBkYjczZTM5NmRiY2MwN2Y=
2
+ SHA1:
3
+ metadata.gz: b4c70c5b5cac41446c2d6e2b617c7424a6a15edc
4
+ data.tar.gz: cf2b22c4d08d293687a5cfd5dafac9e4fb985177
5
+ SHA512:
6
+ metadata.gz: 6fae34c4cc31c48e2143b226fe5c2fe2bdc0de15f9e777b3d49a1332da405586fe1bac17d58b3e2862b874d3f4921606e1b219f52885cecf0b1e0c95537d4c1f
7
+ data.tar.gz: 3ad28f290a367973e34f0cf6459e5490946ac90e2a1aab43a6643542956111464d05a3b2535d28b57cf330d6b6a9624ecb6aef7d6546457b8e91c0ab3aca65f6
@@ -174,7 +174,7 @@ module Interpol
174
174
  end
175
175
 
176
176
  def scalars_nullable_by_default?
177
- @scalars_nullable_by_default
177
+ !!@scalars_nullable_by_default
178
178
  end
179
179
 
180
180
  def self.default
@@ -122,7 +122,7 @@ module Interpol
122
122
  end
123
123
 
124
124
  def route_matches?(path)
125
- path =~ route_regex
125
+ !!(path =~ route_regex)
126
126
  end
127
127
 
128
128
  def inspect
@@ -251,11 +251,13 @@ module Interpol
251
251
  end
252
252
  end
253
253
 
254
+ PROPERTY_PARENTS = %w[ properties patternProperties ]
255
+
254
256
  def make_schema_hash_strict!(raw_schema, make_this_schema_strict=true)
255
257
  conditionally_make_nullable(raw_schema) if make_this_schema_strict
256
258
 
257
259
  raw_schema.each do |key, value|
258
- make_schema_strict!(value, key != 'properties')
260
+ make_schema_strict!(value, !PROPERTY_PARENTS.include?(key))
259
261
  end
260
262
 
261
263
  return unless make_this_schema_strict
@@ -1,4 +1,4 @@
1
1
  module Interpol
2
- VERSION = "0.10.6"
2
+ VERSION = "0.10.7"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,111 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interpol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myron Marston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2014-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json-schema
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.1
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
40
  version: 1.1.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.13'
47
+ version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.13'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec-fire
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '1.2'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '1.2'
54
+ version: '3.0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: simplecov
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ~>
59
+ - - "~>"
74
60
  - !ruby/object:Gem::Version
75
61
  version: '0.6'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ~>
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0.6'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: tailor
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ~>
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
75
  version: '0'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ~>
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
82
  version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ~>
87
+ - - "~>"
102
88
  - !ruby/object:Gem::Version
103
89
  version: 0.9.2.2
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ~>
94
+ - - "~>"
109
95
  - !ruby/object:Gem::Version
110
96
  version: 0.9.2.2
111
97
  - !ruby/object:Gem::Dependency
@@ -126,28 +112,28 @@ dependencies:
126
112
  name: hashie
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ~>
115
+ - - "~>"
130
116
  - !ruby/object:Gem::Version
131
117
  version: '1.2'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ~>
122
+ - - "~>"
137
123
  - !ruby/object:Gem::Version
138
124
  version: '1.2'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: sinatra
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ~>
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
131
  version: '1.4'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ~>
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
138
  version: '1.4'
153
139
  description: Interpol is a toolkit for working with API endpoint definition files,
@@ -158,28 +144,17 @@ executables: []
158
144
  extensions: []
159
145
  extra_rdoc_files: []
160
146
  files:
161
- - README.md
162
- - LICENSE
163
147
  - Gemfile
148
+ - LICENSE
149
+ - README.md
164
150
  - Rakefile
151
+ - lib/interpol.rb
152
+ - lib/interpol/configuration.rb
165
153
  - lib/interpol/configuration/built_in_param_parsers.rb
166
154
  - lib/interpol/configuration/default_callbacks.rb
167
- - lib/interpol/configuration.rb
168
155
  - lib/interpol/documentation.rb
169
- - lib/interpol/documentation_app/config.rb
170
156
  - lib/interpol/documentation_app.rb
171
- - lib/interpol/dynamic_struct.rb
172
- - lib/interpol/each_with_object.rb
173
- - lib/interpol/endpoint.rb
174
- - lib/interpol/errors.rb
175
- - lib/interpol/request_body_validator.rb
176
- - lib/interpol/request_params_parser.rb
177
- - lib/interpol/response_schema_validator.rb
178
- - lib/interpol/sinatra/request_params_parser.rb
179
- - lib/interpol/stub_app.rb
180
- - lib/interpol/test_helper.rb
181
- - lib/interpol/version.rb
182
- - lib/interpol.rb
157
+ - lib/interpol/documentation_app/config.rb
183
158
  - lib/interpol/documentation_app/public/fonts/fontawesome-webfont.eot
184
159
  - lib/interpol/documentation_app/public/fonts/fontawesome-webfont.svg
185
160
  - lib/interpol/documentation_app/public/fonts/fontawesome-webfont.svgz
@@ -205,6 +180,17 @@ files:
205
180
  - lib/interpol/documentation_app/sass/screen.scss
206
181
  - lib/interpol/documentation_app/views/endpoint.erb
207
182
  - lib/interpol/documentation_app/views/layout.erb
183
+ - lib/interpol/dynamic_struct.rb
184
+ - lib/interpol/each_with_object.rb
185
+ - lib/interpol/endpoint.rb
186
+ - lib/interpol/errors.rb
187
+ - lib/interpol/request_body_validator.rb
188
+ - lib/interpol/request_params_parser.rb
189
+ - lib/interpol/response_schema_validator.rb
190
+ - lib/interpol/sinatra/request_params_parser.rb
191
+ - lib/interpol/stub_app.rb
192
+ - lib/interpol/test_helper.rb
193
+ - lib/interpol/version.rb
208
194
  homepage: ''
209
195
  licenses: []
210
196
  metadata: {}
@@ -214,17 +200,17 @@ require_paths:
214
200
  - lib
215
201
  required_ruby_version: !ruby/object:Gem::Requirement
216
202
  requirements:
217
- - - ! '>='
203
+ - - ">="
218
204
  - !ruby/object:Gem::Version
219
205
  version: '0'
220
206
  required_rubygems_version: !ruby/object:Gem::Requirement
221
207
  requirements:
222
- - - ! '>='
208
+ - - ">="
223
209
  - !ruby/object:Gem::Version
224
210
  version: '0'
225
211
  requirements: []
226
212
  rubyforge_project:
227
- rubygems_version: 2.0.7
213
+ rubygems_version: 2.2.2
228
214
  signing_key:
229
215
  specification_version: 4
230
216
  summary: Interpol is a toolkit for policing your HTTP JSON interface.