grape-swagger-rails 1.0.8 → 1.0.10
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/swagger-ui-update.yml +26 -0
- data/CHANGELOG.md +8 -0
- data/CONTRIBUTING.md +10 -0
- data/README.md +3 -3
- data/app/assets/javascripts/grape_swagger_rails/swagger-ui-bundle.js +1 -1
- data/app/assets/javascripts/grape_swagger_rails/swagger-ui-standalone-preset.js +1 -1
- data/app/assets/stylesheets/grape_swagger_rails/swagger-ui.css +1 -1
- data/bin/bump +36 -0
- data/grape-swagger-rails.gemspec +2 -0
- data/lib/grape-swagger-rails/version.rb +2 -2
- data/spec/scripts/bump_spec.rb +86 -0
- metadata +25 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa18f1210b859b7dbc97ad02d4148ae73129724a296507557746e04e93b65db3
|
|
4
|
+
data.tar.gz: 4e9facc05ebf657074d97e2b03c55a6df2f5ccdefbec6adaedfc7fd84bee061e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2edcda1c5c3f637618490bdbf46a3bd3fa1659da7cafd6339beb6ade0e85063dcd4b0339181d950b088c5f50957946bd2fe707f87c4c76d6e4cac7410381aa3a
|
|
7
|
+
data.tar.gz: 85d8cefcc1e486df62e03e45d65173d7c7f5452582d04db453ae9cca37b557c0eb0ddc829e2e2b7732fec960b4c7733c5651042b8e0ffaa7ae2fe8c0fd2e766d
|
|
@@ -47,6 +47,7 @@ jobs:
|
|
|
47
47
|
run: bundle exec rake swagger_ui:dist:update
|
|
48
48
|
|
|
49
49
|
- name: Create pull request
|
|
50
|
+
id: pull-request
|
|
50
51
|
if: steps.swagger-ui.outputs.update-needed == 'true'
|
|
51
52
|
uses: peter-evans/create-pull-request@v7
|
|
52
53
|
with:
|
|
@@ -59,3 +60,28 @@ jobs:
|
|
|
59
60
|
Updates bundled Swagger UI assets from swagger-api/swagger-ui `${{ steps.swagger-ui.outputs.latest-tag }}`.
|
|
60
61
|
|
|
61
62
|
Generated by the scheduled Swagger UI update workflow.
|
|
63
|
+
|
|
64
|
+
# PRs created with GITHUB_TOKEN do not trigger the Danger PR workflow.
|
|
65
|
+
- name: Add the pull request to the changelog
|
|
66
|
+
if: steps.pull-request.outputs.pull-request-number != ''
|
|
67
|
+
env:
|
|
68
|
+
GH_TOKEN: ${{ github.token }}
|
|
69
|
+
PR_NUMBER: ${{ steps.pull-request.outputs.pull-request-number }}
|
|
70
|
+
PR_BRANCH: update-swagger-ui-${{ steps.swagger-ui.outputs.latest-version }}
|
|
71
|
+
run: |
|
|
72
|
+
git fetch origin "$PR_BRANCH"
|
|
73
|
+
git checkout -B "$PR_BRANCH" FETCH_HEAD
|
|
74
|
+
PR_URL="$(gh pr view "$PR_NUMBER" --json url --jq .url)"
|
|
75
|
+
PR_TITLE="$(gh pr view "$PR_NUMBER" --json title --jq .title)"
|
|
76
|
+
PR_AUTHOR="$(gh api "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}" --jq .user.login)"
|
|
77
|
+
PR_AUTHOR_URL="$(gh api "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}" --jq .user.html_url)"
|
|
78
|
+
export PR_URL PR_TITLE PR_AUTHOR PR_AUTHOR_URL
|
|
79
|
+
ruby script/update_changelog
|
|
80
|
+
if git diff --quiet -- CHANGELOG.md; then
|
|
81
|
+
exit 0
|
|
82
|
+
fi
|
|
83
|
+
git config user.name github-actions[bot]
|
|
84
|
+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
85
|
+
git add CHANGELOG.md
|
|
86
|
+
git commit -m "Update changelog for #${PR_NUMBER}"
|
|
87
|
+
git push origin "$PR_BRANCH"
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
* Your contribution here.
|
|
4
4
|
|
|
5
|
+
### 1.0.10 (2026/09/22)
|
|
6
|
+
|
|
7
|
+
* [#177](https://github.com/ruby-grape/grape-swagger-rails/pull/177): Bump Swagger UI to 5.33.0 - [@moskvin](https://github.com/moskvin).
|
|
8
|
+
|
|
9
|
+
### 1.0.9 (2026/09/08)
|
|
10
|
+
|
|
11
|
+
* [#176](https://github.com/ruby-grape/grape-swagger-rails/pull/176): Bump Swagger UI to 5.32.15 - [@moskvin](https://github.com/moskvin).
|
|
12
|
+
|
|
5
13
|
### 1.0.8 (2026/08/20)
|
|
6
14
|
|
|
7
15
|
* [#175](https://github.com/ruby-grape/grape-swagger-rails/pull/175): Bump Swagger UI to 5.32.14 - [@moskvin](https://github.com/moskvin).
|
data/CONTRIBUTING.md
CHANGED
|
@@ -123,6 +123,16 @@ Go back to your pull request after a few minutes and see whether it passed muste
|
|
|
123
123
|
|
|
124
124
|
It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang on there!
|
|
125
125
|
|
|
126
|
+
## Preparing a Release
|
|
127
|
+
|
|
128
|
+
Run `bin/bump 1.0.11` with the desired new version. This updates the gem version
|
|
129
|
+
and moves all entries under `Next Release` into a new section dated today,
|
|
130
|
+
leaving `Your contribution here.` under `Next Release`. It refuses empty releases
|
|
131
|
+
and versions that are not newer than the current version.
|
|
132
|
+
|
|
133
|
+
Review the diff, commit it, and follow the usual gem release process. The script
|
|
134
|
+
does not commit, tag, push, or publish the gem.
|
|
135
|
+
|
|
126
136
|
## Thank You
|
|
127
137
|
|
|
128
138
|
Please do know that we really appreciate and value your time and work. We love you, really.
|
data/README.md
CHANGED
|
@@ -46,9 +46,9 @@ This gem is continuously tested against the following stack:
|
|
|
46
46
|
|
|
47
47
|
| Ruby | Rails | Grape | grape-swagger | Swagger UI |
|
|
48
48
|
|-----:|--------:|--------:|--------------:|-----------:|
|
|
49
|
-
| 3.4 | 7.2.2.2 | 1.8.x | 1.6.1 | 5.
|
|
50
|
-
| 3.2+ | 7.2.2.2 | 3.1.x | 2.1.4 | 5.
|
|
51
|
-
| 3.2+ | 8.1.x | 3.1.x | 2.1.4 | 5.
|
|
49
|
+
| 3.4 | 7.2.2.2 | 1.8.x | 1.6.1 | 5.33.0 |
|
|
50
|
+
| 3.2+ | 7.2.2.2 | 3.1.x | 2.1.4 | 5.33.0 |
|
|
51
|
+
| 3.2+ | 8.1.x | 3.1.x | 2.1.4 | 5.33.0 |
|
|
52
52
|
|
|
53
53
|
The dummy app and CI also exercise both supported Rails asset pipelines: Sprockets and Propshaft.
|
|
54
54
|
|