diff options
author | 2021-08-21 10:52:10 +0200 | |
---|---|---|
committer | 2021-08-23 19:38:11 +0200 | |
commit | b89b42d256b67e83a35f73888b7de0ef6bba6299 (patch) | |
tree | 550d0fe24f71b972e601de561a3931abcce170df /dev-ruby/jwt/files | |
parent | dev-ruby/haml: add 5.2.2 (diff) | |
download | gentoo-b89b42d256b67e83a35f73888b7de0ef6bba6299.tar.gz gentoo-b89b42d256b67e83a35f73888b7de0ef6bba6299.tar.bz2 gentoo-b89b42d256b67e83a35f73888b7de0ef6bba6299.zip |
dev-ruby/jwt: add 2.2.3
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/jwt/files')
-rw-r--r-- | dev-ruby/jwt/files/jwt-2.2.3-ec-test.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-ruby/jwt/files/jwt-2.2.3-ec-test.patch b/dev-ruby/jwt/files/jwt-2.2.3-ec-test.patch new file mode 100644 index 000000000000..18f69cf8d44d --- /dev/null +++ b/dev-ruby/jwt/files/jwt-2.2.3-ec-test.patch @@ -0,0 +1,22 @@ +From c444ac978013a9e199c968fefc3c413f37c93351 Mon Sep 17 00:00:00 2001 +From: Joakim Antman <antmanj@gmail.com> +Date: Wed, 23 Jun 2021 10:55:29 +0300 +Subject: [PATCH] Fix OpenSSL::PKey::EC public_key handing in tests + +--- + spec/jwk/ec_spec.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/spec/jwk/ec_spec.rb b/spec/jwk/ec_spec.rb +index 3a94976..d8258bb 100644 +--- a/spec/jwk/ec_spec.rb ++++ b/spec/jwk/ec_spec.rb +@@ -15,7 +15,7 @@ + end + + context 'when a keypair with only public key is given' do +- let(:keypair) { ec_key.tap { |x| x.private_key = nil } } ++ let(:keypair) { OpenSSL::PKey::EC.new(ec_key.public_key.group).tap { |ec| ec.public_key = ec_key.public_key } } + it 'creates an instance of the class' do + expect(subject).to be_a described_class + expect(subject.private?).to eq false |