Refactor .simplecov.

This commit is contained in:
Markus Reiter 2018-06-13 07:17:17 +02:00
parent dee0028d1b
commit c7549f476a

View File

@ -49,10 +49,9 @@ SimpleCov.start do
add_filter %r{^/vendor/} add_filter %r{^/vendor/}
require "rbconfig" require "rbconfig"
add_filter %r{^/os/mac/} unless RbConfig::CONFIG["host_os"].include?("darwin") host_os = RbConfig::CONFIG["host_os"]
unless RbConfig::CONFIG["host_os"].include?("linux") add_filter %r{^/os/mac/} if host_os !~ /darwin/
add_filter %r{^/os/linux/} add_filter %r{^/os/linux/} if host_os !~ /linux/
end
# Add groups and the proper project name to the output. # Add groups and the proper project name to the output.
project_name "Homebrew" project_name "Homebrew"