dev-ruby/did_you_mean: enable ruby40

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-12-29 17:15:59 +01:00
parent 26384a4c18
commit 3faadb66a7
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
@@ -20,4 +21,11 @@ ruby_add_bdepend "test? ( dev-ruby/minitest:5 dev-ruby/test-unit dev-ruby/test-u
all_ruby_prepare() {
sed -i -e '/bundler/ s:^:#:' Rakefile || die
# Avoid a test that no longer works in ruby40 since ostruct changed status
sed -e '/test_load_error_from_require_has_suggestions/aomit "ostruct changed"' \
-i test/spell_checking/test_require_path_check.rb || die
# Avoid ractor tests that have not been updated for ruby40 yet.
rm -f test/test_ractor_compatibility.rb || die
}