summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-07-19 11:55:06 +0200
committerHans de Graaff <graaff@gentoo.org>2024-07-19 11:55:06 +0200
commitc3ed0e6b624d9e702a101b571cdcadaf5576f26a (patch)
tree7c9c9f6d65a8382ce15936ec20dac973e452150c /dev-ruby/sinatra
parentdev-ruby/sshkit: another fix to avoid a docker dependency (diff)
downloadgentoo-c3ed0e6b624d9e702a101b571cdcadaf5576f26a.tar.gz
gentoo-c3ed0e6b624d9e702a101b571cdcadaf5576f26a.tar.bz2
gentoo-c3ed0e6b624d9e702a101b571cdcadaf5576f26a.zip
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>
Diffstat (limited to 'dev-ruby/sinatra')
-rw-r--r--dev-ruby/sinatra/sinatra-3.2.0.ebuild2
1 files changed, 1 insertions, 1 deletions
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.