diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 628365788a..11235afd3e 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -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/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_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-cobertura-2.1.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-static-0.5.9644-universal-darwin-14/lib" diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/result_exporter.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/result_exporter.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/result_exporter.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/result_exporter.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/result_hash_formatter.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/result_hash_formatter.rb similarity index 68% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/result_hash_formatter.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/result_hash_formatter.rb index 9dfe47da24..e9c8fc8ae4 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/result_hash_formatter.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/result_hash_formatter.rb @@ -9,22 +9,38 @@ module SimpleCovJSONFormatter end def format - @result.files.each do |source_file| - formatted_result[:coverage][source_file.filename] = - format_source_file(source_file) - end + format_files + format_groups formatted_result end 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 @formatted_result ||= { meta: { simplecov_version: SimpleCov::VERSION }, - coverage: {} + coverage: {}, + groups: {} } end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/source_file_formatter.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/source_file_formatter.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/source_file_formatter.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/source_file_formatter.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/version.rb similarity index 76% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/version.rb index 7345fb721f..ef8fadce94 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.3/lib/simplecov_json_formatter/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib/simplecov_json_formatter/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module SimpleCovJSONFormatter - VERSION = '0.1.3' + VERSION = '0.1.4' end