dev-ruby/rspec-its: add ruby24
authorHans de Graaff <graaff@gentoo.org>
Sun, 7 May 2017 09:28:10 +0000 (11:28 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 7 May 2017 09:44:18 +0000 (11:44 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.1

dev-ruby/rspec-its/rspec-its-1.2.0-r1.ebuild

index 695e22135583ba866f298cc85c2c3bd7cb14420b..45e97645980b16006866802469b981dd97b60277 100644 (file)
@@ -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
+}