apipie-rails 1.1.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +12 -48
  3. data/.github/workflows/rubocop-challenger.yml +2 -2
  4. data/.github/workflows/rubocop.yml +2 -4
  5. data/.rubocop.yml +39 -38
  6. data/.rubocop_todo.yml +55 -65
  7. data/.vscode/settings.json +3 -0
  8. data/CHANGELOG.md +19 -2
  9. data/Gemfile +20 -0
  10. data/README.rst +12 -9
  11. data/app/controllers/apipie/apipies_controller.rb +3 -17
  12. data/gemfiles/Gemfile.tools +9 -0
  13. data/lib/apipie/application.rb +18 -7
  14. data/lib/apipie/dsl_definition.rb +6 -5
  15. data/lib/apipie/errors.rb +14 -0
  16. data/lib/apipie/extractor/collector.rb +1 -1
  17. data/lib/apipie/extractor/recorder.rb +1 -1
  18. data/lib/apipie/extractor.rb +6 -3
  19. data/lib/apipie/generator/swagger/config.rb +3 -1
  20. data/lib/apipie/generator/swagger/method_description/api_schema_service.rb +6 -3
  21. data/lib/apipie/generator/swagger/warning.rb +1 -1
  22. data/lib/apipie/resource_description.rb +28 -3
  23. data/lib/apipie/validator.rb +20 -6
  24. data/lib/apipie/version.rb +1 -1
  25. data/spec/controllers/api/v2/architectures_controller_spec.rb +10 -3
  26. data/spec/controllers/api/v2/empty_middle_controller_spec.rb +23 -0
  27. data/spec/controllers/api/v2/nested/resources_controller_spec.rb +16 -0
  28. data/spec/controllers/api/v2/sub/footguns_controller_spec.rb +19 -0
  29. data/spec/controllers/users_controller_spec.rb +10 -0
  30. data/spec/dummy/app/controllers/api/v2/base_controller.rb +6 -0
  31. data/spec/dummy/app/controllers/api/v2/empty_middle_controller.rb +14 -0
  32. data/spec/dummy/app/controllers/api/v2/nested/resources_controller.rb +2 -2
  33. data/spec/dummy/app/controllers/api/v2/sub/footguns_controller.rb +30 -0
  34. data/spec/dummy/app/controllers/users_controller.rb +6 -0
  35. data/spec/dummy/config/routes.rb +1 -0
  36. data/spec/lib/apipie/apipies_controller_spec.rb +63 -19
  37. data/spec/lib/apipie/extractor/collector_spec.rb +57 -0
  38. data/spec/lib/apipie/generator/swagger/method_description/api_schema_service_spec.rb +13 -0
  39. data/spec/test_engine/memes_controller_spec.rb +1 -1
  40. metadata +11 -9
  41. data/gemfiles/Gemfile.rails50 +0 -10
  42. data/gemfiles/Gemfile.rails51 +0 -10
  43. data/gemfiles/Gemfile.rails52 +0 -10
  44. data/gemfiles/Gemfile.rails60 +0 -17
  45. data/gemfiles/Gemfile.rails61 +0 -17
  46. data/gemfiles/Gemfile.rails70 +0 -17
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apipie-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pokorny
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-16 00:00:00.000000000 Z
12
+ date: 2023-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -208,8 +208,10 @@ files:
208
208
  - ".rspec"
209
209
  - ".rubocop.yml"
210
210
  - ".rubocop_todo.yml"
211
+ - ".vscode/settings.json"
211
212
  - APACHE-LICENSE-2.0
212
213
  - CHANGELOG.md
214
+ - Gemfile
213
215
  - MIT-LICENSE
214
216
  - NOTICE
215
217
  - PROPOSAL_FOR_RESPONSE_DESCRIPTIONS.md
@@ -258,12 +260,7 @@ files:
258
260
  - config/locales/tr.yml
259
261
  - config/locales/zh-CN.yml
260
262
  - config/locales/zh-TW.yml
261
- - gemfiles/Gemfile.rails50
262
- - gemfiles/Gemfile.rails51
263
- - gemfiles/Gemfile.rails52
264
- - gemfiles/Gemfile.rails60
265
- - gemfiles/Gemfile.rails61
266
- - gemfiles/Gemfile.rails70
263
+ - gemfiles/Gemfile.tools
267
264
  - images/screenshot-1.png
268
265
  - images/screenshot-2.png
269
266
  - lib/apipie-rails.rb
@@ -342,7 +339,9 @@ files:
342
339
  - rel-eng/tito.props
343
340
  - spec/controllers/api/v1/architectures_controller_spec.rb
344
341
  - spec/controllers/api/v2/architectures_controller_spec.rb
342
+ - spec/controllers/api/v2/empty_middle_controller_spec.rb
345
343
  - spec/controllers/api/v2/nested/resources_controller_spec.rb
344
+ - spec/controllers/api/v2/sub/footguns_controller_spec.rb
346
345
  - spec/controllers/concerns_controller_spec.rb
347
346
  - spec/controllers/extended_controller_spec.rb
348
347
  - spec/controllers/included_param_group_controller_spec.rb
@@ -354,8 +353,10 @@ files:
354
353
  - spec/dummy/app/controllers/api/v1/base_controller.rb
355
354
  - spec/dummy/app/controllers/api/v2/architectures_controller.rb
356
355
  - spec/dummy/app/controllers/api/v2/base_controller.rb
356
+ - spec/dummy/app/controllers/api/v2/empty_middle_controller.rb
357
357
  - spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb
358
358
  - spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
359
+ - spec/dummy/app/controllers/api/v2/sub/footguns_controller.rb
359
360
  - spec/dummy/app/controllers/application_controller.rb
360
361
  - spec/dummy/app/controllers/concerns_controller.rb
361
362
  - spec/dummy/app/controllers/extended_controller.rb
@@ -408,6 +409,7 @@ files:
408
409
  - spec/lib/apipie/apipies_controller_spec.rb
409
410
  - spec/lib/apipie/application_spec.rb
410
411
  - spec/lib/apipie/configuration_spec.rb
412
+ - spec/lib/apipie/extractor/collector_spec.rb
411
413
  - spec/lib/apipie/extractor/recorder/middleware_spec.rb
412
414
  - spec/lib/apipie/extractor/recorder_spec.rb
413
415
  - spec/lib/apipie/extractor/writer_spec.rb
@@ -470,7 +472,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
470
472
  - !ruby/object:Gem::Version
471
473
  version: '0'
472
474
  requirements: []
473
- rubygems_version: 3.1.6
475
+ rubygems_version: 3.4.11
474
476
  signing_key:
475
477
  specification_version: 4
476
478
  summary: Rails REST API documentation tool
@@ -1,10 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'actionpack', '~> 5.0.0'
6
- gem 'activesupport', '~> 5.0.0'
7
- gem 'mime-types', '~> 2.99.3'
8
- gem 'rails-controller-testing'
9
-
10
- gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
@@ -1,10 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'actionpack', '~> 5.1.0'
6
- gem 'activesupport', '~> 5.1.0'
7
- gem 'mime-types', '~> 2.99.3'
8
- gem 'rails-controller-testing'
9
-
10
- gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
@@ -1,10 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'actionpack', '~> 5.2.6'
6
- gem 'activesupport', '~> 5.2.6'
7
- gem 'mime-types', '~> 2.99.3'
8
- gem 'rails-controller-testing'
9
-
10
- gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
@@ -1,17 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'actionpack', '~> 6.0.4'
6
- gem 'activesupport', '~> 6.0.4'
7
- gem 'mime-types', '~> 3.0'
8
- gem 'rails-controller-testing'
9
- gem 'rspec-rails', '~> 5.0'
10
-
11
- # net-smtp not included by default in Ruby 3.1
12
- # Will be fixed by https://github.com/mikel/mail/pull/1439
13
- if Gem.ruby_version >= Gem::Version.new("3.1.0")
14
- gem 'net-smtp', require: false
15
- end
16
-
17
- gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
@@ -1,17 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'actionpack', '~> 6.1.5'
6
- gem 'activesupport', '~> 6.1.5'
7
- gem 'mime-types', '~> 3.0'
8
- gem 'rails-controller-testing'
9
- gem 'rspec-rails', '~> 5.0'
10
-
11
- # net-smtp not included by default in Ruby 3.1
12
- # Will be fixed by https://github.com/mikel/mail/pull/1439
13
- if Gem.ruby_version >= Gem::Version.new("3.1.0")
14
- gem 'net-smtp', require: false
15
- end
16
-
17
- gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
@@ -1,17 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'actionpack', '~> 7.0.2'
6
- gem 'activesupport', '~> 7.0.2'
7
- gem 'mime-types', '~> 3.0'
8
- gem 'rails-controller-testing'
9
- gem 'rspec-rails', '~> 5.0'
10
-
11
- # net-smtp not included by default in Ruby 3.1
12
- # Will be fixed by https://github.com/mikel/mail/pull/1439
13
- if Gem.ruby_version >= Gem::Version.new("3.1.0")
14
- gem 'net-smtp', require: false
15
- end
16
-
17
- gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test