commit:     d7f53b8bd642c9fe905e1ba907f7a106544db2b6
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 09:49:06 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 09:49:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7f53b8b

dev-ruby/ruby-oembed: enable ruby30

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/ruby-oembed/ruby-oembed-0.16.1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/ruby-oembed/ruby-oembed-0.16.1.ebuild 
b/dev-ruby/ruby-oembed/ruby-oembed-0.16.1.ebuild
index 70968be2d9c7..2a120aace66d 100644
--- a/dev-ruby/ruby-oembed/ruby-oembed-0.16.1.ebuild
+++ b/dev-ruby/ruby-oembed/ruby-oembed-0.16.1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-USE_RUBY="ruby26 ruby27"
+USE_RUBY="ruby26 ruby27 ruby30"
 
 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 
@@ -38,4 +38,11 @@ all_ruby_prepare() {
        sed -i -e '/coverall/I s:^:#:' spec/spec_helper.rb || die
 
        sed -i -e 's/git ls-files/find * -print/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+       # Fix kwargs expectations for ruby30
+       sed -e '455 s/:format => @default/{format: @default}/' \
+               -e '460 s/:format=>:xml/{format: :xml}/' \
+               -e '465 s/:format=>:json/{format: :json}/' \
+               -e '477 s/:format => @default/{format: @default}/' \
+               -i spec/provider_spec.rb || die
 }

Reply via email to