From 694ec977d398e487d467b9a46dca4daaa669d31d Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 31 Mar 2025 18:47:07 +0200 Subject: [PATCH] dev-ruby/maxitest: enable ruby34 Signed-off-by: Hans de Graaff --- dev-ruby/maxitest/maxitest-5.8.0.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dev-ruby/maxitest/maxitest-5.8.0.ebuild b/dev-ruby/maxitest/maxitest-5.8.0.ebuild index d75b6f9f9bd2d..3c7d1639d6dc7 100644 --- a/dev-ruby/maxitest/maxitest-5.8.0.ebuild +++ b/dev-ruby/maxitest/maxitest-5.8.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" +USE_RUBY="ruby31 ruby32 ruby33 ruby34" RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" @@ -44,6 +44,15 @@ each_ruby_prepare() { sed -e '/\(run_cmd\|sh\)/ s:ruby:'${RUBY}':' \ -e '/\(run_cmd\|sh\)/ s:mtest:'${RUBY}' -rmaxitest/version -S bin/mtest:' \ -i spec/maxitest_spec.rb || die + + case ${RUBY} in + *ruby34) + # Avoid test failing due to changed messages in Ruby. + sed -e '/stops on ctrl+c and prints errors/ s/it/xit/' \ + -e '/shows backtraces when in verbose mode/ s/it/xit/' \ + -i spec/maxitest_spec.rb || die + ;; + esac } each_ruby_test() {