Sha256: 0abfe74ca50f2db182f6a960ee1a80e9f630829cf5801bcb01861e04e5c46472

Contents?: true

Size: 319 Bytes

Versions: 14

Compression:

Stored size: 319 Bytes

Contents

require "json"

module Rubycritic

  module Turbulence
    def self.data(analysed_modules)
      analysed_modules.map do |analysed_module|
        {
          :name => analysed_module.name,
          :x => analysed_module.churn,
          :y => analysed_module.complexity
        }
      end.to_json
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubycritic-2.6.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-2.5.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-2.4.1 lib/rubycritic/generators/html/turbulence.rb
rubycritic-2.4.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-2.3.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-2.2.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-2.1.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-2.0.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-1.4.0 lib/rubycritic/generators/html/turbulence.rb
rubycritic-1.3.0 lib/rubycritic/report_generators/turbulence.rb
rubycritic-1.2.1 lib/rubycritic/report_generators/turbulence.rb
rubycritic-1.2.0 lib/rubycritic/report_generators/turbulence.rb
rubycritic-1.1.1 lib/rubycritic/report_generators/turbulence.rb
rubycritic-1.1.0 lib/rubycritic/report_generators/turbulence.rb