grape-swagger-rails 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/danger-comment.yml +8 -2
- data/.github/workflows/danger.yml +10 -7
- data/.github/workflows/lint.yml +79 -0
- data/.github/workflows/swagger-ui-update.yml +21 -18
- data/.github/workflows/test.yml +36 -26
- data/.pnp.cjs +110 -110
- data/CHANGELOG.md +14 -0
- data/CLAUDE.md +12 -7
- data/CONTRIBUTING.md +33 -24
- data/Gemfile +5 -4
- data/README.md +5 -4
- data/RELEASING.md +1 -1
- data/Rakefile +6 -1
- data/app/assets/javascripts/grape_swagger_rails/swagger-ui-bundle.js +1 -1
- data/app/assets/stylesheets/grape_swagger_rails/swagger-ui.css +1 -1
- data/lib/grape-swagger-rails/version.rb +2 -2
- data/lib/tasks/swagger_ui.rake +7 -2
- data/package.json +2 -2
- data/script/update_changelog +2 -9
- data/spec/assets/swagger_ui_css_spec.rb +11 -0
- data/spec/features/swagger_spec.rb +1 -1
- data/spec/scripts/update_changelog_spec.rb +56 -0
- data/spec/support/capybara.rb +1 -1
- data/yarn.lock +110 -110
- metadata +7 -9
- data/.github/workflows/frontend.yml +0 -29
- data/.github/workflows/rubocop.yml +0 -14
data/Gemfile
CHANGED
|
@@ -30,7 +30,7 @@ gem 'json', ENV.fetch('JSON_VERSION') if ENV.key?('JSON_VERSION')
|
|
|
30
30
|
group :development, :test do
|
|
31
31
|
gem 'capybara'
|
|
32
32
|
gem 'danger', require: false
|
|
33
|
-
gem 'danger-changelog', require: false
|
|
33
|
+
gem 'danger-changelog', '~> 0.9.0', require: false
|
|
34
34
|
gem 'danger-pr-comment', require: false
|
|
35
35
|
gem 'danger-toc', require: false
|
|
36
36
|
# Danger 9.6 reopens Git::Base as a class, which is incompatible with git 5.
|
|
@@ -44,11 +44,12 @@ group :development, :test do
|
|
|
44
44
|
gem 'rack-cors'
|
|
45
45
|
gem 'rake'
|
|
46
46
|
gem 'rspec-rails'
|
|
47
|
-
gem 'rubocop'
|
|
48
|
-
gem 'rubocop-capybara'
|
|
47
|
+
gem 'rubocop', '~> 1.92'
|
|
48
|
+
gem 'rubocop-capybara', '~> 3.1'
|
|
49
49
|
gem 'rubocop-rake'
|
|
50
50
|
gem 'rubocop-rspec'
|
|
51
|
-
gem 'rubocop-rspec_rails'
|
|
51
|
+
gem 'rubocop-rspec_rails', '~> 2.33'
|
|
52
|
+
gem 'sassc', '~> 2.4', require: false
|
|
52
53
|
gem 'selenium-webdriver'
|
|
53
54
|
gem 'sprockets', ENV.fetch('SPROCKETS_VERSION', '>= 4.0.0'), require: false
|
|
54
55
|
gem 'sprockets-rails', require: false
|
data/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# GrapeSwaggerRails
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/grape-swagger-rails)
|
|
4
|
-
[](https://github.com/ruby-grape/grape-swagger-rails/actions/workflows/test.yml)
|
|
5
|
+
[](https://github.com/ruby-grape/grape-swagger-rails/actions/workflows/lint.yml)
|
|
5
6
|
|
|
6
7
|
Swagger UI as Rails Engine for grape-swagger gem.
|
|
7
8
|
|
|
@@ -44,9 +45,9 @@ Or install it yourself as:
|
|
|
44
45
|
|
|
45
46
|
This gem is continuously tested against the following stack:
|
|
46
47
|
|
|
47
|
-
| Ruby | Rails
|
|
48
|
-
|
|
49
|
-
| 3.2
|
|
48
|
+
| Ruby | Rails | JSON | Grape | grape-swagger | Swagger UI |
|
|
49
|
+
| ---: | ---: | ---: | ---: | ---: | ---: |
|
|
50
|
+
| 3.2/3.3/3.4/4.0 | 8.1.4–8.1.x | 2.x/3.x | 3.1.x | 2.1.4 | 5.35.0 |
|
|
50
51
|
|
|
51
52
|
The dummy app and CI also exercise both supported Rails asset pipelines: Sprockets and Propshaft.
|
|
52
53
|
Rails 8.1.4 is required for JSON 3 compatibility; older Rails versions remain supported by the 1.x gem releases.
|
data/RELEASING.md
CHANGED
|
@@ -18,7 +18,7 @@ git diff --exit-code app/assets/javascripts/grape_swagger_rails/index.js
|
|
|
18
18
|
bundle exec rake
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Check that the latest [GitHub Actions](https://github.com/ruby-grape/grape-swagger-rails/actions) runs succeeded for
|
|
21
|
+
Check that the latest [GitHub Actions](https://github.com/ruby-grape/grape-swagger-rails/actions) runs succeeded for `Test` and `Lint`.
|
|
22
22
|
|
|
23
23
|
Increment the version, modify [lib/grape-swagger-rails/version.rb](lib/grape-swagger-rails/version.rb).
|
|
24
24
|
|
data/Rakefile
CHANGED
|
@@ -19,4 +19,9 @@ RSpec::Core::RakeTask.new(:spec)
|
|
|
19
19
|
require 'rubocop/rake_task'
|
|
20
20
|
RuboCop::RakeTask.new(:rubocop)
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
desc 'Lint Ruby and GitHub Actions workflows.'
|
|
23
|
+
task lint: :rubocop do
|
|
24
|
+
sh 'actionlint'
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
task default: %i[lint spec]
|