diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-08-02 07:35:21 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-08-02 07:35:31 +0200 |
commit | 258c736c584ce2d90f114f5c18214a2357adf083 (patch) | |
tree | 0752213d4fa3c3ca4e9754b669347436a98535f5 /dev-ruby | |
parent | dev-ruby/crack: add rexml dep to gemspec file (diff) | |
download | gentoo-258c736c584ce2d90f114f5c18214a2357adf083.tar.gz gentoo-258c736c584ce2d90f114f5c18214a2357adf083.tar.bz2 gentoo-258c736c584ce2d90f114f5c18214a2357adf083.zip |
dev-ruby/faraday_middleware: enable ruby30
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/faraday_middleware/faraday_middleware-1.2.0.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-ruby/faraday_middleware/faraday_middleware-1.2.0.ebuild b/dev-ruby/faraday_middleware/faraday_middleware-1.2.0.ebuild index b08b6146db7d..ed5fc68e6050 100644 --- a/dev-ruby/faraday_middleware/faraday_middleware-1.2.0.ebuild +++ b/dev-ruby/faraday_middleware/faraday_middleware-1.2.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby26 ruby27" +USE_RUBY="ruby26 ruby27 ruby30" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -46,17 +46,21 @@ ruby_add_bdepend "test? ( all_ruby_prepare() { sed -i -e '/\(cane\|parallel\|rubocop\|simplecov\)/ s:^:#:' \ - -e '/rspec/ s/>=/~>/' \ -e "/addressable/ s/, '< 2.4'//" \ -e "/rack/ s/< 2/< 2.3/" \ -e "/rack-cache/ s/, '< 1.3'//" \ -e "/simple_oauth/ s/, '< 0.3'//" \ + -e "/safe_yaml/ s:^:#:" \ -e "/webmock/ s/2.3/3.0/" Gemfile || die # Avoid unneeded dependency on git sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die sed -i -e '1irequire "fileutils"' spec/spec_helper.rb || die + + # Avoid safe_yaml specs since they are broken with newer ruby versions + # and safe_yaml is not mandatory for using faraday_middleware. + rm -f spec/unit/parse_yaml_spec.rb || die } each_ruby_test() { |