Sha256: 7b4fab939a8c1d8b6ee020b5cbf3a754cef8c6b4074a84704d7fcd43588b9597
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
MetricFu.metrics_require { 'flay/flay_grapher' } module MetricFu class FlayBluffGrapher < FlayGrapher def graph! content = <<-EOS #{BLUFF_DEFAULT_OPTIONS} g.title = 'Flay: duplication'; g.data('flay', [#{@flay_score.join(',')}]); g.labels = #{MultiJson.dump(@labels)}; g.draw(); EOS File.open(File.join(MetricFu.output_directory, 'flay.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/flay/flay_bluff_grapher.rb |