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/.pnp.cjs
CHANGED
|
@@ -28,7 +28,7 @@ const RAW_RUNTIME_STATE =
|
|
|
28
28
|
[null, {\
|
|
29
29
|
"packageLocation": "./",\
|
|
30
30
|
"packageDependencies": [\
|
|
31
|
-
["esbuild", "npm:0.28.
|
|
31
|
+
["esbuild", "npm:0.28.2"],\
|
|
32
32
|
["grape-swagger-rails", "workspace:."],\
|
|
33
33
|
["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
|
|
34
34
|
],\
|
|
@@ -36,270 +36,270 @@ const RAW_RUNTIME_STATE =
|
|
|
36
36
|
}]\
|
|
37
37
|
]],\
|
|
38
38
|
["@esbuild/aix-ppc64", [\
|
|
39
|
-
["npm:0.28.
|
|
40
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-aix-ppc64-npm-0.28.
|
|
39
|
+
["npm:0.28.2", {\
|
|
40
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-aix-ppc64-npm-0.28.2-71024064e9/node_modules/@esbuild/aix-ppc64/",\
|
|
41
41
|
"packageDependencies": [\
|
|
42
|
-
["@esbuild/aix-ppc64", "npm:0.28.
|
|
42
|
+
["@esbuild/aix-ppc64", "npm:0.28.2"]\
|
|
43
43
|
],\
|
|
44
44
|
"linkType": "HARD"\
|
|
45
45
|
}]\
|
|
46
46
|
]],\
|
|
47
47
|
["@esbuild/android-arm", [\
|
|
48
|
-
["npm:0.28.
|
|
49
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-android-arm-npm-0.28.
|
|
48
|
+
["npm:0.28.2", {\
|
|
49
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-android-arm-npm-0.28.2-835c32094c/node_modules/@esbuild/android-arm/",\
|
|
50
50
|
"packageDependencies": [\
|
|
51
|
-
["@esbuild/android-arm", "npm:0.28.
|
|
51
|
+
["@esbuild/android-arm", "npm:0.28.2"]\
|
|
52
52
|
],\
|
|
53
53
|
"linkType": "HARD"\
|
|
54
54
|
}]\
|
|
55
55
|
]],\
|
|
56
56
|
["@esbuild/android-arm64", [\
|
|
57
|
-
["npm:0.28.
|
|
58
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-android-arm64-npm-0.28.
|
|
57
|
+
["npm:0.28.2", {\
|
|
58
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-android-arm64-npm-0.28.2-074de6a3fa/node_modules/@esbuild/android-arm64/",\
|
|
59
59
|
"packageDependencies": [\
|
|
60
|
-
["@esbuild/android-arm64", "npm:0.28.
|
|
60
|
+
["@esbuild/android-arm64", "npm:0.28.2"]\
|
|
61
61
|
],\
|
|
62
62
|
"linkType": "HARD"\
|
|
63
63
|
}]\
|
|
64
64
|
]],\
|
|
65
65
|
["@esbuild/android-x64", [\
|
|
66
|
-
["npm:0.28.
|
|
67
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-android-x64-npm-0.28.
|
|
66
|
+
["npm:0.28.2", {\
|
|
67
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-android-x64-npm-0.28.2-a3613ca393/node_modules/@esbuild/android-x64/",\
|
|
68
68
|
"packageDependencies": [\
|
|
69
|
-
["@esbuild/android-x64", "npm:0.28.
|
|
69
|
+
["@esbuild/android-x64", "npm:0.28.2"]\
|
|
70
70
|
],\
|
|
71
71
|
"linkType": "HARD"\
|
|
72
72
|
}]\
|
|
73
73
|
]],\
|
|
74
74
|
["@esbuild/darwin-arm64", [\
|
|
75
|
-
["npm:0.28.
|
|
76
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-darwin-arm64-npm-0.28.
|
|
75
|
+
["npm:0.28.2", {\
|
|
76
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-darwin-arm64-npm-0.28.2-5a01d12838/node_modules/@esbuild/darwin-arm64/",\
|
|
77
77
|
"packageDependencies": [\
|
|
78
|
-
["@esbuild/darwin-arm64", "npm:0.28.
|
|
78
|
+
["@esbuild/darwin-arm64", "npm:0.28.2"]\
|
|
79
79
|
],\
|
|
80
80
|
"linkType": "HARD"\
|
|
81
81
|
}]\
|
|
82
82
|
]],\
|
|
83
83
|
["@esbuild/darwin-x64", [\
|
|
84
|
-
["npm:0.28.
|
|
85
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-darwin-x64-npm-0.28.
|
|
84
|
+
["npm:0.28.2", {\
|
|
85
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-darwin-x64-npm-0.28.2-c096278563/node_modules/@esbuild/darwin-x64/",\
|
|
86
86
|
"packageDependencies": [\
|
|
87
|
-
["@esbuild/darwin-x64", "npm:0.28.
|
|
87
|
+
["@esbuild/darwin-x64", "npm:0.28.2"]\
|
|
88
88
|
],\
|
|
89
89
|
"linkType": "HARD"\
|
|
90
90
|
}]\
|
|
91
91
|
]],\
|
|
92
92
|
["@esbuild/freebsd-arm64", [\
|
|
93
|
-
["npm:0.28.
|
|
94
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-freebsd-arm64-npm-0.28.
|
|
93
|
+
["npm:0.28.2", {\
|
|
94
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-freebsd-arm64-npm-0.28.2-8434ac868c/node_modules/@esbuild/freebsd-arm64/",\
|
|
95
95
|
"packageDependencies": [\
|
|
96
|
-
["@esbuild/freebsd-arm64", "npm:0.28.
|
|
96
|
+
["@esbuild/freebsd-arm64", "npm:0.28.2"]\
|
|
97
97
|
],\
|
|
98
98
|
"linkType": "HARD"\
|
|
99
99
|
}]\
|
|
100
100
|
]],\
|
|
101
101
|
["@esbuild/freebsd-x64", [\
|
|
102
|
-
["npm:0.28.
|
|
103
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-freebsd-x64-npm-0.28.
|
|
102
|
+
["npm:0.28.2", {\
|
|
103
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-freebsd-x64-npm-0.28.2-32d1fbcd7c/node_modules/@esbuild/freebsd-x64/",\
|
|
104
104
|
"packageDependencies": [\
|
|
105
|
-
["@esbuild/freebsd-x64", "npm:0.28.
|
|
105
|
+
["@esbuild/freebsd-x64", "npm:0.28.2"]\
|
|
106
106
|
],\
|
|
107
107
|
"linkType": "HARD"\
|
|
108
108
|
}]\
|
|
109
109
|
]],\
|
|
110
110
|
["@esbuild/linux-arm", [\
|
|
111
|
-
["npm:0.28.
|
|
112
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-arm-npm-0.28.
|
|
111
|
+
["npm:0.28.2", {\
|
|
112
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-arm-npm-0.28.2-8b74d20cf9/node_modules/@esbuild/linux-arm/",\
|
|
113
113
|
"packageDependencies": [\
|
|
114
|
-
["@esbuild/linux-arm", "npm:0.28.
|
|
114
|
+
["@esbuild/linux-arm", "npm:0.28.2"]\
|
|
115
115
|
],\
|
|
116
116
|
"linkType": "HARD"\
|
|
117
117
|
}]\
|
|
118
118
|
]],\
|
|
119
119
|
["@esbuild/linux-arm64", [\
|
|
120
|
-
["npm:0.28.
|
|
121
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-arm64-npm-0.28.
|
|
120
|
+
["npm:0.28.2", {\
|
|
121
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-arm64-npm-0.28.2-d9b6c98eb6/node_modules/@esbuild/linux-arm64/",\
|
|
122
122
|
"packageDependencies": [\
|
|
123
|
-
["@esbuild/linux-arm64", "npm:0.28.
|
|
123
|
+
["@esbuild/linux-arm64", "npm:0.28.2"]\
|
|
124
124
|
],\
|
|
125
125
|
"linkType": "HARD"\
|
|
126
126
|
}]\
|
|
127
127
|
]],\
|
|
128
128
|
["@esbuild/linux-ia32", [\
|
|
129
|
-
["npm:0.28.
|
|
130
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-ia32-npm-0.28.
|
|
129
|
+
["npm:0.28.2", {\
|
|
130
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-ia32-npm-0.28.2-0a20b9273e/node_modules/@esbuild/linux-ia32/",\
|
|
131
131
|
"packageDependencies": [\
|
|
132
|
-
["@esbuild/linux-ia32", "npm:0.28.
|
|
132
|
+
["@esbuild/linux-ia32", "npm:0.28.2"]\
|
|
133
133
|
],\
|
|
134
134
|
"linkType": "HARD"\
|
|
135
135
|
}]\
|
|
136
136
|
]],\
|
|
137
137
|
["@esbuild/linux-loong64", [\
|
|
138
|
-
["npm:0.28.
|
|
139
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-loong64-npm-0.28.
|
|
138
|
+
["npm:0.28.2", {\
|
|
139
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-loong64-npm-0.28.2-84fb72e9e6/node_modules/@esbuild/linux-loong64/",\
|
|
140
140
|
"packageDependencies": [\
|
|
141
|
-
["@esbuild/linux-loong64", "npm:0.28.
|
|
141
|
+
["@esbuild/linux-loong64", "npm:0.28.2"]\
|
|
142
142
|
],\
|
|
143
143
|
"linkType": "HARD"\
|
|
144
144
|
}]\
|
|
145
145
|
]],\
|
|
146
146
|
["@esbuild/linux-mips64el", [\
|
|
147
|
-
["npm:0.28.
|
|
148
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-mips64el-npm-0.28.
|
|
147
|
+
["npm:0.28.2", {\
|
|
148
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-mips64el-npm-0.28.2-8430687e1f/node_modules/@esbuild/linux-mips64el/",\
|
|
149
149
|
"packageDependencies": [\
|
|
150
|
-
["@esbuild/linux-mips64el", "npm:0.28.
|
|
150
|
+
["@esbuild/linux-mips64el", "npm:0.28.2"]\
|
|
151
151
|
],\
|
|
152
152
|
"linkType": "HARD"\
|
|
153
153
|
}]\
|
|
154
154
|
]],\
|
|
155
155
|
["@esbuild/linux-ppc64", [\
|
|
156
|
-
["npm:0.28.
|
|
157
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-ppc64-npm-0.28.
|
|
156
|
+
["npm:0.28.2", {\
|
|
157
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-ppc64-npm-0.28.2-41841dd11e/node_modules/@esbuild/linux-ppc64/",\
|
|
158
158
|
"packageDependencies": [\
|
|
159
|
-
["@esbuild/linux-ppc64", "npm:0.28.
|
|
159
|
+
["@esbuild/linux-ppc64", "npm:0.28.2"]\
|
|
160
160
|
],\
|
|
161
161
|
"linkType": "HARD"\
|
|
162
162
|
}]\
|
|
163
163
|
]],\
|
|
164
164
|
["@esbuild/linux-riscv64", [\
|
|
165
|
-
["npm:0.28.
|
|
166
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-riscv64-npm-0.28.
|
|
165
|
+
["npm:0.28.2", {\
|
|
166
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-riscv64-npm-0.28.2-61230e90cc/node_modules/@esbuild/linux-riscv64/",\
|
|
167
167
|
"packageDependencies": [\
|
|
168
|
-
["@esbuild/linux-riscv64", "npm:0.28.
|
|
168
|
+
["@esbuild/linux-riscv64", "npm:0.28.2"]\
|
|
169
169
|
],\
|
|
170
170
|
"linkType": "HARD"\
|
|
171
171
|
}]\
|
|
172
172
|
]],\
|
|
173
173
|
["@esbuild/linux-s390x", [\
|
|
174
|
-
["npm:0.28.
|
|
175
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-s390x-npm-0.28.
|
|
174
|
+
["npm:0.28.2", {\
|
|
175
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-s390x-npm-0.28.2-95708d88bf/node_modules/@esbuild/linux-s390x/",\
|
|
176
176
|
"packageDependencies": [\
|
|
177
|
-
["@esbuild/linux-s390x", "npm:0.28.
|
|
177
|
+
["@esbuild/linux-s390x", "npm:0.28.2"]\
|
|
178
178
|
],\
|
|
179
179
|
"linkType": "HARD"\
|
|
180
180
|
}]\
|
|
181
181
|
]],\
|
|
182
182
|
["@esbuild/linux-x64", [\
|
|
183
|
-
["npm:0.28.
|
|
184
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-linux-x64-npm-0.28.
|
|
183
|
+
["npm:0.28.2", {\
|
|
184
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-linux-x64-npm-0.28.2-74b0dea1a6/node_modules/@esbuild/linux-x64/",\
|
|
185
185
|
"packageDependencies": [\
|
|
186
|
-
["@esbuild/linux-x64", "npm:0.28.
|
|
186
|
+
["@esbuild/linux-x64", "npm:0.28.2"]\
|
|
187
187
|
],\
|
|
188
188
|
"linkType": "HARD"\
|
|
189
189
|
}]\
|
|
190
190
|
]],\
|
|
191
191
|
["@esbuild/netbsd-arm64", [\
|
|
192
|
-
["npm:0.28.
|
|
193
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-netbsd-arm64-npm-0.28.
|
|
192
|
+
["npm:0.28.2", {\
|
|
193
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-netbsd-arm64-npm-0.28.2-9c4ed982e1/node_modules/@esbuild/netbsd-arm64/",\
|
|
194
194
|
"packageDependencies": [\
|
|
195
|
-
["@esbuild/netbsd-arm64", "npm:0.28.
|
|
195
|
+
["@esbuild/netbsd-arm64", "npm:0.28.2"]\
|
|
196
196
|
],\
|
|
197
197
|
"linkType": "HARD"\
|
|
198
198
|
}]\
|
|
199
199
|
]],\
|
|
200
200
|
["@esbuild/netbsd-x64", [\
|
|
201
|
-
["npm:0.28.
|
|
202
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-netbsd-x64-npm-0.28.
|
|
201
|
+
["npm:0.28.2", {\
|
|
202
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-netbsd-x64-npm-0.28.2-7efffa3f04/node_modules/@esbuild/netbsd-x64/",\
|
|
203
203
|
"packageDependencies": [\
|
|
204
|
-
["@esbuild/netbsd-x64", "npm:0.28.
|
|
204
|
+
["@esbuild/netbsd-x64", "npm:0.28.2"]\
|
|
205
205
|
],\
|
|
206
206
|
"linkType": "HARD"\
|
|
207
207
|
}]\
|
|
208
208
|
]],\
|
|
209
209
|
["@esbuild/openbsd-arm64", [\
|
|
210
|
-
["npm:0.28.
|
|
211
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-openbsd-arm64-npm-0.28.
|
|
210
|
+
["npm:0.28.2", {\
|
|
211
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-openbsd-arm64-npm-0.28.2-34434ea101/node_modules/@esbuild/openbsd-arm64/",\
|
|
212
212
|
"packageDependencies": [\
|
|
213
|
-
["@esbuild/openbsd-arm64", "npm:0.28.
|
|
213
|
+
["@esbuild/openbsd-arm64", "npm:0.28.2"]\
|
|
214
214
|
],\
|
|
215
215
|
"linkType": "HARD"\
|
|
216
216
|
}]\
|
|
217
217
|
]],\
|
|
218
218
|
["@esbuild/openbsd-x64", [\
|
|
219
|
-
["npm:0.28.
|
|
220
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-openbsd-x64-npm-0.28.
|
|
219
|
+
["npm:0.28.2", {\
|
|
220
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-openbsd-x64-npm-0.28.2-0fce55744b/node_modules/@esbuild/openbsd-x64/",\
|
|
221
221
|
"packageDependencies": [\
|
|
222
|
-
["@esbuild/openbsd-x64", "npm:0.28.
|
|
222
|
+
["@esbuild/openbsd-x64", "npm:0.28.2"]\
|
|
223
223
|
],\
|
|
224
224
|
"linkType": "HARD"\
|
|
225
225
|
}]\
|
|
226
226
|
]],\
|
|
227
227
|
["@esbuild/openharmony-arm64", [\
|
|
228
|
-
["npm:0.28.
|
|
229
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-openharmony-arm64-npm-0.28.
|
|
228
|
+
["npm:0.28.2", {\
|
|
229
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-openharmony-arm64-npm-0.28.2-5c41323745/node_modules/@esbuild/openharmony-arm64/",\
|
|
230
230
|
"packageDependencies": [\
|
|
231
|
-
["@esbuild/openharmony-arm64", "npm:0.28.
|
|
231
|
+
["@esbuild/openharmony-arm64", "npm:0.28.2"]\
|
|
232
232
|
],\
|
|
233
233
|
"linkType": "HARD"\
|
|
234
234
|
}]\
|
|
235
235
|
]],\
|
|
236
236
|
["@esbuild/sunos-x64", [\
|
|
237
|
-
["npm:0.28.
|
|
238
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-sunos-x64-npm-0.28.
|
|
237
|
+
["npm:0.28.2", {\
|
|
238
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-sunos-x64-npm-0.28.2-18fc22ad25/node_modules/@esbuild/sunos-x64/",\
|
|
239
239
|
"packageDependencies": [\
|
|
240
|
-
["@esbuild/sunos-x64", "npm:0.28.
|
|
240
|
+
["@esbuild/sunos-x64", "npm:0.28.2"]\
|
|
241
241
|
],\
|
|
242
242
|
"linkType": "HARD"\
|
|
243
243
|
}]\
|
|
244
244
|
]],\
|
|
245
245
|
["@esbuild/win32-arm64", [\
|
|
246
|
-
["npm:0.28.
|
|
247
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-win32-arm64-npm-0.28.
|
|
246
|
+
["npm:0.28.2", {\
|
|
247
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-win32-arm64-npm-0.28.2-c03b5983e9/node_modules/@esbuild/win32-arm64/",\
|
|
248
248
|
"packageDependencies": [\
|
|
249
|
-
["@esbuild/win32-arm64", "npm:0.28.
|
|
249
|
+
["@esbuild/win32-arm64", "npm:0.28.2"]\
|
|
250
250
|
],\
|
|
251
251
|
"linkType": "HARD"\
|
|
252
252
|
}]\
|
|
253
253
|
]],\
|
|
254
254
|
["@esbuild/win32-ia32", [\
|
|
255
|
-
["npm:0.28.
|
|
256
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-win32-ia32-npm-0.28.
|
|
255
|
+
["npm:0.28.2", {\
|
|
256
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-win32-ia32-npm-0.28.2-f9c2152c7c/node_modules/@esbuild/win32-ia32/",\
|
|
257
257
|
"packageDependencies": [\
|
|
258
|
-
["@esbuild/win32-ia32", "npm:0.28.
|
|
258
|
+
["@esbuild/win32-ia32", "npm:0.28.2"]\
|
|
259
259
|
],\
|
|
260
260
|
"linkType": "HARD"\
|
|
261
261
|
}]\
|
|
262
262
|
]],\
|
|
263
263
|
["@esbuild/win32-x64", [\
|
|
264
|
-
["npm:0.28.
|
|
265
|
-
"packageLocation": "./.yarn/unplugged/@esbuild-win32-x64-npm-0.28.
|
|
264
|
+
["npm:0.28.2", {\
|
|
265
|
+
"packageLocation": "./.yarn/unplugged/@esbuild-win32-x64-npm-0.28.2-bccc098393/node_modules/@esbuild/win32-x64/",\
|
|
266
266
|
"packageDependencies": [\
|
|
267
|
-
["@esbuild/win32-x64", "npm:0.28.
|
|
267
|
+
["@esbuild/win32-x64", "npm:0.28.2"]\
|
|
268
268
|
],\
|
|
269
269
|
"linkType": "HARD"\
|
|
270
270
|
}]\
|
|
271
271
|
]],\
|
|
272
272
|
["esbuild", [\
|
|
273
|
-
["npm:0.28.
|
|
274
|
-
"packageLocation": "./.yarn/cache/esbuild-npm-0.28.
|
|
273
|
+
["npm:0.28.2", {\
|
|
274
|
+
"packageLocation": "./.yarn/cache/esbuild-npm-0.28.2-cf50b560fa-9b19edb63b.zip/node_modules/esbuild/",\
|
|
275
275
|
"packageDependencies": [\
|
|
276
|
-
["@esbuild/aix-ppc64", "npm:0.28.
|
|
277
|
-
["@esbuild/android-arm", "npm:0.28.
|
|
278
|
-
["@esbuild/android-arm64", "npm:0.28.
|
|
279
|
-
["@esbuild/android-x64", "npm:0.28.
|
|
280
|
-
["@esbuild/darwin-arm64", "npm:0.28.
|
|
281
|
-
["@esbuild/darwin-x64", "npm:0.28.
|
|
282
|
-
["@esbuild/freebsd-arm64", "npm:0.28.
|
|
283
|
-
["@esbuild/freebsd-x64", "npm:0.28.
|
|
284
|
-
["@esbuild/linux-arm", "npm:0.28.
|
|
285
|
-
["@esbuild/linux-arm64", "npm:0.28.
|
|
286
|
-
["@esbuild/linux-ia32", "npm:0.28.
|
|
287
|
-
["@esbuild/linux-loong64", "npm:0.28.
|
|
288
|
-
["@esbuild/linux-mips64el", "npm:0.28.
|
|
289
|
-
["@esbuild/linux-ppc64", "npm:0.28.
|
|
290
|
-
["@esbuild/linux-riscv64", "npm:0.28.
|
|
291
|
-
["@esbuild/linux-s390x", "npm:0.28.
|
|
292
|
-
["@esbuild/linux-x64", "npm:0.28.
|
|
293
|
-
["@esbuild/netbsd-arm64", "npm:0.28.
|
|
294
|
-
["@esbuild/netbsd-x64", "npm:0.28.
|
|
295
|
-
["@esbuild/openbsd-arm64", "npm:0.28.
|
|
296
|
-
["@esbuild/openbsd-x64", "npm:0.28.
|
|
297
|
-
["@esbuild/openharmony-arm64", "npm:0.28.
|
|
298
|
-
["@esbuild/sunos-x64", "npm:0.28.
|
|
299
|
-
["@esbuild/win32-arm64", "npm:0.28.
|
|
300
|
-
["@esbuild/win32-ia32", "npm:0.28.
|
|
301
|
-
["@esbuild/win32-x64", "npm:0.28.
|
|
302
|
-
["esbuild", "npm:0.28.
|
|
276
|
+
["@esbuild/aix-ppc64", "npm:0.28.2"],\
|
|
277
|
+
["@esbuild/android-arm", "npm:0.28.2"],\
|
|
278
|
+
["@esbuild/android-arm64", "npm:0.28.2"],\
|
|
279
|
+
["@esbuild/android-x64", "npm:0.28.2"],\
|
|
280
|
+
["@esbuild/darwin-arm64", "npm:0.28.2"],\
|
|
281
|
+
["@esbuild/darwin-x64", "npm:0.28.2"],\
|
|
282
|
+
["@esbuild/freebsd-arm64", "npm:0.28.2"],\
|
|
283
|
+
["@esbuild/freebsd-x64", "npm:0.28.2"],\
|
|
284
|
+
["@esbuild/linux-arm", "npm:0.28.2"],\
|
|
285
|
+
["@esbuild/linux-arm64", "npm:0.28.2"],\
|
|
286
|
+
["@esbuild/linux-ia32", "npm:0.28.2"],\
|
|
287
|
+
["@esbuild/linux-loong64", "npm:0.28.2"],\
|
|
288
|
+
["@esbuild/linux-mips64el", "npm:0.28.2"],\
|
|
289
|
+
["@esbuild/linux-ppc64", "npm:0.28.2"],\
|
|
290
|
+
["@esbuild/linux-riscv64", "npm:0.28.2"],\
|
|
291
|
+
["@esbuild/linux-s390x", "npm:0.28.2"],\
|
|
292
|
+
["@esbuild/linux-x64", "npm:0.28.2"],\
|
|
293
|
+
["@esbuild/netbsd-arm64", "npm:0.28.2"],\
|
|
294
|
+
["@esbuild/netbsd-x64", "npm:0.28.2"],\
|
|
295
|
+
["@esbuild/openbsd-arm64", "npm:0.28.2"],\
|
|
296
|
+
["@esbuild/openbsd-x64", "npm:0.28.2"],\
|
|
297
|
+
["@esbuild/openharmony-arm64", "npm:0.28.2"],\
|
|
298
|
+
["@esbuild/sunos-x64", "npm:0.28.2"],\
|
|
299
|
+
["@esbuild/win32-arm64", "npm:0.28.2"],\
|
|
300
|
+
["@esbuild/win32-ia32", "npm:0.28.2"],\
|
|
301
|
+
["@esbuild/win32-x64", "npm:0.28.2"],\
|
|
302
|
+
["esbuild", "npm:0.28.2"]\
|
|
303
303
|
],\
|
|
304
304
|
"linkType": "HARD"\
|
|
305
305
|
}]\
|
|
@@ -308,7 +308,7 @@ const RAW_RUNTIME_STATE =
|
|
|
308
308
|
["workspace:.", {\
|
|
309
309
|
"packageLocation": "./",\
|
|
310
310
|
"packageDependencies": [\
|
|
311
|
-
["esbuild", "npm:0.28.
|
|
311
|
+
["esbuild", "npm:0.28.2"],\
|
|
312
312
|
["grape-swagger-rails", "workspace:."],\
|
|
313
313
|
["typescript", "patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"]\
|
|
314
314
|
],\
|
|
@@ -6029,7 +6029,7 @@ function getPathForDisplay(p) {
|
|
|
6029
6029
|
return npath.normalize(npath.fromPortablePath(p));
|
|
6030
6030
|
}
|
|
6031
6031
|
|
|
6032
|
-
const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
|
|
6032
|
+
const [major, minor, patch] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
|
|
6033
6033
|
const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13;
|
|
6034
6034
|
|
|
6035
6035
|
function readPackageScope(checkPath) {
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
* Your contribution here.
|
|
4
4
|
|
|
5
|
+
### 2.0.3 (2026/11/18)
|
|
6
|
+
|
|
7
|
+
* [#188](https://github.com/ruby-grape/grape-swagger-rails/pull/188): Bump Swagger UI to 5.35.0 - [@github-actions[bot]](https://github.com/apps/github-actions).
|
|
8
|
+
* [#187](https://github.com/ruby-grape/grape-swagger-rails/pull/187): Fix `Incompatible units` errors when a Sprockets app compresses Swagger UI CSS with sassc - [@moskvin](https://github.com/moskvin).
|
|
9
|
+
* [#189](https://github.com/ruby-grape/grape-swagger-rails/pull/189): Test SassC compression of the bundled Swagger UI stylesheet instead of CSS function spelling - [@dblock](https://github.com/dblock).
|
|
10
|
+
* [#190](https://github.com/ruby-grape/grape-swagger-rails/pull/190): Modernize CI with current runtimes and actions, headless browser tests, and workflow linting - [@dblock](https://github.com/dblock).
|
|
11
|
+
|
|
12
|
+
### 2.0.2 (2026/11/03)
|
|
13
|
+
|
|
14
|
+
* [#183](https://github.com/ruby-grape/grape-swagger-rails/pull/183): Upgrade danger-changelog to 0.9.0 and preserve bot author attribution without the workaround from #182 - [@dblock](https://github.com/dblock).
|
|
15
|
+
* [#184](https://github.com/ruby-grape/grape-swagger-rails/pull/184): Bump Swagger UI to 5.34.0 - [@github-actions[bot]](https://github.com/apps/github-actions).
|
|
16
|
+
* [#185](https://github.com/ruby-grape/grape-swagger-rails/pull/185): Update RuboCop and its plugins, esbuild, and Yarn - [@moskvin](https://github.com/moskvin).
|
|
17
|
+
* [#186](https://github.com/ruby-grape/grape-swagger-rails/pull/186): Bump Swagger UI to 5.34.1 - [@github-actions[bot]](https://github.com/apps/github-actions).
|
|
18
|
+
|
|
5
19
|
### 2.0.1 (2026/10/13)
|
|
6
20
|
|
|
7
21
|
* [#180](https://github.com/ruby-grape/grape-swagger-rails/pull/180): Bump Swagger UI to 5.33.1 - [@moskvin](https://github.com/moskvin).
|
data/CLAUDE.md
CHANGED
|
@@ -9,10 +9,12 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|
|
9
9
|
## Commands
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
bundle exec rake # Run
|
|
12
|
+
bundle exec rake # Run lint + RSpec (default)
|
|
13
|
+
bundle exec rake lint # Ruby and workflow checks
|
|
13
14
|
bundle exec rake spec # Run all RSpec tests only
|
|
14
15
|
bundle exec rake rubocop # Run RuboCop linting only
|
|
15
16
|
bundle exec rspec spec/features/swagger_spec.rb # Run a single spec file
|
|
17
|
+
HEADLESS=true bundle exec rake spec # Run browser specs headlessly
|
|
16
18
|
|
|
17
19
|
yarn build:frontend # tsc → index.js, then esbuild → index.min.js (+ .map)
|
|
18
20
|
yarn build:frontend:js # Just tsc (readable bundle)
|
|
@@ -23,7 +25,11 @@ bundle exec rake swagger_ui:dist:update # Update bundled Swagger UI ass
|
|
|
23
25
|
SWAGGER_UI_VERSION=v5.32.5 bundle exec rake swagger_ui:dist:update # Pin to a version
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
Tests use Capybara + Selenium with Firefox. Firefox
|
|
28
|
+
Tests use Capybara + Selenium with Firefox. Install Firefox locally; Selenium Manager resolves geckodriver automatically. Set `HEADLESS=true` to run without a display, as CI does; Xvfb is not needed. Tests launch a real browser to validate UI behavior.
|
|
29
|
+
|
|
30
|
+
Use Node.js 26 LTS and the Corepack/Yarn versions documented in CONTRIBUTING. Install dependencies with `yarn install --immutable` and install actionlint before `bundle exec rake lint`.
|
|
31
|
+
|
|
32
|
+
Danger is checked in PR CI rather than as a routine local command.
|
|
27
33
|
|
|
28
34
|
**After editing TypeScript**, run `yarn build:frontend` before running specs — the specs exercise `app/assets/javascripts/grape_swagger_rails/index.js`, which is the compiled output. Never edit the compiled JS directly. The build also emits `index.min.js` (+ sourcemap); the view picks the minified bundle in production (`Rails.env.production?`) via `grape_swagger_rails_runtime_asset` and the readable one everywhere else.
|
|
29
35
|
|
|
@@ -55,7 +61,7 @@ The gem has minimal moving parts:
|
|
|
55
61
|
|
|
56
62
|
## Testing Structure
|
|
57
63
|
|
|
58
|
-
```
|
|
64
|
+
```text
|
|
59
65
|
spec/
|
|
60
66
|
features/
|
|
61
67
|
swagger_spec.rb # Main integration tests (auth types, theme, headers)
|
|
@@ -73,7 +79,6 @@ Config in `.rubocop.yml` targets Ruby 3.4. Plugins: rubocop-capybara, rubocop-rs
|
|
|
73
79
|
|
|
74
80
|
## Compatibility Matrix
|
|
75
81
|
|
|
76
|
-
- Rails 8.1.4–8.1.x × Ruby 3.2
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
- Both Sprockets and Propshaft asset pipelines are tested in CI
|
|
82
|
+
- Rails 8.1.4–8.1.x × Ruby 3.2/3.3/3.4/4.0 × JSON 2/3 × grape-swagger 2.1.4 (grape ~> 3.1), using explicit `matrix.entry` combinations.
|
|
83
|
+
- Both Sprockets and Propshaft are tested on Linux and macOS with headless Firefox.
|
|
84
|
+
- Keep consumer requirements separate from current development/lint runtimes. Ruby 3.2 is still tested despite being end-of-life.
|
data/CONTRIBUTING.md
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
# Contributing to Grape-Swagger-Rails
|
|
2
2
|
|
|
3
|
-
This project is work of [many contributors](https://github.com/ruby-grape/grape-swagger-rails/graphs/contributors).
|
|
4
|
-
You're encouraged to submit [pull requests](https://github.com/ruby-grape/grape-swagger-rails/pulls),
|
|
5
|
-
[propose features and discuss issues](https://github.com/ruby-grape/grape-swagger-rails/issues).
|
|
3
|
+
This project is work of [many contributors](https://github.com/ruby-grape/grape-swagger-rails/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/ruby-grape/grape-swagger-rails/pulls), [propose features and discuss issues](https://github.com/ruby-grape/grape-swagger-rails/issues).
|
|
6
4
|
|
|
7
|
-
In the examples below, substitute your
|
|
5
|
+
In the examples below, substitute your GitHub username for `contributor` in URLs.
|
|
8
6
|
|
|
9
7
|
## Fork the Project
|
|
10
8
|
|
|
11
|
-
Fork the [project on
|
|
9
|
+
Fork the [project on GitHub](https://github.com/ruby-grape/grape-swagger-rails) and check out your copy.
|
|
12
10
|
|
|
13
|
-
```
|
|
11
|
+
```sh
|
|
14
12
|
git clone https://github.com/contributor/grape-swagger-rails.git
|
|
15
13
|
cd grape-swagger-rails
|
|
16
14
|
git remote add upstream https://github.com/ruby-grape/grape-swagger-rails.git
|
|
@@ -20,7 +18,7 @@ git remote add upstream https://github.com/ruby-grape/grape-swagger-rails.git
|
|
|
20
18
|
|
|
21
19
|
Make sure your fork is up-to-date and create a topic branch for your feature or bug fix.
|
|
22
20
|
|
|
23
|
-
```
|
|
21
|
+
```sh
|
|
24
22
|
git checkout master
|
|
25
23
|
git pull upstream master
|
|
26
24
|
git checkout -b my-feature-branch
|
|
@@ -28,13 +26,26 @@ git checkout -b my-feature-branch
|
|
|
28
26
|
|
|
29
27
|
## Bundle Install and Test
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
Use Ruby 3.2 or newer and Node.js 26 LTS for development. Install [actionlint](https://github.com/rhysd/actionlint#installation) for workflow checks and Firefox for browser tests. Selenium Manager resolves the matching geckodriver automatically.
|
|
32
30
|
|
|
33
|
-
```
|
|
31
|
+
```sh
|
|
34
32
|
bundle install
|
|
33
|
+
npm install --global corepack@0.36.0
|
|
34
|
+
corepack enable
|
|
35
|
+
yarn install --immutable
|
|
35
36
|
bundle exec rake
|
|
36
37
|
```
|
|
37
38
|
|
|
39
|
+
The default Rake task runs Ruby and workflow lint before the RSpec suite. `bundle exec rake lint` runs just these checks.
|
|
40
|
+
|
|
41
|
+
Run browser tests without a display with `HEADLESS=true bundle exec rake spec`. Set `ASSET_PIPELINE=propshaft` to exercise Propshaft instead of the default Sprockets pipeline. CI tests both pipelines on Ruby 3.2, 3.3, 3.4, and 4.0, with JSON 2/3 and Linux/macOS coverage. Ruby 3.2 remains the consumer compatibility floor even though it is end-of-life; lint and build jobs use current stable runtimes.
|
|
42
|
+
|
|
43
|
+
### CI Workflows
|
|
44
|
+
|
|
45
|
+
`Test` and `Lint` run independently on pull requests and pushes to `master`. `Lint` also type-checks and rebuilds the frontend, then rejects uncommitted changes to generated assets. Dependency caches are keyed by the relevant lockfile and platform.
|
|
46
|
+
|
|
47
|
+
Danger runs in PR CI, not as routine local validation. Its read-only report job remains separate from the privileged comment workflow; the latter does not check out or execute PR code. The existing changelog automation only writes branches in the main repository.
|
|
48
|
+
|
|
38
49
|
## Write Tests
|
|
39
50
|
|
|
40
51
|
Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build.
|
|
@@ -53,7 +64,7 @@ Make sure that `bundle exec rake` completes without errors.
|
|
|
53
64
|
|
|
54
65
|
You might find it useful to iterate on code by running the test project from spec/dummy.
|
|
55
66
|
|
|
56
|
-
```
|
|
67
|
+
```text
|
|
57
68
|
spec/dummy$ GRAPE_SWAGGER_VERSION=HEAD bundle install
|
|
58
69
|
|
|
59
70
|
Updating git://github.com/ruby-grape/grape-swagger.git
|
|
@@ -70,7 +81,7 @@ spec/dummy$ GRAPE_SWAGGER_VERSION=HEAD rails s
|
|
|
70
81
|
...
|
|
71
82
|
```
|
|
72
83
|
|
|
73
|
-
Navigate to http://localhost:3000/swagger
|
|
84
|
+
Navigate to <http://localhost:3000/swagger>.
|
|
74
85
|
|
|
75
86
|
## Write Documentation
|
|
76
87
|
|
|
@@ -83,33 +94,35 @@ Make it look like every other line, including your name and link to your Github
|
|
|
83
94
|
|
|
84
95
|
## Push
|
|
85
96
|
|
|
86
|
-
```
|
|
97
|
+
```sh
|
|
87
98
|
git push origin my-feature-branch
|
|
88
99
|
```
|
|
89
100
|
|
|
90
101
|
## Make a Pull Request
|
|
91
102
|
|
|
92
|
-
Go to https://github.com/contributor/grape-swagger-rails and select your feature branch.
|
|
103
|
+
Go to <https://github.com/contributor/grape-swagger-rails> and select your feature branch.
|
|
93
104
|
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
|
|
94
105
|
|
|
95
106
|
## Update CHANGELOG Again
|
|
96
107
|
|
|
97
108
|
Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
|
|
98
109
|
|
|
99
|
-
```
|
|
110
|
+
```markdown
|
|
100
111
|
* [#123](https://github.com/ruby-grape/grape-swagger-rails/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
|
|
101
112
|
```
|
|
102
113
|
|
|
103
114
|
Amend your previous commit and force push the changes.
|
|
104
115
|
|
|
105
|
-
```
|
|
116
|
+
```sh
|
|
106
117
|
git commit --amend
|
|
107
118
|
git push origin my-feature-branch -f
|
|
119
|
+
```
|
|
120
|
+
|
|
108
121
|
## Rebase
|
|
109
122
|
|
|
110
123
|
If you've been working on a change for a while, rebase with upstream/master.
|
|
111
124
|
|
|
112
|
-
```
|
|
125
|
+
```sh
|
|
113
126
|
git fetch upstream
|
|
114
127
|
git rebase upstream/master
|
|
115
128
|
git push origin my-feature-branch -f
|
|
@@ -117,21 +130,17 @@ git push origin my-feature-branch -f
|
|
|
117
130
|
|
|
118
131
|
## Check on Your Pull Request
|
|
119
132
|
|
|
120
|
-
|
|
133
|
+
Check the `Test`, `Lint`, and Danger results on the pull request. Everything should look green; otherwise fix issues and update the PR.
|
|
121
134
|
|
|
122
135
|
## Be Patient
|
|
123
136
|
|
|
124
|
-
|
|
137
|
+
Maintainers may ask for changes before merging, including fixes for seemingly minor problems. Hang on there!
|
|
125
138
|
|
|
126
139
|
## Preparing a Release
|
|
127
140
|
|
|
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.
|
|
141
|
+
Run `bin/bump 1.0.11` with the desired new version. This updates the gem version and moves all entries under `Next Release` into a new section dated today, leaving `Your contribution here.` under `Next Release`. It refuses empty releases and versions that are not newer than the current version.
|
|
132
142
|
|
|
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.
|
|
143
|
+
Review the diff, commit it, and follow the usual gem release process. The script does not commit, tag, push, or publish the gem.
|
|
135
144
|
|
|
136
145
|
## Thank You
|
|
137
146
|
|