From f8eb0895affbc018ba555babae2c495edefaaa3f Mon Sep 17 00:00:00 2001 From: 40handz Date: Wed, 27 May 2026 12:39:55 -0400 Subject: [PATCH] Widen JWT dependency to allow v3 Changes constraint from ~> 2.1, >= 2.1.0 to >= 2.1, < 4 to allow jwt v3.x. The only usage (JWT.encode with HS256) is compatible with both v2 and v3. --- Gemfile.lock | 13 ++++++++----- pusher-push-notifications.gemspec | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index d5adf83..283fa72 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,7 +2,7 @@ PATH remote: . specs: pusher-push-notifications (2.0.2) - jwt (~> 2.1, >= 2.1.0) + jwt (>= 2.1, < 4) rest-client (~> 2.0, >= 2.0.2) GEM @@ -11,9 +11,11 @@ GEM addressable (2.9.0) public_suffix (>= 2.0.2, < 8.0) ast (2.4.2) + base64 (0.3.0) byebug (11.1.3) - codecov (0.5.1) - simplecov (>= 0.15, < 0.22) + codecov (0.2.12) + json + simplecov coderay (1.1.3) coveralls (0.8.23) json (>= 1.8, < 3) @@ -33,7 +35,8 @@ GEM http-cookie (1.0.3) domain_name (~> 0.5) json (2.5.1) - jwt (2.2.2) + jwt (3.2.0) + base64 method_source (1.0.0) mime-types (3.3.1) mime-types-data (~> 3.2015) @@ -123,4 +126,4 @@ DEPENDENCIES webmock (~> 3.0, >= 3.0.1) BUNDLED WITH - 2.2.13 + 2.7.2 diff --git a/pusher-push-notifications.gemspec b/pusher-push-notifications.gemspec index 9e9162f..1f29936 100644 --- a/pusher-push-notifications.gemspec +++ b/pusher-push-notifications.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_dependency 'jwt', '~> 2.1', '>= 2.1.0' + spec.add_dependency 'jwt', '>= 2.1', '< 4' spec.add_dependency 'rest-client', '~> 2.0', '>= 2.0.2' spec.add_development_dependency 'bundler', '~> 2.2'