Sha256: 5ff3b025fa12fe036bff0fd1c0e8f3fed401bd14e07af7a8677b44e32d337fdb
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
MetricFu.metrics_require { 'rcov/rcov_grapher' } module MetricFu class RcovBluffGrapher < RcovGrapher def graph! content = <<-EOS #{BLUFF_DEFAULT_OPTIONS} g.title = 'Rcov: code coverage'; g.data('rcov', [#{@rcov_percent.join(',')}]); g.labels = #{MultiJson.dump(@labels)}; g.draw(); EOS File.open(File.join(MetricFu.output_directory, 'rcov.js'), 'w') {|f| f << content } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metric_fu-4.2.1 | lib/metric_fu/metrics/rcov/rcov_bluff_grapher.rb |