Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
"jwt_2.6.0",
"jwt_2.7.0",
"jwt_2.8.0",
"jwt_2.9.0",
"jwt_2.10.0",
"jwt_3.0.0",
"jwt_3.1.0",
"rack_2.1.0",
"rack_2.2.0",
"rack_3.0.0",
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
2.6.0
2.7.0
2.8.0
2.9.0
2.10.0
3.0.0
3.1.0
].each do |jwt_version|
appraise "jwt-#{jwt_version}" do
gem 'jwt', "~> #{jwt_version}"
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

## [v4.1.0] - 2025-06-24

### Added

- Added support for additional JWT versions
- Updated test matrix to include `jwt` versions: `~> 2.9.0`, `~> 2.10.0`, `~> 3.0.0` & `~> 3.1.0`
- Added test coverage for JWT version 3+ behavior


## [v4.0.0] - 2024-07-11

### Changed
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/jwt_2.10.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "faraday", require: false
gem "jwt", "~> 2.10.0"

gemspec path: "../"
8 changes: 8 additions & 0 deletions gemfiles/jwt_2.9.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "faraday", require: false
gem "jwt", "~> 2.9.0"

gemspec path: "../"
8 changes: 8 additions & 0 deletions gemfiles/jwt_3.0.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "faraday", require: false
gem "jwt", "~> 3.0.0"

gemspec path: "../"
8 changes: 8 additions & 0 deletions gemfiles/jwt_3.1.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "faraday", require: false
gem "jwt", "~> 3.1.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/jwt_signed_request/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module JWTSignedRequest
VERSION = '4.0.0'
VERSION = '4.1.0'
end
10 changes: 10 additions & 0 deletions spec/jwt_signed_request/verify_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@
end
end

context 'and using JWT version 3.x.x' do
before do
stub_const("JWT::VERSION::MAJOR", 3)
end

it 'raises an a MissingAlgorithmError' do
Copy link

Copilot AI Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in the test description. Consider revising it to 'raises MissingAlgorithmError' to remove the extra article.

Suggested change
it 'raises an a MissingAlgorithmError' do
it 'raises MissingAlgorithmError' do

Copilot uses AI. Check for mistakes.
expect { verify_request }.to raise_error(JWTSignedRequest::MissingAlgorithmError)
end
end

context 'and using JWT version 1.x.x' do
before do
stub_const("JWT::VERSION::MAJOR", 1)
Expand Down