Sha256: f5b758f1ccdcad1dde5db1571dd2b1d4d6f5cc19949fc5652d7f12e28279601d
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
require "json" module Rubycritic class Turbulence def initialize(analysed_files) @analysed_files = analysed_files end def data @analysed_files.map do |analysed_file| { :name => analysed_file.pathname, :x => analysed_file.churn, :y => analysed_file.complexity } end.to_json end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.14 | lib/rubycritic/turbulence.rb |
rubycritic-0.0.13 | lib/rubycritic/turbulence.rb |