summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-08-13 11:04:19 +0200
committerHans de Graaff <graaff@gentoo.org>2022-08-14 08:24:51 +0200
commita46069169cef89a4c150ae90fae930cc12969c05 (patch)
tree613c00b96f11957a074a74f2f01ef0d1efa5d96a
parentdev-ruby/temple: drop 0.8.2 (diff)
downloadgentoo-a46069169cef89a4c150ae90fae930cc12969c05.tar.gz
gentoo-a46069169cef89a4c150ae90fae930cc12969c05.tar.bz2
gentoo-a46069169cef89a4c150ae90fae930cc12969c05.zip
dev-ruby/childlabor: enable ruby30, ruby31
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild10
1 files changed, 7 insertions, 3 deletions
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
}