From 834836f9cc25d85dadb15063d826c47251d869a9 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 10 May 2020 10:27:05 +0200 Subject: [PATCH] dev-ruby/sinatra: fix tests with newer rack Closes: https://bugs.gentoo.org/721698 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Hans de Graaff --- dev-ruby/sinatra/sinatra-2.0.8.1-r1.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-ruby/sinatra/sinatra-2.0.8.1-r1.ebuild b/dev-ruby/sinatra/sinatra-2.0.8.1-r1.ebuild index b365cde14ffd..7021116b670b 100644 --- a/dev-ruby/sinatra/sinatra-2.0.8.1-r1.ebuild +++ b/dev-ruby/sinatra/sinatra-2.0.8.1-r1.ebuild @@ -23,8 +23,12 @@ IUSE="" ruby_add_rdepend " dev-ruby/mustermann:1 - dev-ruby/rack:2.0 + || ( dev-ruby/rack:2.1 dev-ruby/rack:2.0 ) ~dev-ruby/rack-protection-${PV} dev-ruby/tilt:2" ruby_add_bdepend "test? ( >=dev-ruby/rack-test-0.5.6 dev-ruby/erubis dev-ruby/builder dev-ruby/activesupport )" ruby_add_bdepend "doc? ( dev-ruby/yard )" + +all_ruby_prepare() { + sed -i -e '1igem "rack", "<2.2"' test/helper.rb || die +} -- 2.26.2