summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2014-10-11 05:25:49 +0000
committerManuel Rüger <mrueg@gentoo.org>2014-10-11 05:25:49 +0000
commit49e621718d0604846ceda2f8d68682b902e24c29 (patch)
tree4ef7434d6d0b0b7dab71abf27fbc2fc0fb3282be /dev-ruby
parentAdd ruby21 target. (diff)
downloadgentoo-2-49e621718d0604846ceda2f8d68682b902e24c29.tar.gz
gentoo-2-49e621718d0604846ceda2f8d68682b902e24c29.tar.bz2
gentoo-2-49e621718d0604846ceda2f8d68682b902e24c29.zip
Add ruby21 target. Restrict tests to <mocha-1
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/net-ssh-gateway/ChangeLog5
-rw-r--r--dev-ruby/net-ssh-gateway/net-ssh-gateway-1.2.0-r1.ebuild13
2 files changed, 13 insertions, 5 deletions
diff --git a/dev-ruby/net-ssh-gateway/ChangeLog b/dev-ruby/net-ssh-gateway/ChangeLog
index 6c8f30859e4f..5f478fc68880 100644
--- a/dev-ruby/net-ssh-gateway/ChangeLog
+++ b/dev-ruby/net-ssh-gateway/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-ruby/net-ssh-gateway
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh-gateway/ChangeLog,v 1.40 2014/04/05 23:09:41 mrueg Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh-gateway/ChangeLog,v 1.41 2014/10/11 05:25:49 mrueg Exp $
+
+ 11 Oct 2014; Manuel Rüger <mrueg@gentoo.org> net-ssh-gateway-1.2.0-r1.ebuild:
+ Add ruby21 target. Restrict tests to <mocha-1
05 Apr 2014; Manuel Rüger <mrueg@gentoo.org> net-ssh-gateway-1.1.0-r1.ebuild:
Remove ree18 and ruby18 target.
diff --git a/dev-ruby/net-ssh-gateway/net-ssh-gateway-1.2.0-r1.ebuild b/dev-ruby/net-ssh-gateway/net-ssh-gateway-1.2.0-r1.ebuild
index c80813dd4173..62edaaab6afb 100644
--- a/dev-ruby/net-ssh-gateway/net-ssh-gateway-1.2.0-r1.ebuild
+++ b/dev-ruby/net-ssh-gateway/net-ssh-gateway-1.2.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# 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-gateway/net-ssh-gateway-1.2.0-r1.ebuild,v 1.2 2013/12/22 19:19:50 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh-gateway/net-ssh-gateway-1.2.0-r1.ebuild,v 1.3 2014/10/11 05:25:49 mrueg Exp $
EAPI=5
-USE_RUBY="ruby19 ruby20"
+USE_RUBY="ruby19 ruby20 ruby21"
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
@@ -19,10 +19,15 @@ SLOT="2"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE=""
-ruby_add_bdepend "dev-ruby/test-unit:2"
+ruby_add_bdepend "dev-ruby/test-unit:2
+ <dev-ruby/mocha-1"
ruby_add_rdepend ">=dev-ruby/net-ssh-2.6.5"
+all_ruby_prepare() {
+ sed -i -e "1igem 'mocha', '~>0.10'" test/gateway_test.rb || die
+}
+
each_ruby_test() {
RUBYLIB=lib ruby-ng_testrb-2 test/*
}