commit:     56e0b69c4356969dc23f634f0315a1a02faa9f2f
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 24 10:27:25 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Aug 25 05:20:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e0b69c

dev-ruby/sprockets: fix minitest deprecation

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

 dev-ruby/sprockets/sprockets-3.7.2-r3.ebuild | 4 +++-
 dev-ruby/sprockets/sprockets-4.2.0-r1.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/sprockets/sprockets-3.7.2-r3.ebuild 
b/dev-ruby/sprockets/sprockets-3.7.2-r3.ebuild
index 4e25c58aae5c..0f9f971f3c7b 100644
--- a/dev-ruby/sprockets/sprockets-3.7.2-r3.ebuild
+++ b/dev-ruby/sprockets/sprockets-3.7.2-r3.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+USE_RUBY="ruby30 ruby31"
 
 RUBY_FAKEGEM_TASK_DOC=""
 RUBY_FAKEGEM_EXTRADOC="README.md"
@@ -48,6 +48,8 @@ all_ruby_prepare() {
        sed -i -e '/.ejs/ s:^:#:' test/test_asset.rb || die
        rm -f test/test_require.rb 
test/test_{closure,eco,ejs,yui}_{compressor,processor}.rb || die
        sed -i -e "/bundler/d" Rakefile || die
+
+       sed -i -e 's/MiniTest/Minitest/' test/sprockets_test.rb test/test*.rb 
|| die
 }
 
 each_ruby_prepare() {

diff --git a/dev-ruby/sprockets/sprockets-4.2.0-r1.ebuild 
b/dev-ruby/sprockets/sprockets-4.2.0-r1.ebuild
index 05593fac525a..5d710d2dd7ab 100644
--- a/dev-ruby/sprockets/sprockets-4.2.0-r1.ebuild
+++ b/dev-ruby/sprockets/sprockets-4.2.0-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-USE_RUBY="ruby27 ruby30 ruby31 ruby32"
+USE_RUBY="ruby30 ruby31 ruby32"
 
 RUBY_FAKEGEM_EXTRADOC="README.md"
 
@@ -50,6 +50,8 @@ all_ruby_prepare() {
        # Fails only within Gentoo test environment, not clear why
        sed -i -e '/extension exporters/a skip' test/test_exporting.rb || die
        sed -i -e "/bundler/d" Rakefile || die
+
+       sed -i -e 's/MiniTest/Minitest/' test/sprockets_test.rb test/test*.rb 
|| die
 }
 
 each_ruby_prepare() {

Reply via email to