From 4455f536ca7e1c74e3925349f1fc07203aff5f76 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sat, 1 Apr 2017 08:17:02 +0200 Subject: [PATCH] dev-ruby/sshkit: add 1.13.1 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- dev-ruby/sshkit/Manifest | 1 + dev-ruby/sshkit/sshkit-1.13.1.ebuild | 42 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 dev-ruby/sshkit/sshkit-1.13.1.ebuild diff --git a/dev-ruby/sshkit/Manifest b/dev-ruby/sshkit/Manifest index 27cd3a0583f5a..75591c2e5a9c9 100644 --- a/dev-ruby/sshkit/Manifest +++ b/dev-ruby/sshkit/Manifest @@ -1,3 +1,4 @@ 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 +DIST sshkit-1.13.1.gem 147456 SHA256 6b573369dbca2a0e0591b95e12971fda71eecc0147ad9aa287074224c486e01b SHA512 da262cec2c32978a2f315d97ff174e47fbb131f26cbc06f894b3f3119797cd330c48aae1461176861c862b65504b9811fc492b2e162e9848fd09e62ef5ba8a5a WHIRLPOOL 8c058019c62ce9400dc2dae499655110c02dde8a494168b57cc38f14bac3a16f99c04e83813475d946cfc0688ff826c7f0c15b5479f12699281c88ddd90a002c diff --git a/dev-ruby/sshkit/sshkit-1.13.1.ebuild b/dev-ruby/sshkit/sshkit-1.13.1.ebuild new file mode 100644 index 0000000000000..3a34397f996f4 --- /dev/null +++ b/dev-ruby/sshkit/sshkit-1.13.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +}