Refactor .simplecov.
This commit is contained in:
parent
dee0028d1b
commit
c7549f476a
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user