commit:     d818ef2f1ae5da51d652261a300e6435d175b07c
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 25 08:07:06 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Aug 25 08:10:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d818ef2f

dev-ruby/actionview: fix tests with ruby31, ruby32

Avoid tests that require the unpackaged prism parser.

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/actionview/actionview-7.2.1.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dev-ruby/actionview/actionview-7.2.1.ebuild 
b/dev-ruby/actionview/actionview-7.2.1.ebuild
index 11e0b65d9f0e..8ff948034e09 100644
--- a/dev-ruby/actionview/actionview-7.2.1.ebuild
+++ b/dev-ruby/actionview/actionview-7.2.1.ebuild
@@ -74,3 +74,14 @@ all_ruby_prepare() {
        sed -e 
'/test_sanitized_allowed_\(tags_class_method\|attributes_class_method\)/askip 
"Removed upstream"' \
                -i test/template/sanitize_helper_test.rb || die
 }
+
+each_ruby_prepare() {
+       # The new prism parser is currently unpackaged and only included with 
ruby33.
+       case ${RUBY} in
+               *ruby31|*ruby32)
+                       sed -e '/prism/ s:^:#:' \
+                               -e '/PrismRubyTrackerTest/,/^end/ s:^:#:' \
+                               -i test/template/dependency_tracker_test.rb || 
die
+                       ;;
+       esac
+}

Reply via email to