committee 1.15.0 → 2.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/bin/committee-stub +10 -36
  3. data/lib/committee/bin/committee_stub.rb +61 -0
  4. data/lib/committee/drivers/hyper_schema.rb +151 -0
  5. data/lib/committee/drivers/open_api_2.rb +297 -0
  6. data/lib/committee/drivers.rb +57 -0
  7. data/lib/committee/middleware/base.rb +52 -13
  8. data/lib/committee/middleware/request_validation.rb +33 -10
  9. data/lib/committee/middleware/response_validation.rb +2 -1
  10. data/lib/committee/middleware/stub.rb +24 -8
  11. data/lib/committee/request_validator.rb +1 -1
  12. data/lib/committee/response_generator.rb +58 -13
  13. data/lib/committee/response_validator.rb +32 -8
  14. data/lib/committee/router.rb +5 -33
  15. data/lib/committee/{query_params_coercer.rb → string_params_coercer.rb} +11 -6
  16. data/lib/committee/test/methods.rb +49 -12
  17. data/lib/committee.rb +15 -1
  18. data/test/bin/committee_stub_test.rb +45 -0
  19. data/test/bin_test.rb +20 -0
  20. data/test/committee_test.rb +49 -0
  21. data/test/drivers/hyper_schema_test.rb +95 -0
  22. data/test/drivers/open_api_2_test.rb +255 -0
  23. data/test/drivers_test.rb +60 -0
  24. data/test/middleware/base_test.rb +49 -5
  25. data/test/middleware/request_validation_test.rb +39 -25
  26. data/test/middleware/response_validation_test.rb +32 -20
  27. data/test/middleware/stub_test.rb +50 -19
  28. data/test/request_unpacker_test.rb +10 -0
  29. data/test/request_validator_test.rb +4 -3
  30. data/test/response_generator_test.rb +50 -6
  31. data/test/response_validator_test.rb +29 -4
  32. data/test/router_test.rb +40 -13
  33. data/test/{query_params_coercer_test.rb → string_params_coercer_test.rb} +3 -4
  34. data/test/test/methods_test.rb +44 -5
  35. data/test/test_helper.rb +59 -1
  36. metadata +62 -10
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: committee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 2.0.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-13 00:00:00.000000000 Z
12
+ date: 2016-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_schema
@@ -17,20 +17,20 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.6'
20
+ version: '0.14'
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.6.1
23
+ version: 0.14.1
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - "~>"
29
29
  - !ruby/object:Gem::Version
30
- version: '0.6'
30
+ version: '0.14'
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.1
33
+ version: 0.14.1
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rack
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -101,6 +101,48 @@ dependencies:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '1.1'
104
+ - !ruby/object:Gem::Dependency
105
+ name: pry
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: pry-byebug
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ - !ruby/object:Gem::Dependency
133
+ name: simplecov
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
104
146
  description:
105
147
  email:
106
148
  - brandur@mutelight.org
@@ -112,29 +154,39 @@ extra_rdoc_files: []
112
154
  files:
113
155
  - bin/committee-stub
114
156
  - lib/committee.rb
157
+ - lib/committee/bin/committee_stub.rb
158
+ - lib/committee/drivers.rb
159
+ - lib/committee/drivers/hyper_schema.rb
160
+ - lib/committee/drivers/open_api_2.rb
115
161
  - lib/committee/errors.rb
116
162
  - lib/committee/middleware/base.rb
117
163
  - lib/committee/middleware/request_validation.rb
118
164
  - lib/committee/middleware/response_validation.rb
119
165
  - lib/committee/middleware/stub.rb
120
- - lib/committee/query_params_coercer.rb
121
166
  - lib/committee/request_unpacker.rb
122
167
  - lib/committee/request_validator.rb
123
168
  - lib/committee/response_generator.rb
124
169
  - lib/committee/response_validator.rb
125
170
  - lib/committee/router.rb
171
+ - lib/committee/string_params_coercer.rb
126
172
  - lib/committee/test/methods.rb
127
173
  - lib/committee/validation_error.rb
174
+ - test/bin/committee_stub_test.rb
175
+ - test/bin_test.rb
176
+ - test/committee_test.rb
177
+ - test/drivers/hyper_schema_test.rb
178
+ - test/drivers/open_api_2_test.rb
179
+ - test/drivers_test.rb
128
180
  - test/middleware/base_test.rb
129
181
  - test/middleware/request_validation_test.rb
130
182
  - test/middleware/response_validation_test.rb
131
183
  - test/middleware/stub_test.rb
132
- - test/query_params_coercer_test.rb
133
184
  - test/request_unpacker_test.rb
134
185
  - test/request_validator_test.rb
135
186
  - test/response_generator_test.rb
136
187
  - test/response_validator_test.rb
137
188
  - test/router_test.rb
189
+ - test/string_params_coercer_test.rb
138
190
  - test/test/methods_test.rb
139
191
  - test/test_helper.rb
140
192
  - test/validation_error_test.rb
@@ -153,9 +205,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
205
  version: '0'
154
206
  required_rubygems_version: !ruby/object:Gem::Requirement
155
207
  requirements:
156
- - - ">="
208
+ - - ">"
157
209
  - !ruby/object:Gem::Version
158
- version: '0'
210
+ version: 1.3.1
159
211
  requirements: []
160
212
  rubyforge_project:
161
213
  rubygems_version: 2.5.1