apipie-rails 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop.yml +2 -2
  3. data/.rubocop.yml +15 -0
  4. data/.rubocop_todo.yml +3 -276
  5. data/CHANGELOG.md +6 -0
  6. data/app/controllers/apipie/apipies_controller.rb +2 -2
  7. data/app/helpers/apipie_helper.rb +1 -1
  8. data/lib/apipie/apipie_module.rb +2 -2
  9. data/lib/apipie/application.rb +12 -2
  10. data/lib/apipie/dsl_definition.rb +4 -4
  11. data/lib/apipie/error_description.rb +1 -1
  12. data/lib/apipie/errors.rb +2 -16
  13. data/lib/apipie/extractor/collector.rb +1 -1
  14. data/lib/apipie/extractor/recorder.rb +1 -1
  15. data/lib/apipie/extractor.rb +1 -1
  16. data/lib/apipie/generator/swagger/operation_id.rb +1 -1
  17. data/lib/apipie/helpers.rb +3 -3
  18. data/lib/apipie/method_description.rb +1 -1
  19. data/lib/apipie/resource_description.rb +10 -7
  20. data/lib/apipie/response_description.rb +1 -1
  21. data/lib/apipie/response_description_adapter.rb +3 -3
  22. data/lib/apipie/routing.rb +1 -1
  23. data/lib/apipie/rspec/response_validation_helper.rb +1 -1
  24. data/lib/apipie/swagger_generator.rb +6 -6
  25. data/lib/apipie/validator.rb +2 -2
  26. data/lib/apipie/version.rb +1 -1
  27. data/lib/tasks/apipie.rake +10 -10
  28. data/spec/dummy/config.ru +1 -1
  29. data/spec/lib/apipie/apipies_controller_spec.rb +4 -0
  30. data/spec/lib/apipie/application_spec.rb +16 -15
  31. data/spec/lib/apipie/generator/swagger/context_spec.rb +1 -0
  32. data/spec/lib/apipie/no_documented_method_spec.rb +17 -0
  33. data/spec/lib/apipie/resource_description_spec.rb +71 -28
  34. data/spec/lib/apipie/response_does_not_match_swagger_schema_spec.rb +35 -0
  35. data/spec/lib/rake_spec.rb +1 -1
  36. data/spec/lib/swagger/rake_swagger_spec.rb +2 -2
  37. data/spec/lib/swagger/swagger_dsl_spec.rb +10 -4
  38. data/spec/spec_helper.rb +2 -2
  39. metadata +5 -3
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: 0.9.3
4
+ version: 0.9.4
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-03-08 00:00:00.000000000 Z
12
+ date: 2023-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -410,10 +410,12 @@ files:
410
410
  - spec/lib/apipie/generator/swagger/warning_writer_spec.rb
411
411
  - spec/lib/apipie/method_description/apis_service_spec.rb
412
412
  - spec/lib/apipie/method_description_spec.rb
413
+ - spec/lib/apipie/no_documented_method_spec.rb
413
414
  - spec/lib/apipie/param_description/deprecation_spec.rb
414
415
  - spec/lib/apipie/param_description_spec.rb
415
416
  - spec/lib/apipie/param_group_spec.rb
416
417
  - spec/lib/apipie/resource_description_spec.rb
418
+ - spec/lib/apipie/response_does_not_match_swagger_schema_spec.rb
417
419
  - spec/lib/apipie/validator_spec.rb
418
420
  - spec/lib/rake_spec.rb
419
421
  - spec/lib/swagger/openapi_2_0_schema.json
@@ -442,7 +444,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
442
444
  - !ruby/object:Gem::Version
443
445
  version: '0'
444
446
  requirements: []
445
- rubygems_version: 3.3.26
447
+ rubygems_version: 3.1.6
446
448
  signing_key:
447
449
  specification_version: 4
448
450
  summary: Rails REST API documentation tool