omniauth-jwt2 0.1.0 → 1.0.0

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +81 -0
  4. data/CITATION.cff +20 -0
  5. data/CODE_OF_CONDUCT.md +134 -0
  6. data/CONTRIBUTING.md +272 -0
  7. data/FUNDING.md +74 -0
  8. data/LICENSE.md +16 -0
  9. data/README.md +499 -58
  10. data/RUBOCOP.md +71 -0
  11. data/SECURITY.md +21 -0
  12. data/certs/pboling.pem +27 -0
  13. data/lib/omniauth/jwt/version.rb +6 -3
  14. data/lib/omniauth/jwt.rb +2 -1
  15. data/lib/omniauth/jwt2/version.rb +10 -0
  16. data/lib/omniauth/jwt2.rb +10 -0
  17. data/lib/omniauth/strategies/jwt.rb +31 -9
  18. data/lib/omniauth-jwt2.rb +3 -0
  19. data/sig/omniauth/jwt/version.rbs +8 -0
  20. data/sig/omniauth/jwt2/version.rbs +8 -0
  21. data.tar.gz.sig +1 -0
  22. metadata +269 -61
  23. metadata.gz.sig +0 -0
  24. data/.github/FUNDING.yml +0 -11
  25. data/.github/dependabot.yml +0 -2
  26. data/.github/workflows/ancient.yml +0 -53
  27. data/.github/workflows/ci.yml +0 -59
  28. data/.github/workflows/coverage.yml +0 -91
  29. data/.github/workflows/legacy.yml +0 -54
  30. data/.github/workflows/style.yml +0 -43
  31. data/.gitignore +0 -18
  32. data/.rspec +0 -2
  33. data/.rubocop.yml +0 -2
  34. data/.rubocop_gradual.lock +0 -39
  35. data/.simplecov +0 -2
  36. data/.tool-versions +0 -1
  37. data/Gemfile +0 -17
  38. data/Guardfile +0 -8
  39. data/LICENSE.txt +0 -23
  40. data/Rakefile +0 -23
  41. data/gemfiles/ancient.gemfile +0 -20
  42. data/gemfiles/contexts/coverage.gemfile +0 -2
  43. data/gemfiles/contexts/debug.gemfile +0 -6
  44. data/gemfiles/contexts/style.gemfile +0 -5
  45. data/gemfiles/contexts/testing.gemfile +0 -8
  46. data/gemfiles/coverage.gemfile +0 -20
  47. data/gemfiles/legacy.gemfile +0 -26
  48. data/gemfiles/style.gemfile +0 -20
  49. data/gemfiles/vanilla.gemfile +0 -20
  50. data/omniauth-jwt2.gemspec +0 -41
  51. data/spec/lib/omniauth/strategies/jwt_spec.rb +0 -213
  52. data/spec/spec_helper.rb +0 -64
  53. data/spec/support/hash.rb +0 -9
  54. data/spec/support/next_instance_of.rb +0 -43
metadata CHANGED
@@ -1,16 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-jwt2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
8
+ - Chris Waters
8
9
  - Robin Ward
9
- - Peter Boling
10
- autorequire:
11
- bindir: bin
12
- cert_chain: []
13
- date: 2023-12-07 00:00:00.000000000 Z
10
+ - Zach Schneider
11
+ - Marcin Koziej
12
+ - Nicolás Hock Isaza
13
+ - Peter H. Boling
14
+ bindir: exe
15
+ cert_chain:
16
+ - |
17
+ -----BEGIN CERTIFICATE-----
18
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
19
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
20
+ A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
21
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
22
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
23
+ uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
24
+ LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
25
+ mZuZ5+Z7walmv6sFD9ajhzj+oIgwWfnEHkXYTR8I6VLN7MRRKGMPoZ/yvOmxb2DN
26
+ coEEHWKO9CvgYpW7asIihl/9GMpKiRkcYPm9dGQzZc6uTwom1COfW0+ZOFrDVBuV
27
+ FMQRPswZcY4Wlq0uEBLPU7hxnCL9nKK6Y9IhdDcz1mY6HZ91WImNslOSI0S8hRpj
28
+ yGOWxQIhBT3fqCBlRIqFQBudrnD9jSNpSGsFvbEijd5ns7Z9ZMehXkXDycpGAUj1
29
+ to/5cuTWWw1JqUWrKJYoifnVhtE1o1DZ+LkPtWxHtz5kjDG/zR3MG0Ula0UOavlD
30
+ qbnbcXPBnwXtTFeZ3C+yrWpE4pGnl3yGkZj9SMTlo9qnTMiPmuWKQDatAgMBAAGj
31
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQE8uWvNbPVNRXZ
32
+ HlgPbc2PCzC4bjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
33
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
34
+ ggGBAJbnUwfJQFPkBgH9cL7hoBfRtmWiCvdqdjeTmi04u8zVNCUox0A4gT982DE9
35
+ wmuN12LpdajxZONqbXuzZvc+nb0StFwmFYZG6iDwaf4BPywm2e/Vmq0YG45vZXGR
36
+ L8yMDSK1cQXjmA+ZBKOHKWavxP6Vp7lWvjAhz8RFwqF9GuNIdhv9NpnCAWcMZtpm
37
+ GUPyIWw/Cw/2wZp74QzZj6Npx+LdXoLTF1HMSJXZ7/pkxLCsB8m4EFVdb/IrW/0k
38
+ kNSfjtAfBHO8nLGuqQZVH9IBD1i9K6aSs7pT6TW8itXUIlkIUI2tg5YzW6OFfPzq
39
+ QekSkX3lZfY+HTSp/o+YvKkqWLUV7PQ7xh1ZYDtocpaHwgxe/j3bBqHE+CUPH2vA
40
+ 0V/FwdTRWcwsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
41
+ DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
42
+ L9nRqA==
43
+ -----END CERTIFICATE-----
44
+ date: 1980-01-02 00:00:00.000000000 Z
14
45
  dependencies:
15
46
  - !ruby/object:Gem::Dependency
16
47
  name: jwt
@@ -55,7 +86,7 @@ dependencies:
55
86
  version: '1.1'
56
87
  - - ">="
57
88
  - !ruby/object:Gem::Version
58
- version: 1.1.3
89
+ version: 1.1.12
59
90
  type: :runtime
60
91
  prerelease: false
61
92
  version_requirements: !ruby/object:Gem::Requirement
@@ -65,7 +96,41 @@ dependencies:
65
96
  version: '1.1'
66
97
  - - ">="
67
98
  - !ruby/object:Gem::Version
68
- version: 1.1.3
99
+ version: 1.1.12
100
+ - !ruby/object:Gem::Dependency
101
+ name: kettle-dev
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: '2.2'
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: 2.2.11
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '2.2'
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: 2.2.11
120
+ - !ruby/object:Gem::Dependency
121
+ name: bundler-audit
122
+ requirement: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: 0.9.3
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: 0.9.3
69
134
  - !ruby/object:Gem::Dependency
70
135
  name: rake
71
136
  requirement: !ruby/object:Gem::Requirement
@@ -81,45 +146,181 @@ dependencies:
81
146
  - !ruby/object:Gem::Version
82
147
  version: '13.0'
83
148
  - !ruby/object:Gem::Dependency
84
- name: guard
149
+ name: require_bench
85
150
  requirement: !ruby/object:Gem::Requirement
86
151
  requirements:
87
152
  - - "~>"
88
153
  - !ruby/object:Gem::Version
89
- version: '2.18'
154
+ version: '1.0'
90
155
  - - ">="
91
156
  - !ruby/object:Gem::Version
92
- version: 2.18.1
157
+ version: 1.0.4
93
158
  type: :development
94
159
  prerelease: false
95
160
  version_requirements: !ruby/object:Gem::Requirement
96
161
  requirements:
97
162
  - - "~>"
98
163
  - !ruby/object:Gem::Version
99
- version: '2.18'
164
+ version: '1.0'
100
165
  - - ">="
101
166
  - !ruby/object:Gem::Version
102
- version: 2.18.1
167
+ version: 1.0.4
103
168
  - !ruby/object:Gem::Dependency
104
- name: guard-rspec
169
+ name: appraisal2
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '3.1'
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: 3.1.2
178
+ type: :development
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - "~>"
183
+ - !ruby/object:Gem::Version
184
+ version: '3.1'
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: 3.1.2
188
+ - !ruby/object:Gem::Dependency
189
+ name: kettle-test
190
+ requirement: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.0'
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: 2.0.5
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - "~>"
203
+ - !ruby/object:Gem::Version
204
+ version: '2.0'
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: 2.0.5
208
+ - !ruby/object:Gem::Dependency
209
+ name: turbo_tests2
210
+ requirement: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - "~>"
213
+ - !ruby/object:Gem::Version
214
+ version: '3.1'
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: 3.1.4
218
+ type: :development
219
+ prerelease: false
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '3.1'
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: 3.1.4
228
+ - !ruby/object:Gem::Dependency
229
+ name: ruby-progressbar
230
+ requirement: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - "~>"
233
+ - !ruby/object:Gem::Version
234
+ version: '1.13'
235
+ type: :development
236
+ prerelease: false
237
+ version_requirements: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - "~>"
240
+ - !ruby/object:Gem::Version
241
+ version: '1.13'
242
+ - !ruby/object:Gem::Dependency
243
+ name: stone_checksums
105
244
  requirement: !ruby/object:Gem::Requirement
106
245
  requirements:
107
246
  - - "~>"
108
247
  - !ruby/object:Gem::Version
109
- version: '4.7'
248
+ version: '1.0'
110
249
  - - ">="
111
250
  - !ruby/object:Gem::Version
112
- version: 4.7.3
251
+ version: 1.0.3
113
252
  type: :development
114
253
  prerelease: false
115
254
  version_requirements: !ruby/object:Gem::Requirement
116
255
  requirements:
117
256
  - - "~>"
118
257
  - !ruby/object:Gem::Version
119
- version: '4.7'
258
+ version: '1.0'
120
259
  - - ">="
121
260
  - !ruby/object:Gem::Version
122
- version: 4.7.3
261
+ version: 1.0.3
262
+ - !ruby/object:Gem::Dependency
263
+ name: gitmoji-regex
264
+ requirement: !ruby/object:Gem::Requirement
265
+ requirements:
266
+ - - "~>"
267
+ - !ruby/object:Gem::Version
268
+ version: '2.0'
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: 2.0.2
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - "~>"
277
+ - !ruby/object:Gem::Version
278
+ version: '2.0'
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: 2.0.2
282
+ - !ruby/object:Gem::Dependency
283
+ name: guard
284
+ requirement: !ruby/object:Gem::Requirement
285
+ requirements:
286
+ - - ">="
287
+ - !ruby/object:Gem::Version
288
+ version: '0'
289
+ type: :development
290
+ prerelease: false
291
+ version_requirements: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ version: '0'
296
+ - !ruby/object:Gem::Dependency
297
+ name: guard-rspec
298
+ requirement: !ruby/object:Gem::Requirement
299
+ requirements:
300
+ - - ">="
301
+ - !ruby/object:Gem::Version
302
+ version: '0'
303
+ type: :development
304
+ prerelease: false
305
+ version_requirements: !ruby/object:Gem::Requirement
306
+ requirements:
307
+ - - ">="
308
+ - !ruby/object:Gem::Version
309
+ version: '0'
310
+ - !ruby/object:Gem::Dependency
311
+ name: rack-session
312
+ requirement: !ruby/object:Gem::Requirement
313
+ requirements:
314
+ - - ">="
315
+ - !ruby/object:Gem::Version
316
+ version: '0'
317
+ type: :development
318
+ prerelease: false
319
+ version_requirements: !ruby/object:Gem::Requirement
320
+ requirements:
321
+ - - ">="
322
+ - !ruby/object:Gem::Version
323
+ version: '0'
123
324
  - !ruby/object:Gem::Dependency
124
325
  name: rack-test
125
326
  requirement: !ruby/object:Gem::Requirement
@@ -162,56 +363,64 @@ dependencies:
162
363
  - - "~>"
163
364
  - !ruby/object:Gem::Version
164
365
  version: '0.1'
165
- description: An OmniAuth strategy to accept JWT-based single sign-on.
366
+ description: "\U0001F510 An OmniAuth strategy to accept JWT-based single sign-on."
166
367
  email:
167
- - mbleigh@mbleigh.com
168
- - robin.ward@gmail.com
169
- - peter.boling@gmail.com
368
+ - floss@galtzo.com
170
369
  executables: []
171
370
  extensions: []
172
- extra_rdoc_files: []
371
+ extra_rdoc_files:
372
+ - CHANGELOG.md
373
+ - CITATION.cff
374
+ - CODE_OF_CONDUCT.md
375
+ - CONTRIBUTING.md
376
+ - FUNDING.md
377
+ - LICENSE.md
378
+ - README.md
379
+ - RUBOCOP.md
380
+ - SECURITY.md
173
381
  files:
174
- - ".github/FUNDING.yml"
175
- - ".github/dependabot.yml"
176
- - ".github/workflows/ancient.yml"
177
- - ".github/workflows/ci.yml"
178
- - ".github/workflows/coverage.yml"
179
- - ".github/workflows/legacy.yml"
180
- - ".github/workflows/style.yml"
181
- - ".gitignore"
182
- - ".rspec"
183
- - ".rubocop.yml"
184
- - ".rubocop_gradual.lock"
185
- - ".simplecov"
186
- - ".tool-versions"
187
- - Gemfile
188
- - Guardfile
189
- - LICENSE.txt
382
+ - CHANGELOG.md
383
+ - CITATION.cff
384
+ - CODE_OF_CONDUCT.md
385
+ - CONTRIBUTING.md
386
+ - FUNDING.md
387
+ - LICENSE.md
190
388
  - README.md
191
- - Rakefile
192
- - gemfiles/ancient.gemfile
193
- - gemfiles/contexts/coverage.gemfile
194
- - gemfiles/contexts/debug.gemfile
195
- - gemfiles/contexts/style.gemfile
196
- - gemfiles/contexts/testing.gemfile
197
- - gemfiles/coverage.gemfile
198
- - gemfiles/legacy.gemfile
199
- - gemfiles/style.gemfile
200
- - gemfiles/vanilla.gemfile
389
+ - RUBOCOP.md
390
+ - SECURITY.md
391
+ - certs/pboling.pem
392
+ - lib/omniauth-jwt2.rb
201
393
  - lib/omniauth/jwt.rb
202
394
  - lib/omniauth/jwt/version.rb
395
+ - lib/omniauth/jwt2.rb
396
+ - lib/omniauth/jwt2/version.rb
203
397
  - lib/omniauth/strategies/jwt.rb
204
- - omniauth-jwt2.gemspec
205
- - spec/lib/omniauth/strategies/jwt_spec.rb
206
- - spec/spec_helper.rb
207
- - spec/support/hash.rb
208
- - spec/support/next_instance_of.rb
209
- homepage: http://github.com/pboling/omniauth-jwt2
398
+ - sig/omniauth/jwt/version.rbs
399
+ - sig/omniauth/jwt2/version.rbs
400
+ homepage: https://github.com/omniauth/omniauth-jwt2
210
401
  licenses:
211
402
  - MIT
212
- metadata: {}
213
- post_install_message:
214
- rdoc_options: []
403
+ metadata:
404
+ homepage_uri: https://omniauth-jwt2.galtzo.com
405
+ source_code_uri: https://github.com/omniauth/omniauth-jwt2/tree/v1.0.0
406
+ changelog_uri: https://github.com/omniauth/omniauth-jwt2/blob/v1.0.0/CHANGELOG.md
407
+ bug_tracker_uri: https://github.com/omniauth/omniauth-jwt2/issues
408
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-jwt2/1.0.0
409
+ funding_uri: https://github.com/sponsors/pboling
410
+ wiki_uri: https://github.com/omniauth/omniauth-jwt2/wiki
411
+ news_uri: https://www.railsbling.com/tags/omniauth-jwt2
412
+ discord_uri: https://discord.gg/3qme4XHNKN
413
+ rubygems_mfa_required: 'true'
414
+ rdoc_options:
415
+ - "--title"
416
+ - "omniauth-jwt2 - \U0001F510 An OmniAuth strategy to accept JWT-based single sign-on."
417
+ - "--main"
418
+ - README.md
419
+ - "--exclude"
420
+ - "^sig/"
421
+ - "--line-numbers"
422
+ - "--inline-source"
423
+ - "--quiet"
215
424
  require_paths:
216
425
  - lib
217
426
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -225,8 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
434
  - !ruby/object:Gem::Version
226
435
  version: '0'
227
436
  requirements: []
228
- rubygems_version: 3.4.22
229
- signing_key:
437
+ rubygems_version: 4.0.10
230
438
  specification_version: 4
231
- summary: An OmniAuth strategy to accept JWT-based single sign-on.
439
+ summary: "\U0001F510 An OmniAuth strategy to accept JWT-based single sign-on."
232
440
  test_files: []
metadata.gz.sig ADDED
Binary file
data/.github/FUNDING.yml DELETED
@@ -1,11 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [pboling] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
- patreon: galtzo # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: pboling # Replace with a single Ko-fi username
7
- tidelift: rubygems/omniauth-jwt2 # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: pboling # Replace with a single Liberapay username
10
- issuehunt: pboling # Replace with a single IssueHunt username
11
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,2 +0,0 @@
1
- ignore:
2
- - dependency-name: "rubocop-lts"
@@ -1,53 +0,0 @@
1
- name: Ancient Ruby Support
2
-
3
- on:
4
- push:
5
- branches:
6
- - 'main'
7
- tags:
8
- - '!*' # Do not execute on tags
9
- pull_request:
10
- branches:
11
- - '*'
12
- # Allow manually triggering the workflow.
13
- workflow_dispatch:
14
-
15
- # Cancels all previous workflow runs for the same branch that have not yet completed.
16
- concurrency:
17
- # The concurrency group contains the workflow name and the branch name.
18
- group: ${{ github.workflow }}-${{ github.ref }}
19
- cancel-in-progress: true
20
-
21
- jobs:
22
- test:
23
- name: Ruby ${{ matrix.ruby }}
24
- if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
25
- env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
26
- BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
27
- strategy:
28
- fail-fast: false
29
- matrix:
30
- experimental: [false]
31
- rubygems:
32
- - "2.7.11"
33
- bundler:
34
- - none
35
- gemfile:
36
- - ancient
37
- ruby:
38
- - "2.3.8"
39
- - "2.2.10"
40
- runs-on: ubuntu-20.04
41
- continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
42
- steps:
43
- - name: Checkout
44
- uses: actions/checkout@v4
45
- - name: Setup Ruby & Bundle
46
- uses: ruby/setup-ruby@v1
47
- with:
48
- ruby-version: ${{ matrix.ruby }}
49
- rubygems: ${{ matrix.rubygems }}
50
- bundler: ${{ matrix.bundler }}
51
- bundler-cache: true
52
- - name: Run tests
53
- run: bundle exec rspec
@@ -1,59 +0,0 @@
1
- name: Omniauth JWT Tests
2
-
3
- on:
4
- push:
5
- branches:
6
- - 'main'
7
- tags:
8
- - '!*' # Do not execute on tags
9
- pull_request:
10
- branches:
11
- - '*'
12
- # Allow manually triggering the workflow.
13
- workflow_dispatch:
14
-
15
- # Cancels all previous workflow runs for the same branch that have not yet completed.
16
- concurrency:
17
- # The concurrency group contains the workflow name and the branch name.
18
- group: ${{ github.workflow }}-${{ github.ref }}
19
- cancel-in-progress: true
20
-
21
- jobs:
22
- build:
23
- runs-on: ubuntu-latest
24
- name: Ruby ${{ matrix.ruby }}
25
- env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
26
- BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
27
- if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
28
- continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
29
- strategy:
30
- fail-fast: false
31
- matrix:
32
- experimental: [false]
33
- rubygems:
34
- - latest
35
- bundler:
36
- - latest
37
- gemfile:
38
- - vanilla
39
- ruby:
40
- - "2.7"
41
- - "3.0"
42
- - "3.1"
43
- - "3.2"
44
- exclude:
45
- # Vanilla + 3.2 is effectively run by coverage workflow
46
- - gemfile: vanilla
47
- ruby: "3.2"
48
- steps:
49
- - name: Checkout
50
- uses: actions/checkout@v4
51
- - name: Setup Ruby & Bundle
52
- uses: ruby/setup-ruby@v1
53
- with:
54
- ruby-version: ${{ matrix.ruby }}
55
- rubygems: ${{ matrix.rubygems }}
56
- bundler: ${{ matrix.bundler }}
57
- bundler-cache: true
58
- - name: Tests
59
- run: bundle exec rspec
@@ -1,91 +0,0 @@
1
- name: Code Coverage
2
-
3
- env:
4
- K_SOUP_COV_MIN_BRANCH: 85
5
- K_SOUP_COV_MIN_LINE: 87
6
-
7
- on:
8
- push:
9
- branches:
10
- - 'main'
11
- tags:
12
- - '!*' # Do not execute on tags
13
- pull_request:
14
- branches:
15
- - '*'
16
- # Allow manually triggering the workflow.
17
- workflow_dispatch:
18
-
19
- # Cancels all previous workflow runs for the same branch that have not yet completed.
20
- concurrency:
21
- # The concurrency group contains the workflow name and the branch name.
22
- group: ${{ github.workflow }}-${{ github.ref }}
23
- cancel-in-progress: true
24
-
25
- jobs:
26
- test:
27
- name: Specs with Coverage - Ruby ${{ matrix.ruby }}
28
- if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
29
- env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
30
- BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
31
- CI_CODECOV: true
32
- COVER_ALL: true
33
- strategy:
34
- fail-fast: false
35
- matrix:
36
- experimental: [false]
37
- rubygems:
38
- - latest
39
- bundler:
40
- - latest
41
- gemfile:
42
- - coverage
43
- ruby:
44
- - "3.2"
45
-
46
- runs-on: ubuntu-latest
47
- steps:
48
- - name: Checkout
49
- uses: actions/checkout@v4
50
-
51
- - name: Setup Ruby & Bundle
52
- uses: ruby/setup-ruby@v1
53
- with:
54
- ruby-version: ${{ matrix.ruby }}
55
- rubygems: ${{ matrix.rubygems }}
56
- bundler: ${{ matrix.bundler }}
57
- bundler-cache: true
58
-
59
- - name: Run RSpec tests
60
- run: |
61
- bundle exec rspec
62
-
63
- - name: Code Coverage Summary Report
64
- uses: irongut/CodeCoverageSummary@v1.3.0
65
- if: ${{ github.event_name == 'pull_request' }}
66
- with:
67
- filename: ./coverage/coverage.xml
68
- badge: true
69
- fail_below_min: true
70
- format: markdown
71
- hide_branch_rate: false
72
- hide_complexity: true
73
- indicators: true
74
- output: both
75
- # https://github.com/irongut/CodeCoverageSummary#thresholds
76
- thresholds: "75 85"
77
- continue-on-error: ${{ matrix.experimental != 'false' }}
78
-
79
- - name: Add Coverage PR Comment
80
- uses: marocchino/sticky-pull-request-comment@v2
81
- if: ${{ github.event_name == 'pull_request' }}
82
- with:
83
- recreate: true
84
- path: code-coverage-results.md
85
- continue-on-error: ${{ matrix.experimental != 'false' }}
86
-
87
- - name: Coveralls
88
- uses: coverallsapp/github-action@master
89
- with:
90
- github-token: ${{ secrets.GITHUB_TOKEN }}
91
- continue-on-error: ${{ matrix.experimental != 'false' }}
@@ -1,54 +0,0 @@
1
- name: Legacy Ruby Support
2
-
3
- on:
4
- push:
5
- branches:
6
- - 'main'
7
- tags:
8
- - '!*' # Do not execute on tags
9
- pull_request:
10
- branches:
11
- - '*'
12
- # Allow manually triggering the workflow.
13
- workflow_dispatch:
14
-
15
- # Cancels all previous workflow runs for the same branch that have not yet completed.
16
- concurrency:
17
- # The concurrency group contains the workflow name and the branch name.
18
- group: ${{ github.workflow }}-${{ github.ref }}
19
- cancel-in-progress: true
20
-
21
- jobs:
22
- test:
23
- name: Ruby ${{ matrix.ruby }}
24
- if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
25
- env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
26
- BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
27
- strategy:
28
- fail-fast: false
29
- matrix:
30
- experimental: [false]
31
- rubygems:
32
- - "2.7.11"
33
- bundler:
34
- - none
35
- gemfile:
36
- - legacy
37
- ruby:
38
- - "2.6"
39
- - "2.5"
40
- - "2.4"
41
- runs-on: ubuntu-20.04
42
- continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
43
- steps:
44
- - name: Checkout
45
- uses: actions/checkout@v4
46
- - name: Setup Ruby & Bundle
47
- uses: ruby/setup-ruby@v1
48
- with:
49
- ruby-version: ${{ matrix.ruby }}
50
- rubygems: ${{ matrix.rubygems }}
51
- bundler: ${{ matrix.bundler }}
52
- bundler-cache: true
53
- - name: Run tests
54
- run: bundle exec rspec