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 5A5391396D0 for ; Mon, 28 Aug 2017 18:44:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B77461FC051; Mon, 28 Aug 2017 18:44:09 +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 9A0031FC051 for ; Mon, 28 Aug 2017 18:44:09 +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 D360E33BE32 for ; Mon, 28 Aug 2017 18:44:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A085785DA for ; Mon, 28 Aug 2017 18:44:07 +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: <1503945838.e4ad7353fa2758a86bbe80f7e4151d36724ab250.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-num/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/git-num/git-num-2.0.1.ebuild X-VCS-Directories: dev-vcs/git-num/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: e4ad7353fa2758a86bbe80f7e4151d36724ab250 X-VCS-Branch: master Date: Mon, 28 Aug 2017 18:44:07 +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: b031fe61-9684-4139-a060-feb700f5c012 X-Archives-Hash: 48e80aa4cc36a75ccf124c830d7867e5 commit: e4ad7353fa2758a86bbe80f7e4151d36724ab250 Author: Hans de Graaff gentoo org> AuthorDate: Mon Aug 28 18:10:57 2017 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Aug 28 18:43:58 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ad7353 dev-vcs/git-num: run tests; add ruby23, ruby24 Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-vcs/git-num/git-num-2.0.1.ebuild | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/dev-vcs/git-num/git-num-2.0.1.ebuild b/dev-vcs/git-num/git-num-2.0.1.ebuild index 925423a9172..d3551f87af7 100644 --- a/dev-vcs/git-num/git-num-2.0.1.ebuild +++ b/dev-vcs/git-num/git-num-2.0.1.ebuild @@ -2,11 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=5 -USE_RUBY="ruby21 ruby22" +USE_RUBY="ruby22 ruby23 ruby24" RUBY_FAKEGEM_RECIPE_DOC="rdoc" RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md" -RUBY_FAKEGEM_RECIPE_TEST="rspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" inherit ruby-fakegem @@ -17,9 +17,20 @@ SRC_URI="https://github.com/schreifels/git-num/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="" +IUSE="test" + +DEPEND+=" test? ( dev-vcs/git )" +RDEPEND+=" dev-vcs/git" all_ruby_prepare() { + # cp git-num since specs depend on the default location mkdir bin || die - mv git-num bin || die + cp git-num bin || die + + sed -i -e '14i`git config user.email "test-git-num@gentoo.org"`' \ + -e '15i`git config user.name "git-num tester"`' spec/lib/git_tools.rb || die +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec spec/unit.rb spec/integration.rb }