From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 546FE1580B9 for ; Mon, 23 Aug 2021 17:38:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3971E0AA6; Mon, 23 Aug 2021 17:38:26 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C5A7E0AA6 for ; Mon, 23 Aug 2021 17:38:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 72C39340A7B for ; Mon, 23 Aug 2021 17:38:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4D638D3 for ; Mon, 23 Aug 2021 17:38:23 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1629740291.b89b42d256b67e83a35f73888b7de0ef6bba6299.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/jwt/, dev-ruby/jwt/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/jwt/Manifest dev-ruby/jwt/files/jwt-2.2.3-ec-test.patch dev-ruby/jwt/jwt-2.2.3.ebuild X-VCS-Directories: dev-ruby/jwt/ dev-ruby/jwt/files/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: b89b42d256b67e83a35f73888b7de0ef6bba6299 X-VCS-Branch: master Date: Mon, 23 Aug 2021 17:38:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 99b95061-fcb6-4b3a-8aa8-2cd250b8e52d X-Archives-Hash: f87585e90829e5d7d26d53aed9e70bd8 commit: b89b42d256b67e83a35f73888b7de0ef6bba6299 Author: Hans de Graaff gentoo org> AuthorDate: Sat Aug 21 08:52:10 2021 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Aug 23 17:38:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b89b42d2 dev-ruby/jwt: add 2.2.3 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/jwt/Manifest | 1 + dev-ruby/jwt/files/jwt-2.2.3-ec-test.patch | 22 +++++++++++++++++++ dev-ruby/jwt/jwt-2.2.3.ebuild | 35 ++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/dev-ruby/jwt/Manifest b/dev-ruby/jwt/Manifest index ac2d23eae43..79eb02cf7c7 100644 --- a/dev-ruby/jwt/Manifest +++ b/dev-ruby/jwt/Manifest @@ -1 +1,2 @@ DIST jwt-2.2.2.tar.gz 43084 BLAKE2B 998c2770e50cc65b5cb687f99f76b64a6a8d58a5c4312c32b642c7280abcf268f43588f7a8421d05c892072f7e39a6b48c1eb57dde950e92372f2bfe5eda9083 SHA512 04ac42afb09ad8648e2c428cb7493f738b1944e5fd273723cd2fc2550d6ab3486c2f3be5ae5bac7e36664e58d2fa913e5b38ba34361a98ebe1259d18008341b9 +DIST jwt-2.2.3.tar.gz 50675 BLAKE2B 904a2b9be80ece10cc046d35df784ecc4991c3b09a79c2e2e461003596e9212409ed5840282ce632d3ff499754c505cd899ca95945f562883869ff3c50c4399a SHA512 ebefbf8f825afc1a78329088012118ed681a61bdf9e1c6a3fa125d46105092f1f26a4bc88791788c0290009dbc0427128d655a301c034ac07caf14216744962c 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 00000000000..18f69cf8d44 --- /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 +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 diff --git a/dev-ruby/jwt/jwt-2.2.3.ebuild b/dev-ruby/jwt/jwt-2.2.3.ebuild new file mode 100644 index 00000000000..bed4ee7f5a6 --- /dev/null +++ b/dev-ruby/jwt/jwt-2.2.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30" + +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="2" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="" + +RUBY_S="ruby-jwt-${PV}" + +PATCHES=( "${FILESDIR}/${P}-ec-test.patch" ) + +ruby_add_bdepend "test? ( dev-ruby/rbnacl )" + +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 +}