From 3ebdd16c7b6e192f6bcab818a1818ec14ee7164a Mon Sep 17 00:00:00 2001 From: Jon Dalberg Date: Fri, 31 Jan 2020 08:13:35 -0600 Subject: [PATCH] update for simplecov changes --- lib/simplecov-json.rb | 2 +- simplecov-json.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/simplecov-json.rb b/lib/simplecov-json.rb index e73620c..4214c2f 100644 --- a/lib/simplecov-json.rb +++ b/lib/simplecov-json.rb @@ -13,7 +13,7 @@ class SimpleCov::Formatter::JSONFormatter data[:files] << { filename: sourceFile.filename, covered_percent: sourceFile.covered_percent, - coverage: sourceFile.coverage, + coverage: sourceFile.coverage_data, covered_strength: sourceFile.covered_strength.nan? ? 0.0 : sourceFile.covered_strength, covered_lines: sourceFile.covered_lines.count, lines_of_code: sourceFile.lines_of_code, diff --git a/simplecov-json.gemspec b/simplecov-json.gemspec index bb59a7c..fe92736 100644 --- a/simplecov-json.gemspec +++ b/simplecov-json.gemspec @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__) Gem::Specification.new do |s| s.name = "simplecov-json" - s.version = '0.2' + s.version = '0.2.1' s.platform = Gem::Platform::RUBY s.authors = ["Vicent Llongo"] s.email = ["villosil@gmail.com"]