diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-08-13 09:30:46 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-08-13 10:40:37 +0200 |
commit | e35c09c0d11542c7d3c07054f0f52aa1f15021f8 (patch) | |
tree | 5455a987637b1e37eecacdb1b308f267bedc7f9c /dev-ruby | |
parent | dev-ruby/rspec-rails: add missing test depenency (diff) | |
download | gentoo-e35c09c0d11542c7d3c07054f0f52aa1f15021f8.tar.gz gentoo-e35c09c0d11542c7d3c07054f0f52aa1f15021f8.tar.bz2 gentoo-e35c09c0d11542c7d3c07054f0f52aa1f15021f8.zip |
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@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rest-client/rest-client-2.1.0-r1.ebuild | 8 |
1 files 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 } |