dev-ruby/json: add ruby22
authorHans de Graaff <graaff@gentoo.org>
Mon, 14 Aug 2017 18:54:01 +0000 (20:54 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 14 Aug 2017 19:42:00 +0000 (21:42 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-ruby/json/json-1.8.2-r1.ebuild

index a7de3ac62337909e1a689dff2777a3039049994e..e15a6827e7dba62c2bfa7d9cccf76baefc91381a 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-USE_RUBY="ruby20 ruby21"
+USE_RUBY="ruby21 ruby22"
 
 RUBY_FAKEGEM_TASK_DOC="doc"
 RUBY_FAKEGEM_EXTRADOC="CHANGES TODO README.rdoc README-json-jruby.markdown"
@@ -52,11 +52,11 @@ each_ruby_compile() {
 
 each_ruby_test() {
        JSON=pure \
-       ${RUBY} -Iext:lib -S testrb tests/test_*.rb || die "pure ruby tests failed"
+       ${RUBY} -Iext:lib -S testrb-2 tests/test_*.rb || die "pure ruby tests failed"
 
        if [[ $(basename ${RUBY}) != "jruby" ]]; then
                JSON=ext \
-               ${RUBY} -Iext:lib -S testrb tests/test_*.rb || die "ext ruby tests failed"
+               ${RUBY} -Iext:lib -S testrb-2 tests/test_*.rb || die "ext ruby tests failed"
        fi
 }