From a46069169cef89a4c150ae90fae930cc12969c05 Mon Sep 17 00:00:00 2001 From: Hans de Graaff <graaff@gentoo.org> Date: Sat, 13 Aug 2022 11:04:19 +0200 Subject: dev-ruby/childlabor: enable ruby30, ruby31 Signed-off-by: Hans de Graaff <graaff@gentoo.org> --- dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dev-ruby') diff --git a/dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild b/dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild index 4763c3f12caf..fbb289f86b30 100644 --- a/dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild +++ b/dev-ruby/childlabor/childlabor-0.0.3-r2.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 ruby31" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_TASK_TEST="" @@ -24,14 +24,18 @@ IUSE="test" RUBY_S="${PN}-${COMMIT_ID}" -ruby_add_bdepend "test? ( dev-ruby/rspec:2 )" +ruby_add_bdepend "test? ( dev-ruby/rspec:3 )" all_ruby_prepare() { # Avoid failing spec. The signals work, but the stdout handling # doesn't seem to play nice with portage. sed -i -e '/can send signals/,/^ end/ s:^:#:' spec/task_spec.rb || die + + # Rspec 3 compatibility + sed -i -e 's/Spec::Runner/RSpec/' spec/spec_helper.rb || die + sed -i -e 's/be_false/be_falsey/ ; s/be_true/be true/' spec/task_spec.rb || die } each_ruby_test() { - ruby-ng_rspec -I. spec/task_spec.rb || die + RSPEC_VERSION=3 ruby-ng_rspec -I. spec/task_spec.rb || die } -- cgit v1.2.3-65-gdbad