summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2014-10-12 16:55:06 +0000
committerManuel Rüger <mrueg@gentoo.org>2014-10-12 16:55:06 +0000
commitb24dca54fbe39e913b2ed306ac46cb76df619373 (patch)
tree8a55a595acb9d1db56a9c3b64a35fa3b8da15fa1 /dev-ruby/net-ssh-multi
parentImport Qt5 support from KDE overlay. (diff)
downloadgentoo-2-b24dca54fbe39e913b2ed306ac46cb76df619373.tar.gz
gentoo-2-b24dca54fbe39e913b2ed306ac46cb76df619373.tar.bz2
gentoo-2-b24dca54fbe39e913b2ed306ac46cb76df619373.zip
Add ruby21 target. Fix tests with mocha
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'dev-ruby/net-ssh-multi')
-rw-r--r--dev-ruby/net-ssh-multi/ChangeLog5
-rw-r--r--dev-ruby/net-ssh-multi/net-ssh-multi-1.2.0-r1.ebuild10
2 files changed, 12 insertions, 3 deletions
diff --git a/dev-ruby/net-ssh-multi/ChangeLog b/dev-ruby/net-ssh-multi/ChangeLog
index 15665c96bd33..e29d369121b3 100644
--- a/dev-ruby/net-ssh-multi/ChangeLog
+++ b/dev-ruby/net-ssh-multi/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-ruby/net-ssh-multi
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh-multi/ChangeLog,v 1.15 2014/08/05 16:00:39 mrueg Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh-multi/ChangeLog,v 1.16 2014/10/12 16:55:06 mrueg Exp $
+
+ 12 Oct 2014; Manuel Rüger <mrueg@gentoo.org> net-ssh-multi-1.2.0-r1.ebuild:
+ Add ruby21 target. Fix tests with mocha
05 Aug 2014; Manuel Rüger <mrueg@gentoo.org> net-ssh-multi-1.1.ebuild,
net-ssh-multi-1.2.0-r1.ebuild:
diff --git a/dev-ruby/net-ssh-multi/net-ssh-multi-1.2.0-r1.ebuild b/dev-ruby/net-ssh-multi/net-ssh-multi-1.2.0-r1.ebuild
index e254bf887ebc..5bbabcf4b958 100644
--- a/dev-ruby/net-ssh-multi/net-ssh-multi-1.2.0-r1.ebuild
+++ b/dev-ruby/net-ssh-multi/net-ssh-multi-1.2.0-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh-multi/net-ssh-multi-1.2.0-r1.ebuild,v 1.4 2014/08/05 16:00:39 mrueg Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh-multi/net-ssh-multi-1.2.0-r1.ebuild,v 1.5 2014/10/12 16:55:06 mrueg Exp $
EAPI=5
-USE_RUBY="ruby19 ruby20"
+USE_RUBY="ruby19 ruby20 ruby21"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc"
@@ -24,6 +24,12 @@ IUSE=""
ruby_add_rdepend ">=dev-ruby/net-ssh-2.6.5
>=dev-ruby/net-ssh-gateway-1.2.0"
+ruby_add_bdepend "test? ( <dev-ruby/mocha-1 )"
+
+all_ruby_prepare() {
+ sed -i -e "1igem 'mocha', '~>0.10'" test/common.rb || die
+}
+
each_ruby_test() {
${RUBY} -Ilib:test test/test_all.rb || die
}