commit:     c3ed0e6b624d9e702a101b571cdcadaf5576f26a
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 19 09:55:06 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Jul 19 09:55:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ed0e6b

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 <AT> gentoo.org>

 dev-ruby/sinatra/sinatra-3.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-ruby/sinatra/sinatra-3.2.0.ebuild 
b/dev-ruby/sinatra/sinatra-3.2.0.ebuild
index 18d3b924a1fb..714a00ef501c 100644
--- a/dev-ruby/sinatra/sinatra-3.2.0.ebuild
+++ b/dev-ruby/sinatra/sinatra-3.2.0.ebuild
@@ -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.

Reply via email to