commit:     2ab003050d466afe42884f2a2a7ca881b470be48
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  3 14:54:27 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 07:07:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ab00305

dev-ruby/sinatra: fix tests with rack 3 present

Closes: https://bugs.gentoo.org/892700
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/sinatra/sinatra-2.2.3.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/sinatra/sinatra-2.2.3.ebuild 
b/dev-ruby/sinatra/sinatra-2.2.3.ebuild
index 8267c1ef9643..5b8e56bf3948 100644
--- a/dev-ruby/sinatra/sinatra-2.2.3.ebuild
+++ b/dev-ruby/sinatra/sinatra-2.2.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -30,5 +30,8 @@ ruby_add_bdepend "test? ( >=dev-ruby/rack-test-0.5.6 
dev-ruby/erubis dev-ruby/bu
 ruby_add_bdepend "doc? ( dev-ruby/yard )"
 
 all_ruby_prepare() {
-       sed -i -e '/active_support\/core_ext\/hash/igem "activesupport", "<7"' 
test/helper.rb || die
+       sed -i -e '/active_support\/core_ext\/hash/igem "activesupport", "<7"' 
-e '1igem "rack", "~> 2.2.0"' test/helper.rb || die
+
+       # Avoid spec broken by newer rack versions, already removed upstream.
+       sed -i -e 's/"bytes=IV-LXVI", //' test/static_test.rb || die
 }

Reply via email to