commit:     5a32cf169e4c84dfde402089523e09f60e494aa1
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 27 05:51:15 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Mar 27 07:13:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a32cf16

dev-ruby/io-wait: enable ruby31, fix test setup

Closes: https://bugs.gentoo.org/833262
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/io-wait/io-wait-0.2.1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/io-wait/io-wait-0.2.1.ebuild 
b/dev-ruby/io-wait/io-wait-0.2.1.ebuild
index 9a4ccbcf463c..4def09c942da 100644
--- a/dev-ruby/io-wait/io-wait-0.2.1.ebuild
+++ b/dev-ruby/io-wait/io-wait-0.2.1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-USE_RUBY="ruby26 ruby27 ruby30"
+USE_RUBY="ruby26 ruby27 ruby30 ruby31"
 
 RUBY_FAKEGEM_BINWRAP=""
 RUBY_FAKEGEM_EXTENSIONS="ext/io/wait/extconf.rb"
@@ -26,3 +26,7 @@ all_ruby_prepare() {
                -i ${RUBY_FAKEGEM_GEMSPEC} || die
        sed -e '/task :test/ s:^:#:' -i Rakefile || die
 }
+
+each_ruby_test() {
+       ${RUBY} -Ilib:.:test:test/lib -rhelper -e 
'Dir["test/**/test_*.rb"].each{|f| require f}' || die
+}

Reply via email to