commit: 56a1f045a02aacf039d9e64b5f7eb094f6cf7399 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Wed Aug 13 09:46:44 2025 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Wed Aug 13 09:47:08 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56a1f045
dev-ruby/naught: enable ruby34 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/naught/naught-1.1.0-r1.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dev-ruby/naught/naught-1.1.0-r1.ebuild b/dev-ruby/naught/naught-1.1.0-r1.ebuild index 38c82ed74117..5f003888e911 100644 --- a/dev-ruby/naught/naught-1.1.0-r1.ebuild +++ b/dev-ruby/naught/naught-1.1.0-r1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33" + +USE_RUBY="ruby32 ruby33 ruby34" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -17,8 +18,13 @@ HOMEPAGE="https://github.com/avdi/naught" LICENSE="MIT" SLOT="5" KEYWORDS="~amd64" -IUSE="" all_ruby_prepare() { sed -i -e '/simplecov/,/^end/ s:^:#:' spec/spec_helper.rb || die + + # Account for different call stack messages in Ruby 3.4. + sed -e '/with/ s/\$/.?$/' \ + -e '/with/ s/from block/block/' \ + -e '/with/ s/from call_method/from.*call_method/' \ + -i spec/pebble_spec.rb || die }
