summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-12-23 07:27:05 +0100
committerHans de Graaff <graaff@gentoo.org>2017-12-23 07:27:05 +0100
commit959e9071c96a254e02bf8a0f7b80a3388ab10986 (patch)
treebfc474f9edf37b70da57ec919f9a58f5fd4e0b90 /dev-ruby/sshkit
parentdev-ruby/stringex: add 2.8.2 (diff)
downloadgentoo-959e9071c96a254e02bf8a0f7b80a3388ab10986.tar.gz
gentoo-959e9071c96a254e02bf8a0f7b80a3388ab10986.tar.bz2
gentoo-959e9071c96a254e02bf8a0f7b80a3388ab10986.zip
dev-ruby/sshkit: add 1.15.1
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/sshkit')
-rw-r--r--dev-ruby/sshkit/Manifest1
-rw-r--r--dev-ruby/sshkit/sshkit-1.15.1.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/sshkit/Manifest b/dev-ruby/sshkit/Manifest
index f7568f7f366..dc308a925b8 100644
--- a/dev-ruby/sshkit/Manifest
+++ b/dev-ruby/sshkit/Manifest
@@ -1,2 +1,3 @@
DIST sshkit-1.13.1.gem 147456 BLAKE2B e77a88dc5fd09198a5e6def16947a3624fcb70cab8ea6be9ae66be6613d93da47e3c4cb4cb13fbdc7a4c620dd0065e54bb54135b3e44f41883ca2caaf40a5133 SHA512 da262cec2c32978a2f315d97ff174e47fbb131f26cbc06f894b3f3119797cd330c48aae1461176861c862b65504b9811fc492b2e162e9848fd09e62ef5ba8a5a
DIST sshkit-1.14.0.gem 147456 BLAKE2B 0b5c5c157201ace57b3a107a24f08250c3906442eb55a0e698633a6114d643aa81e156dc8c5057c890bc78cf2c4c2ba8a142111c52dcfe5a51e1490df1df2304 SHA512 bb0934dc87e02813e24983aa21b9d508c612d3a84d9efdb342d4f73989e9ebf0177593b468391192223abb3930a1286040d996f4480385f129cf933feaa85d45
+DIST sshkit-1.15.1.gem 147968 BLAKE2B 52bde587de6a358174df6d79df8b8179960811d68ee933655f9df82e20e47481e9f32401276e613d97fc7327fce3891ccc70fe514ab8f5b2a30aff1f640ee139 SHA512 acac745b7ff1cfdd054b683219ca68233e1453430ec0bfc1efc96cb009ad257262c276857d9bc02854a6352a98feda845d728ae63e8b046a09210eebe8661665
diff --git a/dev-ruby/sshkit/sshkit-1.15.1.ebuild b/dev-ruby/sshkit/sshkit-1.15.1.ebuild
new file mode 100644
index 00000000000..db8a197e563
--- /dev/null
+++ b/dev-ruby/sshkit/sshkit-1.15.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="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
+}