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.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +12 -48
- data/.github/workflows/rubocop-challenger.yml +2 -2
- data/.github/workflows/rubocop.yml +2 -4
- data/.rubocop.yml +39 -38
- data/.rubocop_todo.yml +55 -65
- data/.vscode/settings.json +3 -0
- data/CHANGELOG.md +19 -2
- data/Gemfile +20 -0
- data/README.rst +12 -9
- data/app/controllers/apipie/apipies_controller.rb +3 -17
- data/gemfiles/Gemfile.tools +9 -0
- data/lib/apipie/application.rb +18 -7
- data/lib/apipie/dsl_definition.rb +6 -5
- data/lib/apipie/errors.rb +14 -0
- data/lib/apipie/extractor/collector.rb +1 -1
- data/lib/apipie/extractor/recorder.rb +1 -1
- data/lib/apipie/extractor.rb +6 -3
- data/lib/apipie/generator/swagger/config.rb +3 -1
- data/lib/apipie/generator/swagger/method_description/api_schema_service.rb +6 -3
- data/lib/apipie/generator/swagger/warning.rb +1 -1
- data/lib/apipie/resource_description.rb +28 -3
- data/lib/apipie/validator.rb +20 -6
- data/lib/apipie/version.rb +1 -1
- data/spec/controllers/api/v2/architectures_controller_spec.rb +10 -3
- data/spec/controllers/api/v2/empty_middle_controller_spec.rb +23 -0
- data/spec/controllers/api/v2/nested/resources_controller_spec.rb +16 -0
- data/spec/controllers/api/v2/sub/footguns_controller_spec.rb +19 -0
- data/spec/controllers/users_controller_spec.rb +10 -0
- data/spec/dummy/app/controllers/api/v2/base_controller.rb +6 -0
- data/spec/dummy/app/controllers/api/v2/empty_middle_controller.rb +14 -0
- data/spec/dummy/app/controllers/api/v2/nested/resources_controller.rb +2 -2
- data/spec/dummy/app/controllers/api/v2/sub/footguns_controller.rb +30 -0
- data/spec/dummy/app/controllers/users_controller.rb +6 -0
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/lib/apipie/apipies_controller_spec.rb +63 -19
- data/spec/lib/apipie/extractor/collector_spec.rb +57 -0
- data/spec/lib/apipie/generator/swagger/method_description/api_schema_service_spec.rb +13 -0
- data/spec/test_engine/memes_controller_spec.rb +1 -1
- metadata +11 -9
- data/gemfiles/Gemfile.rails50 +0 -10
- data/gemfiles/Gemfile.rails51 +0 -10
- data/gemfiles/Gemfile.rails52 +0 -10
- data/gemfiles/Gemfile.rails60 +0 -17
- data/gemfiles/Gemfile.rails61 +0 -17
- 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
|
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-
|
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.
|
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.
|
475
|
+
rubygems_version: 3.4.11
|
474
476
|
signing_key:
|
475
477
|
specification_version: 4
|
476
478
|
summary: Rails REST API documentation tool
|
data/gemfiles/Gemfile.rails50
DELETED
@@ -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
|
data/gemfiles/Gemfile.rails51
DELETED
@@ -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
|
data/gemfiles/Gemfile.rails52
DELETED
@@ -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
|
data/gemfiles/Gemfile.rails60
DELETED
@@ -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
|
data/gemfiles/Gemfile.rails61
DELETED
@@ -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
|
data/gemfiles/Gemfile.rails70
DELETED
@@ -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
|