repair variables

This commit is contained in:
hyuraku 2021-04-12 22:43:56 +09:00
parent ee511e4c0c
commit 705995c1c3

View File

@ -22,9 +22,9 @@ SimpleCov.start do
SimpleCov.print_error_status = false SimpleCov.print_error_status = false
end end
excludes = ["test", "vendor"] excludes = ["test", "vendor"]
subdirs = Dir.chdir(SimpleCov.root) { Dir.glob("*") } subdirs = Dir.chdir(SimpleCov.root) { Pathname.glob("*") }
.reject { |d| d.end_with?(".rb") || excludes.include?(d) } .reject { |p| p.extname == ".rb" || excludes.include?(p.to_s) }
.map { |d| "#{d}/**/*.rb" }.join(",") .map { |p| "#{p}/**/*.rb" }.join(",")
files = "#{SimpleCov.root}/{#{subdirs},*.rb}" files = "#{SimpleCov.root}/{#{subdirs},*.rb}"
if ENV["HOMEBREW_INTEGRATION_TEST"] if ENV["HOMEBREW_INTEGRATION_TEST"]