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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 531E0158094 for ; Tue, 26 Jul 2022 09:50:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78E29E0E9E; Tue, 26 Jul 2022 09:49:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 583DBE0E9E for ; Tue, 26 Jul 2022 09:49:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48832341009 for ; Tue, 26 Jul 2022 09:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CB1B9527 for ; Tue, 26 Jul 2022 09:49:37 +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: <1658828972.8010c54245a39d389591ad6deefdbc5ef5246d99.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rest-client/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild X-VCS-Directories: dev-ruby/rest-client/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 8010c54245a39d389591ad6deefdbc5ef5246d99 X-VCS-Branch: master Date: Tue, 26 Jul 2022 09:49:37 +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: a244d628-08e5-41d0-a066-d473bb409b60 X-Archives-Hash: a4e8eb1b4e23fdb77e5ba0148dd8e787 commit: 8010c54245a39d389591ad6deefdbc5ef5246d99 Author: Hans de Graaff gentoo org> AuthorDate: Tue Jul 26 07:32:17 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Tue Jul 26 09:49:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8010c542 dev-ruby/rest-client: EAPI 7 -> 8, add ruby30 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild b/dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild new file mode 100644 index 000000000000..24a93451615c --- /dev/null +++ b/dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="history.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="Simple Simple HTTP and REST client for Ruby" +HOMEPAGE="https://github.com/rest-client/rest-client" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/webmock:3 )" + +ruby_add_rdepend " + >=dev-ruby/http-accept-1.7.0:1 + >=dev-ruby/http-cookie-1.0.2:0 + >=dev-ruby/mime-types-1.16:* =dev-ruby/netrc-0.8:0 +" + +all_ruby_prepare() { + sed -e '/bundler/I s:^:#:' \ + -e '/namespace :windows/,/^end/ s:^:#:' -i Rakefile || die + + # Remove specs that requires network access. + rm spec/integration/{httpbin,request}_spec.rb || die + + # Fix specs confused by ruby30 keyword arguments + sed -i -e 's/with(/with({/' -e '/with/ s/)$/})/' spec/unit/resource_spec.rb || die + sed -i -e '508 s/1 => 2/{1 => 2}/' spec/unit/request_spec.rb || die +}