Diff minitest-around-0.5.0-r1 with a minitest-around-0.6.0
| /usr/portage/dev-ruby/minitest-around/minitest-around-0.6.0.ebuild 2026-01-01 10:18:04.788921193 +0300 | ||
|---|---|---|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 |
USE_RUBY="ruby31 ruby32 ruby33 ruby34" |
|
| 5 | ||
| 6 |
USE_RUBY="ruby32 ruby33 ruby34" |
|
| 6 | 7 | |
| 7 | 8 |
RUBY_FAKEGEM_TASK_DOC="" |
| 8 | 9 |
RUBY_FAKEGEM_EXTRADOC="README.md" |
| 10 |
RUBY_FAKEGEM_GEMSPEC="minitest-around.gemspec" |
|
| 9 | 11 | |
| 10 | 12 |
inherit ruby-fakegem |
| 11 | 13 | |
| 12 | 14 |
DESCRIPTION="Alternative for setup/teardown dance" |
| 13 | 15 |
HOMEPAGE="https://github.com/splattael/minitest-around" |
| 16 |
SRC_URI="https://github.com/splattael/minitest-around/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
| 14 | 17 | |
| 15 | 18 |
LICENSE="MIT" |
| 16 | 19 |
SLOT="0" |
| 17 |
KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~sparc x86" |
|
| 20 |
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" |
|
| 18 | 21 |
IUSE="test" |
| 19 | 22 | |
| 20 |
ruby_add_rdepend "dev-ruby/minitest:5" |
|
| 23 |
ruby_add_rdepend "|| ( dev-ruby/minitest:6 dev-ruby/minitest:5 )" |
|
| 21 | 24 | |
| 22 | 25 |
ruby_add_bdepend "test? ( dev-ruby/bundler dev-util/cucumber )" |
| 23 | 26 | |
| 24 | 27 |
all_ruby_prepare() {
|
| 25 |
sed -i -e '/bump/ s:^:#:' \ |
|
| 28 |
sed -e '/bump/ s:^:#:' \ |
|
| 26 | 29 |
-e '/ls-files/d' \ |
| 27 |
-e '/cucumber/ s/,.*$//' minitest-around.gemspec Rakefile || die |
|
| 30 |
-i minitest-around.gemspec Rakefile || die |
|
| 28 | 31 |
sed -e '/bundler/ s:^:#:' \ |
| 29 |
-i test/helper.rb Rakefile || die |
|
| 32 |
-i test/test_helper.rb Rakefile || die |
|
| 30 | 33 |
} |
| 31 | 34 | |
| 32 | 35 |
each_ruby_prepare() {
|
| ... | ... | |
| 37 | 40 |
each_ruby_test() {
|
| 38 | 41 |
for f in test/*_{test,spec}.rb ; do
|
| 39 | 42 |
export RUBYLIB=lib |
| 40 |
${RUBY} -S rake test:isolated TEST="${f}" || die
|
|
| 43 |
${RUBY} ${f} || die
|
|
| 41 | 44 |
done |
| 42 | 45 |
} |