Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ruby-jwt
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Ruby Team
ruby-jwt
Commits
eda10ef7
Commit
eda10ef7
authored
3 years ago
by
Antonio Terceiro
Browse files
Options
Downloads
Patches
Plain Diff
Add upstream patch to fix openssl version check
Closes: #1005426
parent
b3305231
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/0001-Fix-openssl-gem-version-check-to-support-versons-gre.patch
+23
-0
23 additions, 0 deletions
...ix-openssl-gem-version-check-to-support-versons-gre.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
24 additions
and
0 deletions
debian/patches/0001-Fix-openssl-gem-version-check-to-support-versons-gre.patch
0 → 100644
+
23
−
0
View file @
eda10ef7
From: Joakim Antman <antmanj@gmail.com>
Date: Thu, 18 Nov 2021 07:31:41 +0200
Subject: Fix openssl gem version check to support versons greater than 3
---
lib/jwt/algos/ps.rb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/jwt/algos/ps.rb b/lib/jwt/algos/ps.rb
index a14f2dd..554aff7 100644
--- a/lib/jwt/algos/ps.rb
+++ b/lib/jwt/algos/ps.rb
@@ -29,9 +29,7 @@
module JWT
def require_openssl!
if Object.const_defined?('OpenSSL')
- major, minor = OpenSSL::VERSION.split('.').first(2)
-
- unless major.to_i >= 2 && minor.to_i >= 1
+ if ::Gem::Version.new(OpenSSL::VERSION) < ::Gem::Version.new('2.1')
raise JWT::RequiredDependencyError, "You currently have OpenSSL #{OpenSSL::VERSION}. PS support requires >= 2.1"
end
else
This diff is collapsed.
Click to expand it.
debian/patches/series
0 → 100644
+
1
−
0
View file @
eda10ef7
0001-Fix-openssl-gem-version-check-to-support-versons-gre.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment