dev-ruby/sshkit: add 1.25.0

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-12-13 09:33:41 +01:00
parent fbf62de985
commit 1d702db9ca
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 49 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST sshkit-1.24.0.gem 145920 BLAKE2B 77f57421f081508b6883321a099938a4bb9d7f02ab5e2db045795ff86ac51bf57a5f4be9eeafca3b8d961f089bb19f25657c34b6459f9f4a762ae6d4b6f07579 SHA512 074999525efac34381f5e2396fd38b1dbf18c278aa894d90ad7014b9a0e8c0946b138b32e4f37817052b957379af7d7d29ed103e13cb3951639d5c75ce0395ad
DIST sshkit-1.25.0.gem 145920 BLAKE2B b94baaac61d795240cc0f14b341a9d291a9d3dcc00c7f0f9a3f9c01510129241d7b2597d1c8143af670667fe8144cfa2326d6d30355b696b0d2ef8f28e6d99b8 SHA512 a03ae80aad4bda1090d5143fe864cd96c373b85c59bb25cff80b61e51f15d5ac8e3e0ba0a346fc2b3dcfe6e47cc86be11aa308531a39a182715bcfa705792590

View File

@ -0,0 +1,48 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
# There are functional tests that require docker containers to be set up.
RUBY_FAKEGEM_TASK_TEST="test:units"
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 ~ppc ~ppc64 ~x86"
ruby_add_rdepend "
dev-ruby/base64
dev-ruby/logger
>=dev-ruby/net-ssh-2.8.0:*
>=dev-ruby/net-scp-1.1.2
>=dev-ruby/net-sftp-2.1.2
dev-ruby/ostruct
"
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 -e '/\(unindent\|reporters\)/I s:^:#:' \
-e '/docker/I s:^:#:' \
-e '1irequire "pathname"' \
-i test/helper.rb || die
rm -f test/support/docker_wrapper.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
}