mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-ruby/minitest-around: add 0.6.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST minitest-around-0.5.0.gem 11776 BLAKE2B 1b1bacc229252e41412380d95e50ad05f918c13d37e7939f96fa19e4254c7f5222482d0f080355e5a900ff8ef89f768cc527c9b1c2644817e4d46842cbf83140 SHA512 8e57d436d39a41c5a08df6006a5cd46f92550844f01f9b6662918b9ba9536b74f6c83fcaea64180c7e025a1a14d4e037e1b17b84ae395a2b745e58f21ba5c752
|
||||
DIST minitest-around-0.6.0.tar.gz 8835 BLAKE2B 9e7f3b68783efbf4f71ff0d4899dee225b57ef185f0f5ffc4648de8e22283052ab6b8c89ec7a5993e0d7b3ce3ac08ef59e066617ddb3fa4a6f7354f3799cb550 SHA512 da5c084e76a8e2d47035bf3e81ec4d9b36a527f5f19175fbaa03b4e6ae9c92c048ad07943408de0a477c3c3c830a8655fca9f5fed442b0050dea2478b974a3ef
|
||||
|
||||
45
dev-ruby/minitest-around/minitest-around-0.6.0.ebuild
Normal file
45
dev-ruby/minitest-around/minitest-around-0.6.0.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby32 ruby33 ruby34"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
RUBY_FAKEGEM_GEMSPEC="minitest-around.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Alternative for setup/teardown dance"
|
||||
HOMEPAGE="https://github.com/splattael/minitest-around"
|
||||
SRC_URI="https://github.com/splattael/minitest-around/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
ruby_add_rdepend "|| ( dev-ruby/minitest:6 dev-ruby/minitest:5 )"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/bundler dev-util/cucumber )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -e '/bump/ s:^:#:' \
|
||||
-e '/ls-files/d' \
|
||||
-i minitest-around.gemspec Rakefile || die
|
||||
sed -e '/bundler/ s:^:#:' \
|
||||
-i test/test_helper.rb Rakefile || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
sed -e "/spawn_test/,/^end/ s:ruby:${RUBY}:" \
|
||||
-i test/around_spec.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
for f in test/*_{test,spec}.rb ; do
|
||||
export RUBYLIB=lib
|
||||
${RUBY} ${f} || die
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user