grape-swagger-rails 0.3.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/danger.yml +19 -0
  3. data/.github/workflows/head.yml +32 -0
  4. data/.github/workflows/rubocop.yml +14 -0
  5. data/.github/workflows/test.yml +35 -0
  6. data/.rubocop.yml +7 -2
  7. data/.rubocop_todo.yml +103 -32
  8. data/CHANGELOG.md +25 -14
  9. data/Dangerfile +2 -0
  10. data/Gemfile +24 -16
  11. data/README.md +32 -2
  12. data/RELEASING.md +4 -5
  13. data/Rakefile +5 -9
  14. data/app/assets/config/grape_swagger_rails_manifest.js +2 -0
  15. data/app/controllers/grape_swagger_rails/application_controller.rb +4 -2
  16. data/app/views/grape_swagger_rails/application/index.html.erb +1 -1
  17. data/config/routes.rb +2 -0
  18. data/grape-swagger-rails.gemspec +13 -29
  19. data/lib/grape-swagger-rails/engine.rb +2 -0
  20. data/lib/grape-swagger-rails/version.rb +3 -1
  21. data/lib/grape-swagger-rails.rb +17 -14
  22. data/lib/script/rails +4 -2
  23. data/lib/tasks/swagger_ui.rake +6 -3
  24. data/spec/dummy/Rakefile +6 -3
  25. data/spec/dummy/app/api/api.rb +2 -0
  26. data/spec/dummy/app/assets/config/manifest.js +3 -0
  27. data/spec/dummy/app/assets/javascripts/application.js +0 -2
  28. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  29. data/spec/dummy/app/controllers/welcome_controller.rb +3 -2
  30. data/spec/dummy/app/views/layouts/application.html.erb +1 -0
  31. data/spec/dummy/bin/rails +3 -5
  32. data/spec/dummy/bin/rake +2 -4
  33. data/spec/dummy/bin/setup +27 -0
  34. data/spec/dummy/config/application.rb +11 -10
  35. data/spec/dummy/config/boot.rb +4 -7
  36. data/spec/dummy/config/environment.rb +6 -2
  37. data/spec/dummy/config/environments/development.rb +40 -19
  38. data/spec/dummy/config/environments/production.rb +31 -31
  39. data/spec/dummy/config/environments/test.rb +30 -20
  40. data/spec/dummy/config/initializers/assets.rb +13 -0
  41. data/spec/dummy/config/initializers/filter_parameter_logging.rb +10 -0
  42. data/spec/dummy/config/initializers/inflections.rb +18 -0
  43. data/spec/dummy/config/initializers/swagger.rb +2 -0
  44. data/spec/dummy/config/routes.rb +2 -0
  45. data/spec/dummy/config.ru +6 -2
  46. data/spec/dummy/public/404.html +6 -6
  47. data/spec/dummy/public/422.html +6 -6
  48. data/spec/dummy/public/500.html +6 -6
  49. data/spec/features/grape-swagger-rails_spec.rb +5 -1
  50. data/spec/features/swagger_spec.rb +97 -35
  51. data/spec/features/welcome_spec.rb +3 -0
  52. data/spec/spec_helper.rb +4 -2
  53. data/spec/support/capybara.rb +3 -0
  54. data/spec/support/rails.rb +2 -0
  55. metadata +25 -340
  56. data/.travis.yml +0 -53
  57. data/spec/dummy/bin/bundle +0 -3
  58. data/spec/dummy/bin/spring +0 -18
  59. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -1
  60. data/spec/dummy/config/initializers/session_store.rb +0 -1
  61. data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
  62. data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-swagger-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Logunov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-16 00:00:00.000000000 Z
11
+ date: 2024-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,307 +16,30 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.12
19
+ version: 6.0.6.1
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
- version: 3.2.12
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.15'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.15'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: git
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rspec-rails
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: capybara
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: grape
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: grape-swagger
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: 0.7.2
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: 0.7.2
125
- - !ruby/object:Gem::Dependency
126
- name: selenium-webdriver
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: sass-rails
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: uglifier
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: coffee-rails
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: jquery-rails
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: grape-swagger-ui
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: sprockets
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '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'
223
- - !ruby/object:Gem::Dependency
224
- name: rack
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: '1.6'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
235
- - !ruby/object:Gem::Version
236
- version: '1.6'
237
- - !ruby/object:Gem::Dependency
238
- name: rack-cors
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - ">="
242
- - !ruby/object:Gem::Version
243
- version: '0'
244
- type: :development
245
- prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - ">="
249
- - !ruby/object:Gem::Version
250
- version: '0'
251
- - !ruby/object:Gem::Dependency
252
- name: rubocop
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - '='
256
- - !ruby/object:Gem::Version
257
- version: 0.38.0
258
- type: :development
259
- prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - '='
263
- - !ruby/object:Gem::Version
264
- version: 0.38.0
265
- - !ruby/object:Gem::Dependency
266
- name: mime-types
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - "<"
270
- - !ruby/object:Gem::Version
271
- version: '3.0'
272
- type: :development
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - "<"
277
- - !ruby/object:Gem::Version
278
- version: '3.0'
279
- - !ruby/object:Gem::Dependency
280
- name: rack-no_animations
281
- requirement: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - ">="
284
- - !ruby/object:Gem::Version
285
- version: '0'
286
- type: :development
287
- prerelease: false
288
- version_requirements: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - ">="
291
- - !ruby/object:Gem::Version
292
- version: '0'
293
- - !ruby/object:Gem::Dependency
294
- name: nokogiri
295
- requirement: !ruby/object:Gem::Requirement
296
- requirements:
297
- - - "<"
298
- - !ruby/object:Gem::Version
299
- version: 1.7.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.7.0
307
- description: Swagger UI as Rails Engine for grape-swagger gem
26
+ version: 6.0.6.1
27
+ description: Swagger UI as Rails Engine for grape-swagger gem.
308
28
  email:
309
29
  - unlovedru@gmail.com
310
30
  executables: []
311
31
  extensions: []
312
32
  extra_rdoc_files: []
313
33
  files:
34
+ - ".github/workflows/danger.yml"
35
+ - ".github/workflows/head.yml"
36
+ - ".github/workflows/rubocop.yml"
37
+ - ".github/workflows/test.yml"
314
38
  - ".gitignore"
315
39
  - ".rspec"
316
40
  - ".rubocop.yml"
317
41
  - ".rubocop_todo.yml"
318
42
  - ".ruby-gemset"
319
- - ".travis.yml"
320
43
  - CHANGELOG.md
321
44
  - CONTRIBUTING.md
322
45
  - Dangerfile
@@ -326,6 +49,7 @@ files:
326
49
  - RELEASING.md
327
50
  - Rakefile
328
51
  - UPGRADING.md
52
+ - app/assets/config/grape_swagger_rails_manifest.js
329
53
  - app/assets/images/grape_swagger_rails/collapse.gif
330
54
  - app/assets/images/grape_swagger_rails/expand.gif
331
55
  - app/assets/images/grape_swagger_rails/explorer_icons.png
@@ -373,6 +97,7 @@ files:
373
97
  - spec/dummy/.gitignore
374
98
  - spec/dummy/Rakefile
375
99
  - spec/dummy/app/api/api.rb
100
+ - spec/dummy/app/assets/config/manifest.js
376
101
  - spec/dummy/app/assets/javascripts/application.js
377
102
  - spec/dummy/app/assets/stylesheets/application.css
378
103
  - spec/dummy/app/controllers/application_controller.rb
@@ -380,10 +105,9 @@ files:
380
105
  - spec/dummy/app/views/layouts/_messages.html.erb
381
106
  - spec/dummy/app/views/layouts/application.html.erb
382
107
  - spec/dummy/app/views/welcome/index.html.erb
383
- - spec/dummy/bin/bundle
384
108
  - spec/dummy/bin/rails
385
109
  - spec/dummy/bin/rake
386
- - spec/dummy/bin/spring
110
+ - spec/dummy/bin/setup
387
111
  - spec/dummy/config.ru
388
112
  - spec/dummy/config/application.rb
389
113
  - spec/dummy/config/boot.rb
@@ -392,8 +116,8 @@ files:
392
116
  - spec/dummy/config/environments/production.rb
393
117
  - spec/dummy/config/environments/test.rb
394
118
  - spec/dummy/config/initializers/assets.rb
395
- - spec/dummy/config/initializers/cookies_serializer.rb
396
- - spec/dummy/config/initializers/session_store.rb
119
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
120
+ - spec/dummy/config/initializers/inflections.rb
397
121
  - spec/dummy/config/initializers/swagger.rb
398
122
  - spec/dummy/config/routes.rb
399
123
  - spec/dummy/config/secrets.yml
@@ -403,8 +127,6 @@ files:
403
127
  - spec/dummy/public/500.html
404
128
  - spec/dummy/public/favicon.ico
405
129
  - spec/dummy/public/robots.txt
406
- - spec/dummy/vendor/assets/javascripts/.keep
407
- - spec/dummy/vendor/assets/stylesheets/.keep
408
130
  - spec/features/grape-swagger-rails_spec.rb
409
131
  - spec/features/swagger_spec.rb
410
132
  - spec/features/welcome_spec.rb
@@ -414,8 +136,12 @@ files:
414
136
  homepage: https://github.com/ruby-grape/grape-swagger-rails
415
137
  licenses:
416
138
  - MIT
417
- metadata: {}
418
- post_install_message:
139
+ metadata:
140
+ bug_tracker_uri: https://github.com/ruby-grape/grape-swagger-rails/issues
141
+ changelog_uri: https://github.com/ruby-grape/grape-swagger-rails/blob/master/CHANGELOG.md
142
+ source_code_uri: https://github.com/ruby-grape/grape-swagger-rails/tree/v0.5.0
143
+ rubygems_mfa_required: 'true'
144
+ post_install_message:
419
145
  rdoc_options: []
420
146
  require_paths:
421
147
  - lib
@@ -430,49 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
430
156
  - !ruby/object:Gem::Version
431
157
  version: '0'
432
158
  requirements: []
433
- rubygems_version: 3.0.2
434
- signing_key:
159
+ rubygems_version: 3.1.4
160
+ signing_key:
435
161
  specification_version: 4
436
- summary: Swagger UI as Rails Engine for grape-swagger gem
437
- test_files:
438
- - spec/dummy/.gitignore
439
- - spec/dummy/Rakefile
440
- - spec/dummy/app/api/api.rb
441
- - spec/dummy/app/assets/javascripts/application.js
442
- - spec/dummy/app/assets/stylesheets/application.css
443
- - spec/dummy/app/controllers/application_controller.rb
444
- - spec/dummy/app/controllers/welcome_controller.rb
445
- - spec/dummy/app/views/layouts/_messages.html.erb
446
- - spec/dummy/app/views/layouts/application.html.erb
447
- - spec/dummy/app/views/welcome/index.html.erb
448
- - spec/dummy/bin/bundle
449
- - spec/dummy/bin/rails
450
- - spec/dummy/bin/rake
451
- - spec/dummy/bin/spring
452
- - spec/dummy/config.ru
453
- - spec/dummy/config/application.rb
454
- - spec/dummy/config/boot.rb
455
- - spec/dummy/config/environment.rb
456
- - spec/dummy/config/environments/development.rb
457
- - spec/dummy/config/environments/production.rb
458
- - spec/dummy/config/environments/test.rb
459
- - spec/dummy/config/initializers/assets.rb
460
- - spec/dummy/config/initializers/cookies_serializer.rb
461
- - spec/dummy/config/initializers/session_store.rb
462
- - spec/dummy/config/initializers/swagger.rb
463
- - spec/dummy/config/routes.rb
464
- - spec/dummy/config/secrets.yml
465
- - spec/dummy/public/.gitignore
466
- - spec/dummy/public/404.html
467
- - spec/dummy/public/422.html
468
- - spec/dummy/public/500.html
469
- - spec/dummy/public/favicon.ico
470
- - spec/dummy/public/robots.txt
471
- - spec/dummy/vendor/assets/javascripts/.keep
472
- - spec/dummy/vendor/assets/stylesheets/.keep
473
- - spec/features/grape-swagger-rails_spec.rb
474
- - spec/features/swagger_spec.rb
475
- - spec/features/welcome_spec.rb
476
- - spec/spec_helper.rb
477
- - spec/support/capybara.rb
478
- - spec/support/rails.rb
162
+ summary: Swagger UI as Rails Engine for grape-swagger gem.
163
+ test_files: []
data/.travis.yml DELETED
@@ -1,53 +0,0 @@
1
- addons:
2
- firefox: 54.0
3
-
4
- services:
5
- - xvfb
6
-
7
- before_install:
8
- - wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
9
- - mkdir geckodriver
10
- - tar -xzf geckodriver-v0.18.0-linux64.tar.gz -C geckodriver
11
- - export PATH=$PATH:$PWD/geckodriver
12
- - gem install bundler -v'< 2'
13
-
14
- before_script:
15
- - "export DISPLAY=:99.0"
16
- - "sh -e /etc/init.d/xvfb start"
17
- - sleep 3 # give xvfb some time to start
18
-
19
- language: ruby
20
-
21
- cache: bundler
22
-
23
- matrix:
24
- include:
25
- - rvm: 2.3.1
26
- script:
27
- - bundle exec danger
28
- - rvm: 2.3.1
29
- env:
30
- - GRAPE_SWAGGER_VERSION=0.8.0
31
- - rvm: 2.3.1
32
- env:
33
- - GRAPE_SWAGGER_VERSION=0.9.0
34
- - rvm: 2.3.1
35
- env:
36
- - GRAPE_SWAGGER_VERSION=0.11.0
37
- - rvm: 2.3.1
38
- env:
39
- - GRAPE_SWAGGER_VERSION=0.20.2
40
- - rvm: 2.3.1
41
- env:
42
- - GRAPE_SWAGGER_VERSION=HEAD
43
- - rvm: 2.3.0
44
- - rvm: 2.2.5
45
- - rvm: 2.0.0
46
- - rvm: rbx-2
47
- - rvm: ruby-head
48
- - rvm: jruby-head
49
- allow_failures:
50
- - env: GRAPE_SWAGGER_VERSION=HEAD
51
- - rvm: ruby-head
52
- - rvm: jruby-head
53
- - rvm: rbx-2
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file loads spring without using Bundler, in order to be fast
4
- # It gets overwritten when you run the `spring binstub` command
5
-
6
- unless defined?(Spring)
7
- require 'rubygems'
8
- require 'bundler'
9
-
10
- if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
11
- ENV['GEM_PATH'] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
12
- ENV['GEM_HOME'] = ''
13
- Gem.paths = ENV
14
-
15
- gem 'spring', match[1]
16
- require 'spring/binstub'
17
- end
18
- end
@@ -1 +0,0 @@
1
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1 +0,0 @@
1
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
File without changes
File without changes