Merge pull request #12888 from Homebrew/dependabot/bundler/Library/Homebrew/simplecov_json_formatter-0.1.4
build(deps): bump simplecov_json_formatter from 0.1.3 to 0.1.4 in /Library/Homebrew
This commit is contained in:
commit
fb18083398
@ -156,7 +156,7 @@ GEM
|
|||||||
rexml
|
rexml
|
||||||
simplecov (~> 0.19)
|
simplecov (~> 0.19)
|
||||||
simplecov-html (0.12.3)
|
simplecov-html (0.12.3)
|
||||||
simplecov_json_formatter (0.1.3)
|
simplecov_json_formatter (0.1.4)
|
||||||
sorbet (0.5.9644)
|
sorbet (0.5.9644)
|
||||||
sorbet-static (= 0.5.9644)
|
sorbet-static (= 0.5.9644)
|
||||||
sorbet-runtime (0.5.9644)
|
sorbet-runtime (0.5.9644)
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
|
# typed: true
|
||||||
|
|
||||||
# DO NOT EDIT MANUALLY
|
# DO NOT EDIT MANUALLY
|
||||||
# This is an autogenerated file for types exported from the `simplecov_json_formatter` gem.
|
# This is an autogenerated file for types exported from the `simplecov_json_formatter` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`.
|
# Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`.
|
||||||
|
|
||||||
# typed: true
|
|
||||||
|
|
||||||
module SimpleCov
|
module SimpleCov
|
||||||
extend ::SimpleCov::Configuration
|
extend ::SimpleCov::Configuration
|
||||||
|
|
||||||
@ -93,6 +93,8 @@ class SimpleCovJSONFormatter::ResultHashFormatter
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def format_files; end
|
||||||
|
def format_groups; end
|
||||||
def format_source_file(source_file); end
|
def format_source_file(source_file); end
|
||||||
def formatted_result; end
|
def formatted_result; end
|
||||||
end
|
end
|
||||||
@ -91,7 +91,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.8.0/l
|
|||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.6.7/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.6.7/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-3.0.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-3.0.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-html-0.12.3/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-html-0.12.3/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov_json_formatter-0.1.3/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov_json_formatter-0.1.4/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-0.21.2/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-0.21.2/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-cobertura-2.1.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/simplecov-cobertura-2.1.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-static-0.5.9644-universal-darwin-14/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-static-0.5.9644-universal-darwin-14/lib"
|
||||||
|
|||||||
@ -9,22 +9,38 @@ module SimpleCovJSONFormatter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def format
|
def format
|
||||||
@result.files.each do |source_file|
|
format_files
|
||||||
formatted_result[:coverage][source_file.filename] =
|
format_groups
|
||||||
format_source_file(source_file)
|
|
||||||
end
|
|
||||||
|
|
||||||
formatted_result
|
formatted_result
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def format_files
|
||||||
|
@result.files.each do |source_file|
|
||||||
|
formatted_result[:coverage][source_file.filename] =
|
||||||
|
format_source_file(source_file)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def format_groups
|
||||||
|
@result.groups.each do |name, file_list|
|
||||||
|
formatted_result[:groups][name] = {
|
||||||
|
lines: {
|
||||||
|
covered_percent: file_list.covered_percent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def formatted_result
|
def formatted_result
|
||||||
@formatted_result ||= {
|
@formatted_result ||= {
|
||||||
meta: {
|
meta: {
|
||||||
simplecov_version: SimpleCov::VERSION
|
simplecov_version: SimpleCov::VERSION
|
||||||
},
|
},
|
||||||
coverage: {}
|
coverage: {},
|
||||||
|
groups: {}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module SimpleCovJSONFormatter
|
module SimpleCovJSONFormatter
|
||||||
VERSION = '0.1.3'
|
VERSION = '0.1.4'
|
||||||
end
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user