apipie-rails 1.1.0 → 1.2.0

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/.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 +38 -37
  6. data/.rubocop_todo.yml +45 -64
  7. data/.vscode/settings.json +3 -0
  8. data/CHANGELOG.md +11 -2
  9. data/Gemfile +20 -0
  10. data/README.rst +6 -6
  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 +1 -1
  15. data/lib/apipie/extractor/collector.rb +1 -1
  16. data/lib/apipie/extractor/recorder.rb +1 -1
  17. data/lib/apipie/generator/swagger/warning.rb +1 -1
  18. data/lib/apipie/resource_description.rb +28 -3
  19. data/lib/apipie/version.rb +1 -1
  20. data/spec/controllers/api/v2/architectures_controller_spec.rb +10 -3
  21. data/spec/controllers/api/v2/empty_middle_controller_spec.rb +23 -0
  22. data/spec/controllers/api/v2/nested/resources_controller_spec.rb +16 -0
  23. data/spec/controllers/api/v2/sub/footguns_controller_spec.rb +19 -0
  24. data/spec/dummy/app/controllers/api/v2/base_controller.rb +6 -0
  25. data/spec/dummy/app/controllers/api/v2/empty_middle_controller.rb +14 -0
  26. data/spec/dummy/app/controllers/api/v2/nested/resources_controller.rb +2 -2
  27. data/spec/dummy/app/controllers/api/v2/sub/footguns_controller.rb +30 -0
  28. data/spec/lib/apipie/apipies_controller_spec.rb +63 -19
  29. data/spec/lib/apipie/extractor/collector_spec.rb +57 -0
  30. metadata +11 -9
  31. data/gemfiles/Gemfile.rails50 +0 -10
  32. data/gemfiles/Gemfile.rails51 +0 -10
  33. data/gemfiles/Gemfile.rails52 +0 -10
  34. data/gemfiles/Gemfile.rails60 +0 -17
  35. data/gemfiles/Gemfile.rails61 +0 -17
  36. data/gemfiles/Gemfile.rails70 +0 -17
@@ -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