commit: 74f148267c58c84281afa78eb0351290f44e6ff9
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 24 06:12:26 2016 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Apr 25 05:11:34 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f14826
dev-ruby/net-scp: fix 1.2.1 tests
The tests are not compatible with net-ssh 3.x so restrict them to net-ssh 2.x.
Package-Manager: portage-2.2.26
dev-ruby/net-scp/net-scp-1.2.1.ebuild | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dev-ruby/net-scp/net-scp-1.2.1.ebuild
b/dev-ruby/net-scp/net-scp-1.2.1.ebuild
index 56acdb3..d760f18 100644
--- a/dev-ruby/net-scp/net-scp-1.2.1.ebuild
+++ b/dev-ruby/net-scp/net-scp-1.2.1.ebuild
@@ -20,13 +20,17 @@ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux
~ppc-macos ~x86-macos
IUSE=""
ruby_add_bdepend "
- doc? ( >=dev-ruby/net-ssh-2.6.5 )
+ doc? ( >=dev-ruby/net-ssh-2.6.5:2.6 )
test? (
- >=dev-ruby/net-ssh-2.9.0
+ >=dev-ruby/net-ssh-2.9.0:2.6
dev-ruby/mocha
)"
-ruby_add_rdepend ">=dev-ruby/net-ssh-2.6.5"
+ruby_add_rdepend ">=dev-ruby/net-ssh-2.6.5:2.6"
+
+all_ruby_prepare() {
+ sed -i -e 's/>= 2.0.0/~> 2.0/' test/common.rb || die
+}
each_ruby_test() {
${RUBY} -Ilib:test test/test_all.rb || die