commit: e35c09c0d11542c7d3c07054f0f52aa1f15021f8 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Aug 13 07:30:46 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Aug 13 08:40:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e35c09c0
dev-ruby/rest-client: enable ruby32 Avoid test where semantics change between ruby30 and ruby31. Closes: https://bugs.gentoo.org/912008 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild b/dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild index 2dbf738f2748..20f6c12c5218 100644 --- a/dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild +++ b/dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -37,4 +37,8 @@ all_ruby_prepare() { # Fix specs confused by ruby30 keyword arguments sed -i -e 's/with(/with({/' -e '/with/ s/)$/})/' spec/unit/resource_spec.rb || die sed -i -e '508 s/1 => 2/{1 => 2}/' spec/unit/request_spec.rb || die + + # Avoid spec where ruby semantics changed with ruby31 + sed -e '/should reject valid URIs with no hostname/askip "different in ruby30 and ruby31"' \ + -i spec/unit/request_spec.rb || die }
