From 74f148267c58c84281afa78eb0351290f44e6ff9 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 24 Apr 2016 08:12:26 +0200 Subject: 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(-) (limited to 'dev-ruby/net-scp') 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 56acdb3a0f75..d760f18f7ecb 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 -- cgit v1.2.3-65-gdbad