apipie-rails 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop-challenger.yml +1 -1
  3. data/.github/workflows/rubocop.yml +20 -0
  4. data/.rubocop.yml +6 -0
  5. data/.rubocop_todo.yml +256 -371
  6. data/CHANGELOG.md +10 -1
  7. data/README.rst +20 -0
  8. data/apipie-rails.gemspec +4 -0
  9. data/app/views/apipie/apipies/_deprecation.html.erb +16 -0
  10. data/app/views/apipie/apipies/_params.html.erb +7 -1
  11. data/config/locales/en.yml +7 -0
  12. data/lib/apipie/application.rb +4 -6
  13. data/lib/apipie/configuration.rb +13 -2
  14. data/lib/apipie/dsl_definition.rb +2 -2
  15. data/lib/apipie/extractor/recorder.rb +1 -1
  16. data/lib/apipie/extractor.rb +1 -1
  17. data/lib/apipie/markup.rb +9 -8
  18. data/lib/apipie/param_description/deprecation.rb +24 -0
  19. data/lib/apipie/param_description.rb +38 -11
  20. data/lib/apipie/resource_description.rb +1 -1
  21. data/lib/apipie/validator.rb +7 -8
  22. data/lib/apipie/version.rb +1 -1
  23. data/lib/apipie-rails.rb +1 -0
  24. data/lib/tasks/apipie.rake +1 -0
  25. data/spec/controllers/users_controller_spec.rb +8 -1
  26. data/spec/{controllers → lib/apipie}/apipies_controller_spec.rb +2 -2
  27. data/spec/lib/{application_spec.rb → apipie/application_spec.rb} +6 -3
  28. data/spec/lib/apipie/configuration_spec.rb +23 -0
  29. data/spec/lib/apipie/extractor/recorder_spec.rb +40 -0
  30. data/spec/lib/{method_description_spec.rb → apipie/method_description_spec.rb} +4 -4
  31. data/spec/lib/apipie/param_description/deprecation_spec.rb +31 -0
  32. data/spec/lib/{param_description_spec.rb → apipie/param_description_spec.rb} +81 -1
  33. data/spec/lib/{resource_description_spec.rb → apipie/resource_description_spec.rb} +2 -2
  34. data/spec/lib/swagger/swagger_dsl_spec.rb +1 -1
  35. data/spec/spec_helper.rb +1 -1
  36. metadata +76 -28
  37. /data/spec/{lib/swagger/response_validation_spec.rb → controllers/pets_controller_spec.rb} +0 -0
  38. /data/spec/lib/{extractor → apipie/extractor/recorder}/middleware_spec.rb +0 -0
  39. /data/spec/lib/{extractor → apipie/extractor}/writer_spec.rb +0 -0
  40. /data/spec/lib/{extractor → apipie}/extractor_spec.rb +0 -0
  41. /data/spec/lib/{file_handler_spec.rb → apipie/file_handler_spec.rb} +0 -0
  42. /data/spec/lib/{generator → apipie/generator}/swagger/context_spec.rb +0 -0
  43. /data/spec/lib/{generator → apipie/generator}/swagger/operation_id_spec.rb +0 -0
  44. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/builder_spec.rb +0 -0
  45. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/composite_spec.rb +0 -0
  46. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/description_spec.rb +0 -0
  47. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/in_spec.rb +0 -0
  48. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/name_spec.rb +0 -0
  49. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/type_spec.rb +0 -0
  50. /data/spec/lib/{generator → apipie/generator}/swagger/param_description_spec.rb +0 -0
  51. /data/spec/lib/{generator → apipie/generator}/swagger/type_extractor_spec.rb +0 -0
  52. /data/spec/lib/{generator → apipie/generator}/swagger/warning_spec.rb +0 -0
  53. /data/spec/lib/{generator → apipie/generator}/swagger/warning_writer_spec.rb +0 -0
  54. /data/spec/lib/{method_description → apipie/method_description}/apis_service_spec.rb +0 -0
  55. /data/spec/lib/{param_group_spec.rb → apipie/param_group_spec.rb} +0 -0
  56. /data/spec/lib/{validator_spec.rb → apipie/validator_spec.rb} +0 -0
  57. /data/spec/{controllers → test_engine}/memes_controller_spec.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9e2fec6d89bb6cb249c499252c4121de7401c8d7deb9dd2c0841c92f29e0422
4
- data.tar.gz: 4e89b98b3f70011cb1a42f61ac84e3cd3ee427c07ba2e9562ce6b7eaa5794ecd
3
+ metadata.gz: 5c985a0a0a96f041421d812221f6352f69fb32eb93ec6a6bb4a990b2151a39f8
4
+ data.tar.gz: 3d21ade5a4dfb08bc0faaf5c46fa8fe5e7cf294f14d9ee637c3e019b522f5bbf
5
5
  SHA512:
6
- metadata.gz: 548fc9eccedd4fd277bb8b0b87ff63076465fd2030d43ede7e392a9db7aba43b408d151dcc12be8050e51f52c50e2b0cc9915461d6d99e52268f58252e6d7f8d
7
- data.tar.gz: a550683bc7d8f9f90f379917e4dc50b0880c294e6de3466c24b4b084a3d49e62ee9e4fd80c74670229fd1fbab9cd6e76d971d723767d9494df254761d027b568
6
+ metadata.gz: 907ba718cd32695e13ce42203d639891de031221f90475712b2c7e816b1db7304174922ea796d2a31cdc4050f768871b06c3e9efc968e4db447400531ad0ca45
7
+ data.tar.gz: 234ba3b4eab287d9530e09ae28c79821a509c4c57f8b42b1bf2da83d93141d3fb807c88cef97d9a889c4e4b1a70a94d41f92a2f5c6bf0e79f8c9ad3a65aa9f50
@@ -25,4 +25,4 @@ jobs:
25
25
  - name: Create RuboCop challenge pull request
26
26
  env:
27
27
  GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
- run: bundle exec rubocop_challenger go --base-branch=master --email=rubocop@payrollhero.com --name="Rubocop Challenger" --mode=random
28
+ run: bundle exec rubocop_challenger go --exclude-limit=180 --base-branch=master --email=rubocop@payrollhero.com --name="Rubocop Challenger" --mode=random
@@ -0,0 +1,20 @@
1
+ name: RuboCop
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ env:
9
+ BUNDLE_GEMFILE: gemfiles/Gemfile.rails70
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+
13
+ - name: Set up Ruby 2.7
14
+ uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 2.7
17
+ bundler-cache: true
18
+
19
+ - name: Run rubocop
20
+ run: bundle exec rubocop --config .rubocop.yml
data/.rubocop.yml CHANGED
@@ -22,11 +22,13 @@ Layout/LineLength:
22
22
  - lib/apipie/errors.rb
23
23
  - lib/apipie/generator/swagger/warning.rb
24
24
  - lib/apipie/rspec/response_validation_helper.rb
25
+ - spec/controllers/pets_controller_spec.rb
25
26
  - spec/controllers/users_controller_spec.rb
26
27
  - spec/dummy/app/controllers/twitter_example_controller.rb
27
28
  - spec/dummy/config/initializers/secret_token.rb
28
29
  - spec/lib/application_spec.rb
29
30
  - spec/lib/param_description_spec.rb
31
+ - spec/lib/param_description_deprecation_spec.rb
30
32
  - spec/lib/swagger/response_validation_spec.rb
31
33
  - spec/spec_helper.rb
32
34
 
@@ -110,3 +112,7 @@ Style/Documentation:
110
112
  - spec/support/custom_bool_validator.rb
111
113
  - spec/lib/validators/array_validator_spec.rb
112
114
  - spec/dummy/**/*.rb
115
+
116
+ Naming/BlockForwarding:
117
+ EnforcedStyle: explicit
118
+ BlockForwardingName: block