dev-ruby/sinatra: fix tests

Use a version of rack-protection that is compatible with rack 2.

Closes: https://bugs.gentoo.org/936281
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2024-07-19 11:55:06 +02:00
parent fb9631c04c
commit c3ed0e6b62

View File

@@ -41,7 +41,7 @@ ruby_add_bdepend "doc? ( dev-ruby/yard )"
all_ruby_prepare() {
sed -i \
-e "/require 'rack'/igem 'rack', '~> 2.2', '>= 2.2.4'" \
-e "/require 'rack'/igem 'rack', '~> 2.2', '>= 2.2.4'; gem 'rack-protection', '~> 3.0'" \
test/test_helper.rb || die
# Avoid spec broken by newer rack versions, already removed upstream.