diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-07-25 11:17:39 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-07-25 12:10:09 +0200 |
commit | 56933590c4f48af9efaa809f07a73743937d1809 (patch) | |
tree | b6bd19b25f74e58db4c85636a735fc0448cb7b86 /dev-ruby/simplecov | |
parent | dev-ruby/autoprefixer-rails: fix test deps (diff) | |
download | gentoo-56933590c4f48af9efaa809f07a73743937d1809.tar.gz gentoo-56933590c4f48af9efaa809f07a73743937d1809.tar.bz2 gentoo-56933590c4f48af9efaa809f07a73743937d1809.zip |
dev-ruby/simplecov: enable ruby30, ruby31
Fix tests for newer minitest versions.
Closes: https://bugs.gentoo.org/835620
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/simplecov')
-rw-r--r-- | dev-ruby/simplecov/simplecov-0.21.2.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-ruby/simplecov/simplecov-0.21.2.ebuild b/dev-ruby/simplecov/simplecov-0.21.2.ebuild index 8dfe63648ed6..dead7a284607 100644 --- a/dev-ruby/simplecov/simplecov-0.21.2.ebuild +++ b/dev-ruby/simplecov/simplecov-0.21.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby26 ruby27" +USE_RUBY="ruby26 ruby27 ruby30 ruby31" RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" @@ -41,6 +41,10 @@ all_ruby_prepare() { sed -i -e '/blocks other processes/askip "gentoo"' spec/result_merger_spec.rb || die sed -i -e '5i require "bundler"' spec/helper.rb || die + + sed -e '/start_coverage_measurement/,/^ end/ s|with(lines: true)|with({lines: true})|' \ + -e '/start_coverage_measurement/,/^ end/ s|with(lines: true, branches: true)|with({lines: true, branches: true})|' \ + -i spec/simplecov_spec.rb || die } each_ruby_test() { |