summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-02-03 16:12:27 +0100
committerHans de Graaff <graaff@gentoo.org>2023-02-04 08:07:52 +0100
commitb2c7400c359bea8680026ed5ed28f84c8d537099 (patch)
tree789c0b8046640ff96a0387ec5d0565c5522ae415 /dev-ruby
parentdev-ruby/sinatra: fix tests with rack 3 present (diff)
downloadgentoo-b2c7400c359bea8680026ed5ed28f84c8d537099.tar.gz
gentoo-b2c7400c359bea8680026ed5ed28f84c8d537099.tar.bz2
gentoo-b2c7400c359bea8680026ed5ed28f84c8d537099.zip
dev-ruby/warden: fix tests with rack 3 present
Closes: https://bugs.gentoo.org/892702 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/warden/warden-1.2.9-r1.ebuild6
1 files changed, 5 insertions, 1 deletions
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
}