commit:     cf3ddb4e91c0f1468c0a835b14d84cb996587f28
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 11 05:18:46 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Jul 11 07:47:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf3ddb4e

dev-ruby/patron: fix tests

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

 dev-ruby/patron/patron-0.13.3-r2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/patron/patron-0.13.3-r2.ebuild 
b/dev-ruby/patron/patron-0.13.3-r2.ebuild
index 8eeeee2ce837..2665afcbfd35 100644
--- a/dev-ruby/patron/patron-0.13.3-r2.ebuild
+++ b/dev-ruby/patron/patron-0.13.3-r2.ebuild
@@ -24,7 +24,7 @@ IUSE=""
 DEPEND+=" net-misc/curl"
 RDEPEND+=" net-misc/curl"
 
-ruby_add_bdepend "test? ( dev-ruby/rack www-servers/puma )"
+ruby_add_bdepend "test? ( dev-ruby/rack:2.2 www-servers/puma )"
 
 all_ruby_prepare() {
        # Fix Rakefile
@@ -37,4 +37,7 @@ all_ruby_prepare() {
 
        # Avoid specs with failures. We were not running any specs before.
        rm spec/session_ssl_spec.rb spec/session_spec.rb spec/response_spec.rb 
|| die
+
+       # Ensure a compatible rack version
+       sed -i -e '1igem "rack", "~> 2.2.0"' spec/spec_helper.rb || die
 }

Reply via email to