commit: eeb21a009bb31d39881979975dc9a5fd9b643a0c
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun May 7 09:28:10 2017 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun May 7 09:44:18 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeb21a00
dev-ruby/rspec-its: add ruby24
Package-Manager: Portage-2.3.5, Repoman-2.3.1
dev-ruby/rspec-its/rspec-its-1.2.0-r1.ebuild | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/dev-ruby/rspec-its/rspec-its-1.2.0-r1.ebuild
b/dev-ruby/rspec-its/rspec-its-1.2.0-r1.ebuild
index 695e2213558..45e97645980 100644
--- a/dev-ruby/rspec-its/rspec-its-1.2.0-r1.ebuild
+++ b/dev-ruby/rspec-its/rspec-its-1.2.0-r1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
@@ -20,3 +20,11 @@ KEYWORDS="~alpha amd64 ~arm hppa ~ppc ~ppc64 ~x86"
IUSE=""
ruby_add_rdepend ">=dev-ruby/rspec-core-3.0.0
>=dev-ruby/rspec-expectations-3.0.0"
+
+each_ruby_prepare() {
+ case ${RUBY} in
+ *ruby24)
+ sed -i -e 's/Fixnum/Integer/' spec/rspec/its_spec.rb ||
die
+ ;;
+ esac
+}