commit:     d61ad35d3f90e07ab425d3c0bc9004340f93d81a
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 21 09:27:41 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Jun 21 09:28:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d61ad35d

dev-ruby/roadie-rails: fix test dependencies

All rails versions are tested so we must require them all. Exclude 7.0
since it does not have a rub33 target and it is slated for removal soon
anyway.

Closes: https://bugs.gentoo.org/943719
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild 
b/dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild
index 1d000eabcf3d..404e69dc3d1f 100644
--- a/dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild
+++ b/dev-ruby/roadie-rails/roadie-rails-3.3.0.ebuild
@@ -25,7 +25,7 @@ ruby_add_rdepend "dev-ruby/roadie:5
 ruby_add_bdepend "
        test? (
                dev-ruby/bundler
-               || ( dev-ruby/rails:8.0 dev-ruby/rails:7.2 dev-ruby/rails:7.1 
dev-ruby/rails:7.0 )
+               dev-ruby/rails:8.0 dev-ruby/rails:7.2 dev-ruby/rails:7.1
                dev-ruby/rspec-rails
                dev-ruby/rspec-collection_matchers
                dev-ruby/sass-rails )"
@@ -34,8 +34,9 @@ all_ruby_prepare() {
        sed -i -e '/\(simplecov\|standard\)/ s:^:#:' Gemfile || die
        sed -i -e 's/git ls-files/find * -print/' -e '/standard/ s:^:#:' 
${RUBY_FAKEGEM_GEMSPEC} || die
 
-       # Avoid already removed rails versions and version incompatible with 
our sass-rails version.
-       sed -e '/rails_\(51\|52\|60\)/ s:^:#:' \
+       # Avoid already removed rails versions and version incompatible with
+       # our sass-rails version or not having ruby33 targets.
+       sed -e '/rails_\(51\|52\|60\|70\)/ s:^:#:' \
                -e '/Rails 7.1 with sprockets/ s:^:#:' \
                -i spec/integration_spec.rb || die
 
@@ -54,14 +55,6 @@ all_ruby_prepare() {
 
 each_ruby_prepare() {
        sed -i -e '/run_in_app_context/ s:bin/rails:'${RUBY}' -S bin/rails:' 
spec/support/rails_app.rb || die
-
-       case ${RUBY} in
-               *ruby33)
-                       # Rails 7.0 does not have a ruby33 target so we can't 
test it.
-                       sed -e '/rails_70/ s:^:#:' \
-                               -i spec/integration_spec.rb || die
-                       ;;
-       esac
 }
 
 each_ruby_test() {

Reply via email to