summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-06-16 07:07:52 +0200
committerHans de Graaff <graaff@gentoo.org>2016-06-16 07:07:52 +0200
commit615ff4a6968789482f3cb7bd44542d8a5be7920f (patch)
treecd0a4b0fa26db63e0665370c1729b5af7fa58eca /dev-ruby/sshkit
parentdev-ruby/zentest: add 4.11.1 (diff)
downloadgentoo-615ff4a6968789482f3cb7bd44542d8a5be7920f.tar.gz
gentoo-615ff4a6968789482f3cb7bd44542d8a5be7920f.tar.bz2
gentoo-615ff4a6968789482f3cb7bd44542d8a5be7920f.zip
dev-ruby/sshkit: add 1.11.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/sshkit')
-rw-r--r--dev-ruby/sshkit/Manifest1
-rw-r--r--dev-ruby/sshkit/sshkit-1.11.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/sshkit/Manifest b/dev-ruby/sshkit/Manifest
index 543fdf552127..02f5f2a85134 100644
--- a/dev-ruby/sshkit/Manifest
+++ b/dev-ruby/sshkit/Manifest
@@ -1 +1,2 @@
DIST sshkit-1.10.0.gem 144896 SHA256 52be5c07361644f7ab461e14ffd2455a3ee5a7df01b03428bfa3716c830344a4 SHA512 e89a91acd073ccfc73e15eff5c163273c80ef086bfe97e3df3af7b6ee3ce6b425b2bc4d0031526092cb709ec84a4643d3c8719b1341c5e406455dcac5f9e8c91 WHIRLPOOL eb389dd4103df89d1614826cbca0d6a93bc8f8594a264a0cd5916d4097cded107cb61ac180727f9fbda384d3bc0136d466e81af64ea4bc2ce186cc96969b0fea
+DIST sshkit-1.11.0.gem 144896 SHA256 b3917b9ea28e031652391fd8ec1b95212e1413610bb26f8bba78c44767dea279 SHA512 2c6d1f43e34e69224a202bd3322a4bb9c8b583c36bfe967ce121c97bd2966c24283d1c51264221b312776b8ac1266f24e6cef6eef90cca016614c40ea9d7459d WHIRLPOOL 9dae289df030e1d0a7e299977e0a2b6158b2111a98c86485de31bdffac3699be3a5c02f111115083ca3d22242edadb2496a72cc65326972bcc8002a56464b62c
diff --git a/dev-ruby/sshkit/sshkit-1.11.0.ebuild b/dev-ruby/sshkit/sshkit-1.11.0.ebuild
new file mode 100644
index 000000000000..c8ee20de483f
--- /dev/null
+++ b/dev-ruby/sshkit/sshkit-1.11.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+# There are functional tests that require vagrant boxes to be set up.
+RUBY_FAKEGEM_TASK_TEST="test:units"
+
+RUBY_FAKEGEM_TASK_DOC=""
+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"' 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
+}