dev-ruby/yajl-ruby: use correct version of rspec
authorHans de Graaff <graaff@gentoo.org>
Fri, 20 Jul 2018 05:33:13 +0000 (07:33 +0200)
committerHans de Graaff <graaff@gentoo.org>
Fri, 20 Jul 2018 05:33:13 +0000 (07:33 +0200)
Specify the correct version of rspec to be used. Since we need to use a
manual invocation to set RUBYLIB we must also specific the version,
since the default is to use rspec 2.x.

Closes: https://bugs.gentoo.org/635312
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-ruby/yajl-ruby/yajl-ruby-1.3.1.ebuild
dev-ruby/yajl-ruby/yajl-ruby-1.4.0.ebuild

index 3211a411b19f12624e1504b32ebd7ecef9cada8a..778feca9ad5ba9e60ff36324e5d55acea9e363cc 100644 (file)
@@ -41,5 +41,5 @@ each_ruby_compile() {
 each_ruby_test() {
        # Set RUBYLIB to pass search path on to additional interpreters that
        # are started.
-       RUBYLIB=lib ruby-ng_rspec || die
+       RUBYLIB=lib RSPEC_VERSION=3 ruby-ng_rspec || die
 }
index 8c309083d19fc8744aee184d6b8d56688dd68a0d..d9cb6a9d9beb74f2f82f39c30b3a1bc39a2d4a9a 100644 (file)
@@ -41,5 +41,5 @@ each_ruby_compile() {
 each_ruby_test() {
        # Set RUBYLIB to pass search path on to additional interpreters that
        # are started.
-       RUBYLIB=lib ruby-ng_rspec || die
+       RUBYLIB=lib RSPEC_VERSION=3 ruby-ng_rspec || die
 }