summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-12-17 06:56:15 +0100
committerHans de Graaff <graaff@gentoo.org>2016-12-17 06:56:15 +0100
commit93c6246957f161e2fd9942b5b553ea0e2d34f9c6 (patch)
treeb212377c346d38d7355bbe60261eb3dcab232487 /dev-ruby/sshkit
parentdev-ruby/astrolabe: add ruby23 (diff)
downloadgentoo-93c6246957f161e2fd9942b5b553ea0e2d34f9c6.tar.gz
gentoo-93c6246957f161e2fd9942b5b553ea0e2d34f9c6.tar.bz2
gentoo-93c6246957f161e2fd9942b5b553ea0e2d34f9c6.zip
dev-ruby/sshkit: add 1.11.5
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-ruby/sshkit')
-rw-r--r--dev-ruby/sshkit/Manifest1
-rw-r--r--dev-ruby/sshkit/sshkit-1.11.5.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/sshkit/Manifest b/dev-ruby/sshkit/Manifest
index 92d96d912f1f..c48a4de2f336 100644
--- a/dev-ruby/sshkit/Manifest
+++ b/dev-ruby/sshkit/Manifest
@@ -1 +1,2 @@
DIST sshkit-1.11.4.gem 145408 SHA256 15fb0b96854d3c85b2a81fababfc369505519a144d5c396bf60a41961f5cbbeb SHA512 51b02bffc2232a33678ead346172701229cfefce86ea22bb68bba10d03971e2021e2eb6babb9646159d7b98b01431e69dd37250ea3ec660820ef65b55b8ad634 WHIRLPOOL 57aa83aaf0eac8de448b3e48c208a0e618482320ef384e18448255ebc4988a5d8d7ceea457cbe51bef266247d272690286c7cf38a50573e374019b1e907a8ad9
+DIST sshkit-1.11.5.gem 146432 SHA256 546948e1c33c1fb748455d25967d7dc06d592e59d3408ce04ebbe1950e5430b1 SHA512 a99f2be197038145079b6faeb5eb51f98cfebd43b07e47d6b3a771e4fd34f8f7fcbc0183e19b3ada55ecbd25a1498d63a6e7966c47c8af548a850cd3e9d70d9d WHIRLPOOL 9b91099a40f8c532a1ff1b39c151ef70184c4e2527c1b4fe454800b582ea5599fc2238d87962955b0058f2fd0144b26fb64caf4b84a4f52e6d98ebc1de45b70b
diff --git a/dev-ruby/sshkit/sshkit-1.11.5.ebuild b/dev-ruby/sshkit/sshkit-1.11.5.ebuild
new file mode 100644
index 000000000000..e974374fe1cc
--- /dev/null
+++ b/dev-ruby/sshkit/sshkit-1.11.5.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 ruby23"
+
+# 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"; 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
+}