Sha256: f0154cdf0c1a6c0151fb5139fd4d3bb6ddebec81f9c5b8da600961f997f5e239
Contents?: true
Size: 500 Bytes
Versions: 6
Compression:
Stored size: 500 Bytes
Contents
module MetricFu FLAY_DIR = File.join(MetricFu::BASE_DIRECTORY, 'flay') def self.generate_flay_report MetricFu::Flay.generate_report(FLAY_DIR) system("open #{FLAY_DIR}/index.html") if open_in_browser? end class Flay < Base::Generator def analyze files_to_flay = MetricFu::CODE_DIRS.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
6 entries across 6 versions & 1 rubygems