summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-08-13 09:10:03 +0200
committerHans de Graaff <graaff@gentoo.org>2024-08-13 09:11:32 +0200
commit47118360cefc9e9e34c4121f1b49711c9e5c1e4a (patch)
tree8c9ea93c2a1c80788ffe64d5bc265904d91f8df2 /dev-ruby/faraday-rack
parentsys-fs/erofs-utils: drop 1.6-r1 (diff)
downloadgentoo-47118360cefc9e9e34c4121f1b49711c9e5c1e4a.tar.gz
gentoo-47118360cefc9e9e34c4121f1b49711c9e5c1e4a.tar.bz2
gentoo-47118360cefc9e9e34c4121f1b49711c9e5c1e4a.zip
dev-ruby/faraday-rack: fix tests, add missing test dependency
Limit rack compatibility to rack 3.0 or older. Closes: https://bugs.gentoo.org/937848 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/faraday-rack')
-rw-r--r--dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild b/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild
index e3040b2788d2..f8805bed7eaf 100644
--- a/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild
+++ b/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild
@@ -23,10 +23,15 @@ SLOT="$(ver_cut 1)"
KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~x86"
IUSE="test"
-ruby_add_bdepend "test? ( dev-ruby/faraday:1 >=dev-ruby/rack-test-0.6 dev-ruby/webmock )"
+ruby_add_bdepend "test? (
+ dev-ruby/faraday:1
+ || ( dev-ruby/rack:3.0 dev-ruby/rack:2.2 )
+ >=dev-ruby/rack-test-0.6
+ dev-ruby/webmock
+)"
all_ruby_prepare() {
sed -i -e "s:_relative ':'./:" ${RUBY_FAKEGEM_GEMSPEC} || die
- sed -i -e '2igem "faraday", "~> 1.0"' spec/spec_helper.rb || die
+ sed -i -e '2igem "faraday", "~> 1.0"; gem "rack", "<3.1"' spec/spec_helper.rb || die
}