summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-07-26 11:49:06 +0200
committerHans de Graaff <graaff@gentoo.org>2022-07-26 11:49:33 +0200
commitd7f53b8bd642c9fe905e1ba907f7a106544db2b6 (patch)
treeca66038e14c4351e349e1d79b71abf80a09a57f2 /dev-ruby/ruby-oembed
parentdev-ruby/oauth: fix tests (diff)
downloadgentoo-d7f53b8bd642c9fe905e1ba907f7a106544db2b6.tar.gz
gentoo-d7f53b8bd642c9fe905e1ba907f7a106544db2b6.tar.bz2
gentoo-d7f53b8bd642c9fe905e1ba907f7a106544db2b6.zip
dev-ruby/ruby-oembed: enable ruby30
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/ruby-oembed')
-rw-r--r--dev-ruby/ruby-oembed/ruby-oembed-0.16.1.ebuild9
1 files changed, 8 insertions, 1 deletions
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
}