Sha256: bcaae6c839d80a2453d301aae44f0cf2341d95de47af5a3a60d260d1146cdaf2
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
MetricFu.metrics_require { 'stats/stats_grapher' } module MetricFu class StatsBluffGrapher < StatsGrapher def graph! content = <<-EOS #{BLUFF_DEFAULT_OPTIONS} g.title = 'Stats: LOC & LOT'; g.data('LOC', [#{@loc_counts.join(',')}]); g.data('LOT', [#{@lot_counts.join(',')}]) g.labels = #{@labels.to_json}; g.draw(); EOS File.open(File.join(MetricFu.output_directory, 'stats.js'), 'w') {|f| f << content } end end end
Version data entries
4 entries across 4 versions & 1 rubygems