commit:     6c6ed2af2e47dc4277c1b514290d1baff5f3c06f
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  4 09:40:25 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Oct  4 09:41:49 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c6ed2af

dev-ruby/globalid: fix tests with rails 7.2

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

 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 e2577102b660..fdb24b55da64 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/activemodel-7.2
+       <dev-ruby/railties-7.2
+)"
 ruby_add_rdepend ">=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
 }

Reply via email to