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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9D94A158009 for ; Wed, 21 Jun 2023 05:12:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2F0DE0849; Wed, 21 Jun 2023 05:12:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A849DE0849 for ; Wed, 21 Jun 2023 05:12:41 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B89D7340E3C for ; Wed, 21 Jun 2023 05:12:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0F236A95 for ; Wed, 21 Jun 2023 05:12:39 +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: <1687323980.ad28ac7f3e0fd451e68e5b572df745098a38c549.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/webrobots/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/webrobots/webrobots-0.1.2-r3.ebuild X-VCS-Directories: dev-ruby/webrobots/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: ad28ac7f3e0fd451e68e5b572df745098a38c549 X-VCS-Branch: master Date: Wed, 21 Jun 2023 05:12:39 +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: 82b3eda0-5dde-4341-8444-ce4b68592b06 X-Archives-Hash: 853da8a05459b8d7bae43ca63e64fe33 commit: ad28ac7f3e0fd451e68e5b572df745098a38c549 Author: Hans de Graaff gentoo org> AuthorDate: Wed Jun 21 05:06:20 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Wed Jun 21 05:06:20 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad28ac7f dev-ruby/webrobots: update EAPI 7 -> 8 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/webrobots/webrobots-0.1.2-r3.ebuild | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/dev-ruby/webrobots/webrobots-0.1.2-r3.ebuild b/dev-ruby/webrobots/webrobots-0.1.2-r3.ebuild new file mode 100644 index 000000000000..8868c403f5b3 --- /dev/null +++ b/dev-ruby/webrobots/webrobots-0.1.2-r3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.rdoc" + +inherit ruby-fakegem + +DESCRIPTION="A library to help write robots.txt compliant web robots" +HOMEPAGE="https://github.com/knu/webrobots" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/nokogiri-1.4.4" + +ruby_add_bdepend "test? ( dev-ruby/shoulda dev-ruby/test-unit:2 dev-ruby/webmock dev-ruby/vcr )" + +all_ruby_prepare() { + sed -i -e '/bundler/,/end/d' Rakefile test/helper.rb || die + + # Avoid tests for live websites requirering a network connection. + sed -i -e '/robots.txt in the real world/,/^ end/ s:^:#:' test/test_webrobots.rb || die +} + +each_ruby_test() { + ruby-ng_testrb-2 -Ilib test/test_*.rb +}