Skip to content

Commit cdd6a5f

Browse files
committed
👷 Fixes for truffleruby & jruby
1 parent e6a3de3 commit cdd6a5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.rubocop_gradual.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
[3, 1, 31, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/response*_spec.rb`.", 3190869319],
8080
[317, 33, 2, "RSpec/BeEq: Prefer `be` over `eq`.", 5860785]
8181
],
82-
"spec/oauth2/strategy/assertion_spec.rb:2269367634": [
82+
"spec/oauth2/strategy/assertion_spec.rb:2442437952": [
8383
[6, 1, 42, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/strategy/assertion*_spec.rb`.", 3665690869]
8484
],
8585
"spec/oauth2/strategy/auth_code_spec.rb:142083698": [

spec/oauth2/strategy/assertion_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
# this behavior is handled by the JWT gem, but this should make sure it is consistent
130130
# On old Ruby (versions 2.4 and below) the error raised was different because
131131
# an old version (< v2.4) of the jwt gem gets installed.
132-
if Gem::Version.new(JWT::VERSION) >= Gem::Version.new("2.4")
132+
if Gem::Version.create(JWT::VERSION::STRING) >= Gem::Version.create("2.4")
133133
expect { client_assertion.get_token(claims, encoding_opts) }.to raise_error(JWT::EncodeError, "Unsupported signing method")
134134
else
135135
expect { client_assertion.get_token(claims, encoding_opts) }.to raise_error(NotImplementedError)

0 commit comments

Comments
 (0)