summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-02-12 06:48:54 +0100
committerHans de Graaff <graaff@gentoo.org>2017-02-12 06:48:54 +0100
commit81582d54d4aee74e78a9fab6e434404886123685 (patch)
tree20dcbf16a572de88e40f49430706ff25216a4e72 /dev-ruby/sshkit
parentmedia-sound/toolame: remove old (diff)
downloadgentoo-81582d54d4aee74e78a9fab6e434404886123685.tar.gz
gentoo-81582d54d4aee74e78a9fab6e434404886123685.tar.bz2
gentoo-81582d54d4aee74e78a9fab6e434404886123685.zip
dev-ruby/sshkit: add 1.12.0
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-ruby/sshkit')
-rw-r--r--dev-ruby/sshkit/Manifest1
-rw-r--r--dev-ruby/sshkit/sshkit-1.12.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/sshkit/Manifest b/dev-ruby/sshkit/Manifest
index c48a4de2f33..27cd3a0583f 100644
--- a/dev-ruby/sshkit/Manifest
+++ b/dev-ruby/sshkit/Manifest
@@ -1,2 +1,3 @@
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
+DIST sshkit-1.12.0.gem 146944 SHA256 93ae375f5c2e4d8914e6b3d773e19b82c63e5a5682358fb78231e1e3e0308b98 SHA512 62cacc33d80b3727a73cf0756e620dc85e3ec9829762f415089b17759220031be573d12c1fc55a6e585202526b2bdef5e10298d17f5e62f25ab0087697edbaa5 WHIRLPOOL cfb65bebc73bb75ad9b1df3955272640b5412c81dfa2c87a3e75f223c5e64b872cc4ffc5b273ff050024ccaa4ed4ebd5debe22fff2aa45b82f6033606a18b413
diff --git a/dev-ruby/sshkit/sshkit-1.12.0.ebuild b/dev-ruby/sshkit/sshkit-1.12.0.ebuild
new file mode 100644
index 00000000000..67859660c1d
--- /dev/null
+++ b/dev-ruby/sshkit/sshkit-1.12.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="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
+}