diff options
-rw-r--r-- | dev-ruby/rspec-core/rspec-core-2.99.2-r2.ebuild | 13 |
1 files changed, 11 insertions, 2 deletions
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 } |