dev-ruby/rspec-core: add ruby26
authorHans de Graaff <graaff@gentoo.org>
Fri, 18 Jan 2019 11:11:39 +0000 (12:11 +0100)
committerHans de Graaff <graaff@gentoo.org>
Fri, 18 Jan 2019 11:12:25 +0000 (12:12 +0100)
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-ruby/rspec-core/rspec-core-2.99.2-r2.ebuild

index cb87ef52d507bf972f2526f07241594e79f1e28a..c8723b256e89ce1f4b05eda34f7902d15b4ddb2c 100644 (file)
@@ -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
 }