From 4956818237342905b7f57238564e1b779ae10e4c Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 26 Jul 2026 11:06:04 +0300 Subject: [PATCH] dev-ruby/propshaft: use bundler to fix tests against minitest-5 Closes: https://bugs.gentoo.org/978868 Signed-off-by: Alfred Wingate Part-of: https://codeberg.org/gentoo/gentoo/pulls/1527 Signed-off-by: Sam James --- dev-ruby/propshaft/propshaft-1.3.1.ebuild | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/dev-ruby/propshaft/propshaft-1.3.1.ebuild b/dev-ruby/propshaft/propshaft-1.3.1.ebuild index c92fb178fd502..4568cfabf5def 100644 --- a/dev-ruby/propshaft/propshaft-1.3.1.ebuild +++ b/dev-ruby/propshaft/propshaft-1.3.1.ebuild @@ -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 }