dev-ruby/megatest: add 0.4.0

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

View File

@ -1 +1,2 @@
DIST megatest-0.3.0.tar.gz 57003 BLAKE2B 26f10266af79c8ed1aac5ae032ba918dcd3aa06abfa0f8897a65e0f172f8c3dd427b087021f4456cd73334f0e144c2fcae898feaa5fbbba706107d35ca553995 SHA512 5a7e8194f45e2c2509f79b631c990a8882c205f11affc6ebcc6c820c86468759d9e8c677b3bafe88864e51f73f1796ac96e84d241f5715e7eb45377519415473
DIST megatest-0.4.0.tar.gz 57394 BLAKE2B 085ad16b79bf11e5364cca865e21c64d153f94461e676a2e84467266cfa0cd6f34a07b2de491bd1c3d161a9ff182f942dd643a95ead963d0ae9b9bac14be9919 SHA512 9da9f82c03530a4aee4acab4b7a05295004e02c396ca9f12e31c37ce2924983218159f41fdd491ec6c413e703ad7766294650a06b5060bf2e39267ef8a8d0816

View File

@ -0,0 +1,40 @@
# 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_BINDIR="exe"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md TODO.md"
RUBY_FAKEGEM_GEMSPEC="megatest.gemspec"
inherit ruby-fakegem
DESCRIPTION="A test-unit like framework with a focus on usability, designed with CI in mind."
HOMEPAGE="https://github.com/byroot/megatest"
SRC_URI="https://github.com/byroot/megatest/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
all_ruby_prepare() {
sed -e '/\(bundler\|rubocop\)/I s:^:#:' \
-i Rakefile || die
sed -e 's/git ls-files -z/find * -print0/' \
-e 's:_relative ": "./:' \
-e 's/__FILE__/"megatest.gemspec"/' \
-e 's/__dir__/"."/' \
-i ${RUBY_FAKEGEM_GEMSPEC} || die
# Avoid testing redis support for now since it is not packaged yet.
sed -e '/redis_queue/ s:^:#:' \
-i test/test_helper.rb || die
rm -f test/megatest/redis_queue_test.rb test/integration/multi_process_integration_test.rb || die
}
each_ruby_test() {
${RUBY} -I lib exe/megatest test || die
}