lib/xcov/model/report.rb in xcov-0.10 vs lib/xcov/model/report.rb in xcov-0.11

- old
+ new

@@ -43,9 +43,16 @@ def markdown_value "#{@targets.map { |target| target.markdown_value }.join("")}\n> Powered by [xcov](https://github.com/nakiostudio/xcov)" end + def json_value + { + "coverage" => @coverage, + "targets" => @targets ? @targets.map{ |target| target.json_value } : [] + } + end + # Class methods def self.map dictionary targets = Report.filter_targets dictionary["targets"]