dev-ruby/propshaft: use bundler to fix tests against minitest-5

Closes: https://bugs.gentoo.org/978868
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1527
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-07-26 11:06:04 +03:00
committed by Sam James
parent 33d23a7d06
commit 4956818237

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -28,11 +28,24 @@ ruby_add_rdepend "
dev-ruby/rack:*
"
ruby_add_bdepend "test? ( >=dev-ruby/rails-7.0.0 )"
ruby_add_bdepend "test? (
dev-ruby/bundler
dev-ruby/minitest:5
>=dev-ruby/rails-7.0.0
)"
all_ruby_prepare() {
rm -f Gemfile.lock || die
sed -i -e '/debug/ s:^:#:' Gemfile || die
sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
cat <<-EOF > "${T}/Gemfile" || die
gem "minitest", "~> 5"
gem "rails", ">= 7.0.0"
EOF
}
each_ruby_test() {
BUNDLE_GEMFILE="${T}/Gemfile" ${RUBY} -S bundle exec ${RUBY} -S rake || die
}