{ : rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:$YARD::CodeObjects::ModuleObject;IC;[o:&YARD::CodeObjects::ConstantObject: @files[[I"Z/Users/marcelofabri/Westfield/danger-simplecov_json/lib/simplecov_json/gem_version.rb:ETi:@current_file_has_commentsF: @name: VERSION:@source_type: ruby:@visibility: public: @tags[:@docstrings{:@docstringIC:YARD::Docstring" ; T: @object@ : @summary0:@hash_flagF:@ref_tags[;[: @allI"; T:@unresolved_reference0:@namespace@: @pathI"SimplecovJson::VERSION; F:@signatureI"VERSION = "0.0.1".freeze; T: @sourceI"VERSION = "0.0.1".freeze; T: @valueI""0.0.1".freeze; T: @dynamicT: @owner@:@class_mixinsIC;[;$@:@instance_mixinsIC;[;$@:@attributesIC:SymbolHash{: classIC;({:@symbolize_valueT: instanceIC;({;*T;*T: @aliases{: @groups[; [[@ i; F;:SimplecovJson;;;;;[;{;IC;" ; T;@;0;F;[;[;I"; T;0;@;I"SimplecovJson; Fo; ;IC;[o:#YARD::CodeObjects::ClassObject;IC;[o:$YARD::CodeObjects::MethodObject:@module_functionF: @scope;+;;;I"0Danger::DangerSimplecovJson#report_coverage; F:@parameters[[I"coverage_path; T0; [[I"U/Users/marcelofabri/Westfield/danger-simplecov_json/lib/simplecov_json/plugin.rb; Ti; T;:report_coverage;;;[;{;IC;"SA method to parse and report code coverage information as a message in Danger. ; T;[;[o:YARD::Tags::Tag :@tag_nameI" return; F: @textI"; T;0: @types[I" void; T;@,;I"dA method to parse and report code coverage information as a message in Danger. @return [void] ; T;0;@,;F:@line_rangeo: Range: exclF: begini:endi;@*; I"'def report_coverage(coverage_path); T:@explicitT;!I"def report_coverage(coverage_path) if File.exist? coverage_path coverage_json = JSON.parse(File.read(coverage_path), symbolize_names: true) metrics = coverage_json[:metrics] percentage = metrics[:covered_percent] lines = metrics[:covered_lines] total_lines = metrics[:total_lines] message("Code coverage is now at #{'%.02f' % percentage}% (#{lines}/#{total_lines} lines)") else fail('Code coverage data not found') end end; T;#To;0;1F;2;);;;I".Danger::DangerSimplecovJson.instance_name; F;3[; [[@3i(; F;:instance_name;;;[;{;IC;" ; T;@B;0;F;[;[;I"; T;0;@*; I"def self.instance_name; T;>T;!I"-def self.instance_name 'simplecov' end; T;#T;$@*;%IC;[;$@*;⁣[;$@*;'IC;({;)IC;({;*T;+IC;({;*T;*T;,{;-[; [[@3i; T;:DangerSimplecovJson;;;;;[;{;IC;"Report your Ruby app test suite code coverage. You can use [simplecov](https://github.com/colszowka/simplecov) to gather code coverage data and a [json formatter](https://github.com/vicentllongo/simplecov-json) so this plugin can parse it. ; T;[;[o;5 ;6I" example; F;7I"9 simplecov.report_coverage('coverage/coverage.json'); T;I"Report code coverage; T;80;@*o;5 ;6I"see; F;70;I"'marcelofabri/danger-simplecov_json; T;80;@*o;5 ;6I" tags; F;7I"#ruby, code-coverage, simplecov; T;0;80;@*;I"Report your Ruby app test suite code coverage. You can use [simplecov](https://github.com/colszowka/simplecov) to gather code coverage data and a [json formatter](https://github.com/vicentllongo/simplecov-json) so this plugin can parse it. @example Report code coverage simplecov.report_coverage('coverage/coverage.json') @see marcelofabri/danger-simplecov_json @tags ruby, code-coverage, simplecov ; T;0;@*;F;9o;:;;F;