diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-03-07 22:13:14 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-03-07 22:14:16 +0100 |
commit | 084c5260df96f9d559ca0ab3ffbf91d8c111781b (patch) | |
tree | 90969c6f0a474efe9f30aebe834f4e1e8a97cace /dev-ruby/rspec-core | |
parent | dev-ruby/rspec-mocks: add ruby23 (diff) | |
download | gentoo-084c5260df96f9d559ca0ab3ffbf91d8c111781b.tar.gz gentoo-084c5260df96f9d559ca0ab3ffbf91d8c111781b.tar.bz2 gentoo-084c5260df96f9d559ca0ab3ffbf91d8c111781b.zip |
dev-ruby/rspec-core: add ruby23
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/rspec-core')
-rw-r--r-- | dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild b/dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild index 20ae4ad0468e..7f7893ad531b 100644 --- a/dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild +++ b/dev-ruby/rspec-core/rspec-core-2.99.2-r1.ebuild @@ -3,7 +3,7 @@ # $Id$ EAPI=5 -USE_RUBY="ruby20 ruby21 ruby22" +USE_RUBY="ruby20 ruby21 ruby22 ruby23" RUBY_FAKEGEM_TASK_TEST="none" RUBY_FAKEGEM_TASK_DOC="none" @@ -38,7 +38,7 @@ ruby_add_bdepend "test? ( # Skip yard for ruby21 for now since we don't support ruby21 eselected # yet and we can't bootstrap otherwise. -USE_RUBY=${USE_RUBY/ruby21 ruby22/} ruby_add_bdepend "doc? ( dev-ruby/yard )" +USE_RUBY=${USE_RUBY/ruby21 ruby22 ruby23/} ruby_add_bdepend "doc? ( dev-ruby/yard )" all_ruby_prepare() { # Don't set up bundler: it doesn't understand our setup. @@ -58,10 +58,19 @@ all_ruby_prepare() { # Avoid aruba dependency so that we don't end up in dependency hell. sed -i -e '/aruba/ s:^:#:' -e '/Aruba/,/}/ s:^:#:' spec/spec_helper.rb || die rm spec/command_line/order_spec.rb || die + + # Avoid testing issues with rspec 3 installed + sed -i -e '2igem "rspec", "~> 2.0"' bin/rspec || die } each_ruby_prepare() { sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die + + case ${RUBY} in + *ruby23) + sed -i -e 's/SAFE = 3/SAFE = 1/' spec/support/helper_methods.rb || die + ;; + esac } all_ruby_compile() { |