rack-service_api_versioning 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rubocop.yml +14 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +105 -0
- data/Rakefile +60 -0
- data/bin/console +14 -0
- data/bin/setup +12 -0
- data/config.reek +21 -0
- data/doc/API-DOCUMENTATION.md +166 -0
- data/doc/CODE_OF_CONDUCT.md +74 -0
- data/doc/UBIQUITOUS-LANGUAGE.md +286 -0
- data/lib/rack/service_api_versioning/accept_content_type_selector.rb +78 -0
- data/lib/rack/service_api_versioning/api_version_redirector.rb +60 -0
- data/lib/rack/service_api_versioning/build_redirect_location_uri.rb +55 -0
- data/lib/rack/service_api_versioning/build_redirect_uri_from_env.rb +54 -0
- data/lib/rack/service_api_versioning/encoded_api_version_data/input_data.rb +45 -0
- data/lib/rack/service_api_versioning/encoded_api_version_data/invalid_base_url_error.rb +22 -0
- data/lib/rack/service_api_versioning/encoded_api_version_data/return_data.rb +44 -0
- data/lib/rack/service_api_versioning/encoded_api_version_data.rb +61 -0
- data/lib/rack/service_api_versioning/http_error_response.rb +29 -0
- data/lib/rack/service_api_versioning/input_env.rb +38 -0
- data/lib/rack/service_api_versioning/input_is_invalid.rb +36 -0
- data/lib/rack/service_api_versioning/match_header_against_api_versions.rb +55 -0
- data/lib/rack/service_api_versioning/report_invalid_description.rb +19 -0
- data/lib/rack/service_api_versioning/report_no_matching_version.rb +34 -0
- data/lib/rack/service_api_versioning/report_not_found.rb +18 -0
- data/lib/rack/service_api_versioning/service_component_describer/report_service_not_found.rb +44 -0
- data/lib/rack/service_api_versioning/service_component_describer.rb +68 -0
- data/lib/rack/service_api_versioning/version.rb +7 -0
- data/lib/rack/service_api_versioning.rb +14 -0
- data/lib/tasks/flog_task_patch.rb +12 -0
- data/rack-service_api_versioning.gemspec +62 -0
- data/tmp/gemsets/setup-and-bundle.sh +48 -0
- metadata +415 -0
metadata
ADDED
@@ -0,0 +1,415 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rack-service_api_versioning
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeff Dickey
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: prolog-dry_types
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.3.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.3.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.14.6
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.14.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 12.0.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 12.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 5.10.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 5.10.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-matchers
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.4.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.4.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest-reporters
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.1.14
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.1.14
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: minitest-tagz
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.5.2
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.5.2
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: flay
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.8.1
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 2.8.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: flog
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 4.6.1
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 4.6.1
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: reek
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 4.5.6
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 4.5.6
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.47.1
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.47.1
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: simplecov
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.14.1
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.14.1
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: pry-byebug
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - '='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 3.4.2
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - '='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 3.4.2
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: pry-doc
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - '='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 0.10.0
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - '='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 0.10.0
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: awesome_print
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - '='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 1.7.0
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - '='
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 1.7.0
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: colorator
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - '='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 1.1.0
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - '='
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 1.1.0
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: guard
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - '='
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 2.14.1
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - '='
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 2.14.1
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: guard-livereload
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - '='
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 2.5.2
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - '='
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 2.5.2
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: guard-minitest
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - '='
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: 2.4.6
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - '='
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 2.4.6
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: guard-rake
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - '='
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: 1.0.0
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - '='
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: 1.0.0
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: guard-reek
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - '='
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: 1.0.2
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - '='
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: 1.0.2
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: guard-rubocop
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - '='
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: 1.2.0
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - '='
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: 1.2.0
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: guard-rubycritic
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - '='
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: 2.9.3
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - '='
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: 2.9.3
|
349
|
+
description:
|
350
|
+
email:
|
351
|
+
- jdickey@seven-sigma.com
|
352
|
+
executables: []
|
353
|
+
extensions: []
|
354
|
+
extra_rdoc_files: []
|
355
|
+
files:
|
356
|
+
- ".gitignore"
|
357
|
+
- ".rubocop.yml"
|
358
|
+
- ".travis.yml"
|
359
|
+
- Gemfile
|
360
|
+
- LICENSE.txt
|
361
|
+
- README.md
|
362
|
+
- Rakefile
|
363
|
+
- bin/console
|
364
|
+
- bin/setup
|
365
|
+
- config.reek
|
366
|
+
- doc/API-DOCUMENTATION.md
|
367
|
+
- doc/CODE_OF_CONDUCT.md
|
368
|
+
- doc/UBIQUITOUS-LANGUAGE.md
|
369
|
+
- lib/rack/service_api_versioning.rb
|
370
|
+
- lib/rack/service_api_versioning/accept_content_type_selector.rb
|
371
|
+
- lib/rack/service_api_versioning/api_version_redirector.rb
|
372
|
+
- lib/rack/service_api_versioning/build_redirect_location_uri.rb
|
373
|
+
- lib/rack/service_api_versioning/build_redirect_uri_from_env.rb
|
374
|
+
- lib/rack/service_api_versioning/encoded_api_version_data.rb
|
375
|
+
- lib/rack/service_api_versioning/encoded_api_version_data/input_data.rb
|
376
|
+
- lib/rack/service_api_versioning/encoded_api_version_data/invalid_base_url_error.rb
|
377
|
+
- lib/rack/service_api_versioning/encoded_api_version_data/return_data.rb
|
378
|
+
- lib/rack/service_api_versioning/http_error_response.rb
|
379
|
+
- lib/rack/service_api_versioning/input_env.rb
|
380
|
+
- lib/rack/service_api_versioning/input_is_invalid.rb
|
381
|
+
- lib/rack/service_api_versioning/match_header_against_api_versions.rb
|
382
|
+
- lib/rack/service_api_versioning/report_invalid_description.rb
|
383
|
+
- lib/rack/service_api_versioning/report_no_matching_version.rb
|
384
|
+
- lib/rack/service_api_versioning/report_not_found.rb
|
385
|
+
- lib/rack/service_api_versioning/service_component_describer.rb
|
386
|
+
- lib/rack/service_api_versioning/service_component_describer/report_service_not_found.rb
|
387
|
+
- lib/rack/service_api_versioning/version.rb
|
388
|
+
- lib/tasks/flog_task_patch.rb
|
389
|
+
- rack-service_api_versioning.gemspec
|
390
|
+
- tmp/gemsets/setup-and-bundle.sh
|
391
|
+
homepage: https://github.com/jdickey/rack-service_api_versioning
|
392
|
+
licenses:
|
393
|
+
- MIT
|
394
|
+
metadata: {}
|
395
|
+
post_install_message:
|
396
|
+
rdoc_options: []
|
397
|
+
require_paths:
|
398
|
+
- lib
|
399
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
400
|
+
requirements:
|
401
|
+
- - ">="
|
402
|
+
- !ruby/object:Gem::Version
|
403
|
+
version: 2.3.0
|
404
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
405
|
+
requirements:
|
406
|
+
- - ">="
|
407
|
+
- !ruby/object:Gem::Version
|
408
|
+
version: '0'
|
409
|
+
requirements: []
|
410
|
+
rubyforge_project:
|
411
|
+
rubygems_version: 2.6.11
|
412
|
+
signing_key:
|
413
|
+
specification_version: 4
|
414
|
+
summary: Rack middleware for API Version-specific Component Service redirection.
|
415
|
+
test_files: []
|