commit:     aed0892dab3082600f70f4e89067391506f8833d
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 11 08:34:00 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 09:31:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aed0892d

dev-ruby/pathutil: fix tests; add ruby27

Closes: https://bugs.gentoo.org/775383
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/pathutil/pathutil-0.16.2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/pathutil/pathutil-0.16.2.ebuild 
b/dev-ruby/pathutil/pathutil-0.16.2.ebuild
index c2a85052c08..c12850513c7 100644
--- a/dev-ruby/pathutil/pathutil-0.16.2.ebuild
+++ b/dev-ruby/pathutil/pathutil-0.16.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+USE_RUBY="ruby25 ruby26 ruby27"
 
 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
@@ -31,4 +31,7 @@ all_ruby_prepare() {
                -e '1irequire "pathname"; require "tempfile"; require "tmpdir"; 
require "json"' \
                spec/rspec/helper.rb || die
        rm -f spec/support/coverage.rb || die
+
+       # Avoid spec failing with newer rspec versions, bug 775383
+       sed -i -e '/should chdir before running the glob/apending' 
spec/tests/lib/pathutil_spec.rb || die
 }

Reply via email to