public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-num/
Date: Mon, 28 Aug 2017 18:44:07 +0000 (UTC)	[thread overview]
Message-ID: <1503945838.e4ad7353fa2758a86bbe80f7e4151d36724ab250.graaff@gentoo> (raw)

commit:     e4ad7353fa2758a86bbe80f7e4151d36724ab250
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 28 18:10:57 2017 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> 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
 }


             reply	other threads:[~2017-08-28 18:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-28 18:44 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-04-11 15:33 [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-num/ Hans de Graaff
2017-04-28 21:15 Manuel Rüger
2017-04-28 21:15 Manuel Rüger
2016-03-05 21:58 Patrice Clement
2016-03-05 11:45 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1503945838.e4ad7353fa2758a86bbe80f7e4151d36724ab250.graaff@gentoo \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox