apipie-rails 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +4 -3
  3. data/.github/workflows/rubocop-challenger.yml +1 -3
  4. data/.github/workflows/rubocop.yml +1 -1
  5. data/CHANGELOG.md +13 -0
  6. data/Gemfile +2 -3
  7. data/README.md +2088 -0
  8. data/apipie-rails.gemspec +7 -1
  9. data/app/views/apipie/apipies/_method_detail.erb +2 -0
  10. data/app/views/apipie/apipies/_params.html.erb +1 -0
  11. data/app/views/apipie/apipies/_params_plain.html.erb +1 -0
  12. data/config/locales/en.yml +1 -0
  13. data/config/locales/ko.yml +1 -0
  14. data/lib/apipie/application.rb +1 -1
  15. data/lib/apipie/dsl_definition.rb +3 -3
  16. data/lib/apipie/extractor/writer.rb +1 -1
  17. data/lib/apipie/generator/swagger/method_description/response_service.rb +14 -1
  18. data/lib/apipie/param_description.rb +1 -1
  19. data/lib/apipie/response_description.rb +34 -9
  20. data/lib/apipie/response_description_adapter.rb +1 -1
  21. data/lib/apipie/routes_formatter.rb +1 -1
  22. data/lib/apipie/version.rb +1 -1
  23. data/rel-eng/gem_release.ipynb +5 -5
  24. data/spec/controllers/users_controller_spec.rb +1 -1
  25. data/spec/dummy/app/controllers/api/v2/empty_middle_controller.rb +1 -1
  26. data/spec/dummy/app/controllers/pets_controller.rb +1 -1
  27. data/spec/dummy/app/controllers/twitter_example_controller.rb +3 -3
  28. data/spec/lib/apipie/apipies_controller_spec.rb +1 -1
  29. data/spec/lib/apipie/file_handler_spec.rb +1 -1
  30. data/spec/lib/apipie/generator/swagger/method_description/response_service_spec.rb +62 -0
  31. data/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb +2 -2
  32. data/spec/lib/apipie/param_description_spec.rb +1 -1
  33. data/spec/lib/apipie/response_description/response_object_spec.rb +22 -0
  34. data/spec/lib/apipie/response_description_spec.rb +56 -0
  35. data/spec/lib/swagger/swagger_dsl_spec.rb +1 -1
  36. metadata +12 -6
  37. data/README.rst +0 -1968
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51731d3325c2241c36c5cf0e19062525d982c2b98fa0d5e0b76a5ba8625ddacd
4
- data.tar.gz: 45db678d7324e76064a8d8a632ac5e72048d85ba7d32329168202bd48723219b
3
+ metadata.gz: ad4ac03f9bd83b8517dacdc1827c821bf9413649984eb84dee775ce7972a9e7d
4
+ data.tar.gz: 4dfa2be9dcc9ac7aab06b930164beb1eede84351c1f9a0eef23aef6e224985cb
5
5
  SHA512:
6
- metadata.gz: 1dc8a4c009d6dc3daee4ac98d2509d832edbf2dc8d9ec08a9f9205d9ef7614c0480ed60132f33116c6a09dd9a0ec3b056c60fc52e3e6a61b6cf67eb913985619
7
- data.tar.gz: 4621285ca2c82670ec63c0b5a240b0d6024d37e445c724a243782e492c5c6be65091187ee07ef874ff7d0320d68109577277d885b8ea4a28e2aed8c2a94490cf
6
+ metadata.gz: 98af0fe369f7b730c7dbf5a40d8c63e67ae2ca0f5b201ad4510827090a634cb30965dd5c737b46c26bd1e2084153481671e606ee970a814c859277a3eacadd2c
7
+ data.tar.gz: 5db3aef55422e20fc2b5bcafd2df97daf2ee10a0c09947b77791f614665615d8a607e393a76a72bdbb5f718ff879b048ab49fb49edebd70376fe284d5cb2967a
@@ -9,8 +9,10 @@ jobs:
9
9
  fail-fast: false
10
10
  matrix:
11
11
  rails: ["7.1", "7.0", "6.1", "6.0"]
12
- ruby: ["3.2.2", "3.1.4", "3.0.6", "2.7.8"]
12
+ ruby: ["3.3", "3.2", "3.1", "3.0", "2.7"]
13
13
  include:
14
+ - rails: "7.1"
15
+ ruby: "3.4.0-preview1"
14
16
  - rails: "5.2"
15
17
  ruby: "2.7.8"
16
18
  - rails: "5.1"
@@ -19,11 +21,10 @@ jobs:
19
21
  ruby: "2.6.10"
20
22
 
21
23
  env:
22
- RUBY_VERSION: ${{ matrix.ruby }}
23
24
  RAILS_VERSION: ${{ matrix.rails }}
24
25
 
25
26
  steps:
26
- - uses: actions/checkout@v2
27
+ - uses: actions/checkout@v4
27
28
  - uses: ruby/setup-ruby@v1
28
29
  with:
29
30
  ruby-version: ${{ matrix.ruby }}
@@ -8,10 +8,8 @@ jobs:
8
8
  create-pr:
9
9
  name: Create Pull Request
10
10
  runs-on: ubuntu-latest
11
- env:
12
- BUNDLE_GEMFILE: gemfiles/Gemfile.rails50
13
11
  steps:
14
- - uses: actions/checkout@v2
12
+ - uses: actions/checkout@v4
15
13
  - name: Set up Ruby 3.2
16
14
  uses: ruby/setup-ruby@v1
17
15
  with:
@@ -6,7 +6,7 @@ jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v3
9
+ - uses: actions/checkout@v4
10
10
 
11
11
  - name: Set up Ruby 3.2
12
12
  uses: ruby/setup-ruby@v1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  Changelog
2
2
  ===========
3
3
 
4
+ ## [v1.4.0](https://github.com/Apipie/apipie-rails/tree/v1.4.0) (2024-05-30)
5
+ [Full Changelog](https://github.com/Apipie/apipie-rails/compare/v1.3.0...v1.4.0)
6
+ * Add Ruby 3.3.0 to CI build matrix (#906) Masato Nakamura
7
+ * Fix rubocop CI (#910) (Masato Nakamura)
8
+ * Add metadata for rubygems.org and use https URLs (#909) (Masato Nakamura)
9
+ * Bump GHA actions/checkout to be on node20 by default (#911) (Masato Nakamura)
10
+ * Convert readme to markdown (#920) (Panos Dalitsouris)
11
+ * Fix typos, Found via `codespell` (#921) (Kian-Meng Ang)
12
+ * Bump ruby versions on test jobs (#927) (Masato Nakamura)
13
+ * Support for Ruby 3.4.0-preview1 (#929) (Masato Nakamura)
14
+ * Add "blank allowed" message to api doc (#926) (Peko)
15
+ * Custom headers responses (#924) (Panos Dalitsouris)
16
+
4
17
  ## [v1.3.0](https://github.com/Apipie/apipie-rails/tree/v1.3.0) (2023-12-19)
5
18
  [Full Changelog](https://github.com/Apipie/apipie-rails/compare/v1.2.3...v1.3.0)
6
19
  * rubocop fixes ([#897](https://github.com/Apipie/apipie-rails/pull/897)) (Mathieu Jobin)
data/Gemfile CHANGED
@@ -5,9 +5,8 @@ source 'https://rubygems.org'
5
5
  gemspec path: '.'
6
6
 
7
7
  # use ENV vars, with default value as fallback for local setup
8
- ruby(ENV['RUBY_VERSION'] || '3.2.2')
9
- gem 'actionpack', "~> #{ENV['RAILS_VERSION'] || '7.0'}.0"
10
- gem 'activesupport', "~> #{ENV['RAILS_VERSION'] || '7.0'}.0"
8
+ gem 'actionpack', "~> #{ENV['RAILS_VERSION'] || '7.1'}.0"
9
+ gem 'activesupport', "~> #{ENV['RAILS_VERSION'] || '7.1'}.0"
11
10
 
12
11
  gem 'mime-types' # , '~> 3.0'
13
12
  gem 'rails-controller-testing'