From: Hans de Graaff Date: Fri, 18 Jan 2019 11:11:39 +0000 (+0100) Subject: dev-ruby/rspec-core: add ruby26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=576d15d737b7547b6af66fef2cca12546bab804d;p=gentoo.git dev-ruby/rspec-core: add ruby26 Signed-off-by: Hans de Graaff Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- diff --git a/dev-ruby/rspec-core/rspec-core-2.99.2-r2.ebuild b/dev-ruby/rspec-core/rspec-core-2.99.2-r2.ebuild index cb87ef52d507..c8723b256e89 100644 --- a/dev-ruby/rspec-core/rspec-core-2.99.2-r2.ebuild +++ b/dev-ruby/rspec-core/rspec-core-2.99.2-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 -USE_RUBY="ruby22 ruby23 ruby24 ruby25" +USE_RUBY="ruby23 ruby24 ruby25 ruby26" RUBY_FAKEGEM_TASK_TEST="none" RUBY_FAKEGEM_RECIPE_DOC="rdoc" @@ -82,6 +82,15 @@ each_ruby_prepare() { sed -i -e '/is still a private method/,/end/ s:^:#:' spec/rspec/core/memoized_helpers_spec.rb || die sed -i -e '/leaves a raised exception unmodified/,/^ end/ s:^:#:' spec/rspec/core/example_spec.rb || die ;; + *ruby26) + sed -i -e 's/SAFE = 3/SAFE = 0/' spec/support/helper_methods.rb || die + sed -i -e 's/Fixnum: 4/Integer: 4/' spec/rspec/core/memoized_helpers_spec.rb || die + sed -i -e '/warns when HOME env var is not set/,/^ end/ s:^:#:' spec/rspec/core/configuration_options_spec.rb || die + sed -i -e '/with mathn loaded/,/^ end/ s:^:#:' spec/rspec/core/formatters/html_formatter_spec.rb || die + sed -i -e '/with mathn loaded/,/^ end/ s:^:#:' spec/rspec/core/formatters/helpers_spec.rb || die + sed -i -e '/is still a private method/,/end/ s:^:#:' spec/rspec/core/memoized_helpers_spec.rb || die + sed -i -e '/leaves a raised exception unmodified/,/^ end/ s:^:#:' spec/rspec/core/example_spec.rb || die + ;; esac }