Skip to content

Commit

Permalink
dev-ruby/rspec-mocks: add ruby25
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.24, Repoman-2.3.6
  • Loading branch information
graaff committed Mar 24, 2018
1 parent 3907f1e commit e2a3718
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions dev-ruby/rspec-mocks/rspec-mocks-2.99.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=5
USE_RUBY="ruby21 ruby22 ruby23 ruby24"
USE_RUBY="ruby22 ruby23 ruby24 ruby25"

RUBY_FAKEGEM_RECIPE_TEST="rspec"

Expand Down Expand Up @@ -39,13 +39,9 @@ all_ruby_prepare() {

# Avoid a weird, and failing, test testing already installed code.
sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/mocks_spec.rb || die
}

each_ruby_prepare() {
case ${RUBY} in
*ruby22|*ruby23|*ruby24)
# Psych and Syck are not supported by default anymore on ruby22.
rm spec/rspec/mocks/serialization_spec.rb || die
;;
esac
# Psych and Syck are not supported by default anymore on ruby22.
rm spec/rspec/mocks/serialization_spec.rb || die

sed -i -e '/does not affect the ability to access the top-level constant/,/end/ s:^:#:' spec/rspec/mocks/mutate_const_spec.rb || die
}

0 comments on commit e2a3718

Please sign in to comment.