From 6c6ed2af2e47dc4277c1b514290d1baff5f3c06f Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Fri, 4 Oct 2024 11:40:25 +0200 Subject: [PATCH] dev-ruby/globalid: fix tests with rails 7.2 Closes: https://bugs.gentoo.org/940742 Signed-off-by: Hans de Graaff --- dev-ruby/globalid/globalid-1.2.1.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-ruby/globalid/globalid-1.2.1.ebuild b/dev-ruby/globalid/globalid-1.2.1.ebuild index e2577102b660f..fdb24b55da643 100644 --- a/dev-ruby/globalid/globalid-1.2.1.ebuild +++ b/dev-ruby/globalid/globalid-1.2.1.ebuild @@ -19,9 +19,17 @@ SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux" IUSE="" -ruby_add_bdepend "test? ( dev-ruby/bundler >=dev-ruby/activemodel-6.1 >=dev-ruby/railties-6.1 )" +ruby_add_bdepend "test? ( + dev-ruby/bundler + =dev-ruby/activesupport-6.1:*" all_ruby_prepare() { rm -f Gemfile.lock || die + + # Ensure a version of rails compatible with the tests. + sed -e '/^gem / s/$/, "<7.2"/' \ + -i Gemfile || die }