commit:     b2c7400c359bea8680026ed5ed28f84c8d537099
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  3 15:12:27 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 07:07:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2c7400c

dev-ruby/warden: fix tests with rack 3 present

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

 dev-ruby/warden/warden-1.2.9-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/warden/warden-1.2.9-r1.ebuild 
b/dev-ruby/warden/warden-1.2.9-r1.ebuild
index 10ac2aa604ad..af1e2f7a33ac 100644
--- a/dev-ruby/warden/warden-1.2.9-r1.ebuild
+++ b/dev-ruby/warden/warden-1.2.9-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -23,6 +23,10 @@ IUSE=""
 
 ruby_add_rdepend ">=dev-ruby/rack-2.0.9:*"
 
+ruby_add_bdepend "test? ( dev-ruby/rack:2.2 )"
+
 all_ruby_prepare() {
        sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} 
|| die
+
+       sed -i -e '1igem "rack", "<3"' spec/spec_helper.rb || die
 }

Reply via email to