diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-08-04 07:56:26 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-08-04 07:56:26 +0200 |
commit | c02d2a6502231fb1a1d56ed8808e8a9622bd1113 (patch) | |
tree | 02b96b46248e1903868affa33185cc36b0e1c531 /dev-ruby/sshkit | |
parent | dev-ruby/capybara: add 3.28.0 (diff) | |
download | gentoo-c02d2a6502231fb1a1d56ed8808e8a9622bd1113.tar.gz gentoo-c02d2a6502231fb1a1d56ed8808e8a9622bd1113.tar.bz2 gentoo-c02d2a6502231fb1a1d56ed8808e8a9622bd1113.zip |
dev-ruby/sshkit: add 1.20.0
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/sshkit')
-rw-r--r-- | dev-ruby/sshkit/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/sshkit/sshkit-1.20.0.ebuild | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/sshkit/Manifest b/dev-ruby/sshkit/Manifest index 6f3b6d1d9eca..1d51faa97299 100644 --- a/dev-ruby/sshkit/Manifest +++ b/dev-ruby/sshkit/Manifest @@ -1,2 +1,3 @@ DIST sshkit-1.18.2.gem 150016 BLAKE2B b9427eab02b6967a71252bf4a519d86f06429241e28d661dd424ff7739fd69d68ca9b430096518872141e4e09fbac832e04aab8a89fc1d89ebe5077303b87238 SHA512 a98477dfc9c566ba3777a2557db95aa20c2b220b238d8acd59888c8ac271b71c1bbebb29f37ad87102a155beecdd0b60872b4c735f71f7a65be2c1fb5ae60c8f DIST sshkit-1.19.1.gem 155136 BLAKE2B 756d4f2e7575d0b2b2c0cdf885a22739e8b8f458d9ffebd614bc58135bd285853afe63bddc262dfb2d73ca64f6be5ebdb01436bbe25deaad73f5a62d9ac67b33 SHA512 9df31133c4d6b8da753aa2ab65574a813c99d086fff47b42db345057ff3eadce7e24bd6b648b28fcb476282a8b7f204acaec0cc766a3c25c52a3f64223169ebf +DIST sshkit-1.20.0.gem 155648 BLAKE2B fdb95aed6d407c598abde71591cbe2d7b1f98d91985695509a6545bcabc5c0f3337cfe8f73e82f4b212e3c04b6da09e7521637934baeea7a9b5e268ff72fcad1 SHA512 682234f99d6ae9533c99f0319ad0f3732f2ff166a8f1a07d5ce8ff59fd9606af9440798a39f657dd3899e9278639aa93d5fb29af8f64b2ebea7f3b8e75fb25fa diff --git a/dev-ruby/sshkit/sshkit-1.20.0.ebuild b/dev-ruby/sshkit/sshkit-1.20.0.ebuild new file mode 100644 index 000000000000..9f2bf6864600 --- /dev/null +++ b/dev-ruby/sshkit/sshkit-1.20.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby24 ruby25 ruby26" + +# There are functional tests that require vagrant boxes to be set up. +RUBY_FAKEGEM_TASK_TEST="test:units" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md FAQ.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="SSHKit makes it easy to write structured, testable SSH commands in Ruby" +HOMEPAGE="https://github.com/capistrano/sshkit" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + >=dev-ruby/net-ssh-2.8.0:* + >=dev-ruby/net-scp-1.1.2 +" + +ruby_add_bdepend "test? ( dev-ruby/minitest dev-ruby/mocha )" + +all_ruby_prepare() { + sed -i -e '/bundler/I s:^:#:' Rakefile test/helper.rb || die + sed -i -e '/\(turn\|unindent\|reporters\)/I s:^:#:' \ + -e '1irequire "set"; require "pathname"' test/helper.rb || die + + # Fix assumption about parent directory name + sed -i -e '/assert_match/ s/sshkit/sshkit.*/' test/unit/test_deprecation_logger.rb || die +} + +each_ruby_test() { + # Run tests directly to avoid dependencies in the Rakefile + ${RUBY} -Ilib:test:. -e "Dir['test/unit/**/test*.rb'].each{|f| require f}" || die +} |