diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-04-24 08:12:26 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-04-25 07:11:34 +0200 |
commit | 74f148267c58c84281afa78eb0351290f44e6ff9 (patch) | |
tree | b91064e9d28dcba017a89df90d0f41c2f480cd06 /dev-ruby/net-scp | |
parent | dev-ruby/sshkit: add 1.10.0 (diff) | |
download | gentoo-74f148267c58c84281afa78eb0351290f44e6ff9.tar.gz gentoo-74f148267c58c84281afa78eb0351290f44e6ff9.tar.bz2 gentoo-74f148267c58c84281afa78eb0351290f44e6ff9.zip |
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
Diffstat (limited to 'dev-ruby/net-scp')
-rw-r--r-- | dev-ruby/net-scp/net-scp-1.2.1.ebuild | 10 |
1 files 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 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 |