Also ignore git ls-files command with IO.popen style for tmpdir.gemspec and tempfile.gemspec

This commit is contained in:
Hiroshi SHIBATA 2024-02-28 11:08:49 +09:00
parent 3668118572
commit 95e55e9ae4
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -8,6 +8,7 @@ class TestDefaultGems < Test::Unit::TestCase
# - `git ls-files` is useless under ruby's repository
# - `2>/dev/null` works only on Unix-like platforms
code.gsub!(/`git.*?`/, '""')
code.gsub!(/\[git.*?\]/, '[]')
eval(code, binding, file)
end