dev-ruby/sinatra: fix tests with newer rack
authorHans de Graaff <graaff@gentoo.org>
Sun, 10 May 2020 08:27:05 +0000 (10:27 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 10 May 2020 08:27:19 +0000 (10:27 +0200)
Closes: https://bugs.gentoo.org/721698
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/sinatra/sinatra-2.0.8.1-r1.ebuild

index b365cde14ffdab628b49f96e7763375e2381719c..7021116b670b23d35547d5c80a4974fa664895c2 100644 (file)
@@ -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
+}