Sha256: 1844f8b89ab32136a0f15fc59029a20846a17af9035cb2c558d07baa613da19e

Contents?: true

Size: 439 Bytes

Versions: 16

Compression:

Stored size: 439 Bytes

Contents

module MetricFu
  
  def self.generate_flay_report
    Flay.generate_report
    system("open #{Flay.metric_dir}/index.html") if open_in_browser?    
  end
    
  class Flay < Base::Generator

    def analyze
      files_to_flay = MetricFu.flay[:dirs_to_flay].map{|dir| Dir[File.join(dir, "**/*.rb")] }
      output = `flay #{files_to_flay.join(" ")}`
      @matches = output.chomp.split("\n\n").map{|m| m.split("\n  ") }
    end

  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
jscruggs-metric_fu-0.8.9 lib/metric_fu/flay.rb
jscruggs-metric_fu-0.9.0 lib/metric_fu/flay.rb
leh-metric_fu-0.9.2 lib/metric_fu/flay.rb
nielsm-metric_fu-0.9.0 lib/metric_fu/flay.rb
nielsm-metric_fu-0.9.1 lib/metric_fu/flay.rb
p8-metric_fu-0.8.0.16 lib/metric_fu/flay.rb
p8-metric_fu-0.8.4.16 lib/metric_fu/flay.rb
p8-metric_fu-0.8.9.1 lib/metric_fu/flay.rb
p8-metric_fu-0.8.9 lib/metric_fu/flay.rb
p8-metric_fu-0.9.0.2 lib/metric_fu/flay.rb
p8-metric_fu-0.9.0.3 lib/metric_fu/flay.rb
p8-metric_fu-0.9.0.4 lib/metric_fu/flay.rb
p8-metric_fu-0.9.0.5 lib/metric_fu/flay.rb
p8-metric_fu-0.9.0.6 lib/metric_fu/flay.rb
p8-metric_fu-0.9.0.7 lib/metric_fu/flay.rb
p8-metric_fu-0.9.0 lib/metric_fu/flay.rb