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 2CFF3138334 for ; Sun, 3 Jun 2018 05:36:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CCB2E091A; Sun, 3 Jun 2018 05:35:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 001D5E091A for ; Sun, 3 Jun 2018 05:35:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 C4109335C79 for ; Sun, 3 Jun 2018 05:35:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CE7E2C5 for ; Sun, 3 Jun 2018 05:35:51 +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: <1528003891.3e8a3b48c726b99015a0411cd1a59d6367c7f9d8.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-r1.ebuild X-VCS-Directories: dev-ruby/webrobots/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 3e8a3b48c726b99015a0411cd1a59d6367c7f9d8 X-VCS-Branch: master Date: Sun, 3 Jun 2018 05:35:51 +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-Archives-Salt: 48b541fe-a559-45b6-8f9b-a41c6da33deb X-Archives-Hash: 68fccdc6f109e5afec8fb8ed17981ad4 commit: 3e8a3b48c726b99015a0411cd1a59d6367c7f9d8 Author: Hans de Graaff gentoo org> AuthorDate: Sun Jun 3 05:31:31 2018 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Jun 3 05:31:31 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e8a3b48 dev-ruby/webrobots: add ruby25 and missing vcr dependency Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild b/dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild new file mode 100644 index 00000000000..413984e979a --- /dev/null +++ b/dev-ruby/webrobots/webrobots-0.1.2-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +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 ~x86-macos ~x86-solaris" +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 +}