summaryrefslogtreecommitdiff
path: root/dev-ruby/jwt
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-07-19 03:05:46 -0500
committerroot <root@alpha.trunkmasters.com>2026-07-19 03:05:46 -0500
commit2b878031702361370da8f648ac080b3fe38f34d3 (patch)
treeb589026a2cdd86f9f0d7478fc94d4631076ef26c /dev-ruby/jwt
parent08bfa3f8ec685ab603d0c1995d79d00a1a0fbe1a (diff)
downloadbaldeagleos-repo-2b878031702361370da8f648ac080b3fe38f34d3.tar.gz
baldeagleos-repo-2b878031702361370da8f648ac080b3fe38f34d3.tar.xz
baldeagleos-repo-2b878031702361370da8f648ac080b3fe38f34d3.zip
Adding metadata
Diffstat (limited to 'dev-ruby/jwt')
-rw-r--r--dev-ruby/jwt/Manifest5
-rw-r--r--dev-ruby/jwt/files/jwt-2.10.3-ruby40.patch39
-rw-r--r--dev-ruby/jwt/jwt-2.10.3.ebuild (renamed from dev-ruby/jwt/jwt-3.1.0.ebuild)17
-rw-r--r--dev-ruby/jwt/jwt-3.1.1.ebuild36
-rw-r--r--dev-ruby/jwt/jwt-3.2.0.ebuild (renamed from dev-ruby/jwt/jwt-3.0.0.ebuild)4
5 files changed, 53 insertions, 48 deletions
diff --git a/dev-ruby/jwt/Manifest b/dev-ruby/jwt/Manifest
index 524c89bc3a86..5ee111053c2f 100644
--- a/dev-ruby/jwt/Manifest
+++ b/dev-ruby/jwt/Manifest
@@ -1,5 +1,4 @@
DIST jwt-2.10.1.tar.gz 88211 BLAKE2B 765f166ef7bbde77c47e66e04778ab6ad0f2d66aaa2b79deb153117488c171cf655f5660d96a6f2aaa7887f699d1527eb6ff2ba93465533547f6a86259d66ae8 SHA512 f7ad9597d83c26af110f48217494f606362f33947f9ffeb1219c9c5b412b6ab5098a4ccb9198648b0bf5f9bcc79d3435ee339504411f3c32cd0c2b104fa2c73e
-DIST jwt-3.0.0.tar.gz 84987 BLAKE2B 18ee595e21c58a3f23f94469d707e7216e4a083b7f44ace3d9fff67484843b0cba0c209dc3b1d9f47622be6dafd2e3ae6694ff8e6b6dbae5800fdbee10c16924 SHA512 5769479aea0e7adbf92aee01220d657c89cf16e709e57d1ecefd81faa0fd5a0dc4e452ed6b3c742266021748787153307de20baeed365234471dcaf93b9118d5
-DIST jwt-3.1.0.tar.gz 87026 BLAKE2B 45547002de87558770c144e45a4d8b576237657cacf37dc699701e2e7bdba16b1add57212aa8b249b3157a85ef29024fc84f2e3cc97b387d0684785f2b6600c9 SHA512 e6fd3d4b4a07c959dbda8291b6f2ce5249809ef978392652b7874e93dee3f1511787f3f8d6b825602a47910d2c8684b1c8ac74d72c5a2c5a9bd9dc1b2e0c358e
-DIST jwt-3.1.1.tar.gz 87604 BLAKE2B 446df145ebf59494cb04080627faa4eb37b9eb558f95033b8981d2843b3c54d6b4ecb4ab58393672dd7dab09c065cb57ebe314d21209fc7a701a87e59ff4d78d SHA512 53d777081469779a30bdf56bc433331ba779033a06937de813adcf883184ed3afc41ef17b1b9e0e2195e170c6e4683fc19e3c2039339dc1d13fa2b0d43eb1566
+DIST jwt-2.10.3.tar.gz 88536 BLAKE2B bcf02ea750e146d4529ae274082862905a97dc68915eb78358e4dbb65144e0c6333e016ac02b778128cf55140eca26904db1e47cefb59dafd53ddb4869104b97 SHA512 7790a292faee005b382a16d97b395de46ad2f8bc01eb8b3e33b4a7dc13bf65edc019dbd848b8b2fa9179dac286fce9a36fae879a58a434c54134128a8682b865
DIST jwt-3.1.2.tar.gz 88322 BLAKE2B 1538b1dd0edddd968a0f7ac6ab4212cfc31f431031e7f8e7afbce75ea72fcc25cd89cae7322bc3e6c06addf0a9682c34acaa5e65a68e9eca94c3a70d053ca07d SHA512 29d78bc03b55f7683fbe1d6520de3547b5111c6e2d131198511cb110015355d05b32b58a123ab6f315b0c6ff77b82c1575afe1e72736dbeb764848ec18588aad
+DIST jwt-3.2.0.tar.gz 89031 BLAKE2B bd7462558fe38687ce70bb6714a36ad2cc22f2380d5b8aa5211f0fd1db0f817f720dcb827ea499ada3431a6d8095c2c4810b18ca9f025c68b59e3fae289b4b02 SHA512 3eaa4818a04d8a841c165e90b3d2cdb778c8e5b1088888b73fd2dda1b77564073ae99bce253c019f43f6cb146ec1ae5bc418ddf83ebd9c11c4ef04b489b6db28
diff --git a/dev-ruby/jwt/files/jwt-2.10.3-ruby40.patch b/dev-ruby/jwt/files/jwt-2.10.3-ruby40.patch
new file mode 100644
index 000000000000..b247ad82dcc6
--- /dev/null
+++ b/dev-ruby/jwt/files/jwt-2.10.3-ruby40.patch
@@ -0,0 +1,39 @@
+https://github.com/jwt/ruby-jwt/pull/706
+
+From 2c4d9bd89569f191d303b9ae1b7d94e0f67a2c3e Mon Sep 17 00:00:00 2001
+From: Joakim Antman <antmanj@gmail.com>
+Date: Thu, 13 Nov 2025 21:36:20 +0200
+Subject: [PATCH 1/4] Fix compatibility with openssl
+
+--- a/lib/jwt/jwk/rsa.rb
++++ b/lib/jwt/jwk/rsa.rb
+@@ -195,7 +195,7 @@ def validate_rsa_parameters!(rsa_parameters)
+
+ if ::JWT.openssl_3?
+ alias create_rsa_key create_rsa_key_using_der
+- elsif OpenSSL::PKey::RSA.new.respond_to?(:set_key)
++ elsif OpenSSL::PKey::RSA.method_defined?(:set_key)
+ alias create_rsa_key create_rsa_key_using_sets
+ else
+ alias create_rsa_key create_rsa_key_using_accessors
+--- a/spec/jwt/jwk/rsa_spec.rb
++++ b/spec/jwt/jwk/rsa_spec.rb
+@@ -262,7 +262,7 @@
+
+ describe '.create_rsa_key_using_sets' do
+ before do
+- skip 'OpenSSL without the RSA#set_key method not supported' unless OpenSSL::PKey::RSA.new.respond_to?(:set_key)
++ skip 'OpenSSL without the RSA#set_key method not supported' unless OpenSSL::PKey::RSA.method_defined?(:set_key)
+ skip 'OpenSSL 3.0 does not allow mutating objects anymore' if JWT.openssl_3?
+ end
+
+@@ -274,7 +274,7 @@
+
+ describe '.create_rsa_key_using_accessors' do
+ before do
+- skip 'OpenSSL if RSA#set_key is available there is no accessors anymore' if OpenSSL::PKey::RSA.new.respond_to?(:set_key)
++ skip 'OpenSSL if RSA#set_key is available there is no accessors anymore' if OpenSSL::PKey::RSA.method_defined?(:set_key)
+ end
+
+ subject(:rsa) { described_class.create_rsa_key_using_accessors(rsa_parameters) }
+
diff --git a/dev-ruby/jwt/jwt-3.1.0.ebuild b/dev-ruby/jwt/jwt-2.10.3.ebuild
index 9a4598c03dd6..66fa5688fedb 100644
--- a/dev-ruby/jwt/jwt-3.1.0.ebuild
+++ b/dev-ruby/jwt/jwt-2.10.3.ebuild
@@ -1,9 +1,8 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-
-USE_RUBY="ruby32 ruby33 ruby34"
+USE_RUBY="ruby32 ruby33 ruby34 ruby40"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
@@ -17,15 +16,19 @@ HOMEPAGE="https://github.com/jwt/ruby-jwt"
SRC_URI="https://github.com/jwt/ruby-jwt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
-SLOT="$(ver_cut 1)"
+SLOT="2"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
-IUSE="test"
+IUSE="eddsa test"
RUBY_S="ruby-jwt-${PV}"
-ruby_add_rdepend "dev-ruby/base64"
+ruby_add_rdepend "dev-ruby/base64 eddsa? ( dev-ruby/rbnacl )"
+
+ruby_add_bdepend "test? ( dev-ruby/rbnacl )"
-ruby_add_bdepend "test? ( dev-ruby/logger )"
+PATCHES=(
+ "${FILESDIR}"/jwt-2.10.3-ruby40.patch
+)
all_ruby_prepare() {
sed -i -e "/simplecov/ s:^:#:" \
diff --git a/dev-ruby/jwt/jwt-3.1.1.ebuild b/dev-ruby/jwt/jwt-3.1.1.ebuild
deleted file mode 100644
index 9a4598c03dd6..000000000000
--- a/dev-ruby/jwt/jwt-3.1.1.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-USE_RUBY="ruby32 ruby33 ruby34"
-
-RUBY_FAKEGEM_RECIPE_TEST="rspec3"
-
-RUBY_FAKEGEM_BINWRAP=""
-RUBY_FAKEGEM_GEMSPEC="ruby-jwt.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A Ruby implementation of JSON Web Token draft 06"
-HOMEPAGE="https://github.com/jwt/ruby-jwt"
-SRC_URI="https://github.com/jwt/ruby-jwt/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="$(ver_cut 1)"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
-IUSE="test"
-
-RUBY_S="ruby-jwt-${PV}"
-
-ruby_add_rdepend "dev-ruby/base64"
-
-ruby_add_bdepend "test? ( dev-ruby/logger )"
-
-all_ruby_prepare() {
- sed -i -e "/simplecov/ s:^:#:" \
- -e '/^SimpleCov.start/,/^end/ s:^:#:' \
- spec/spec_helper.rb || die
-
- sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
-}
diff --git a/dev-ruby/jwt/jwt-3.0.0.ebuild b/dev-ruby/jwt/jwt-3.2.0.ebuild
index 9a4598c03dd6..f17e61533889 100644
--- a/dev-ruby/jwt/jwt-3.0.0.ebuild
+++ b/dev-ruby/jwt/jwt-3.2.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby32 ruby33 ruby34"
+USE_RUBY="ruby32 ruby33 ruby34 ruby40"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"