module Seethe
Constants
- RELEASE_DATE
- VERSION
Public Class Methods
chdir(path = ".")
click to toggle source
# File lib/seethe.rb, line 13 def chdir(path = ".") Dir.chdir(File.expand_path(path)) end
complect(path, flog_cutoff, churn_cutoff)
click to toggle source
# File lib/seethe.rb, line 21 def complect(path, flog_cutoff, churn_cutoff) complexity = Seethe::Complexity.new(path, flog_cutoff).process churn = Seethe::Churn.new(complexity.keys, churn_cutoff).process matches = complexity.inject({}) do |memo, (k,v)| memo[k] = { churn: churn[k], complexity: v } if churn.has_key? k memo end end
glob_directory(path)
click to toggle source
# File lib/seethe.rb, line 17 def glob_directory(path) Dir.glob(File.join(path, "**/*.*rb")) end
inspect()
click to toggle source
# File lib/seethe.rb, line 9 def inspect "Seethe #{Seethe::VERSION} on #{Seethe::RELEASE_DATE}" end
report(path, flog_cutoff, churn_cutoff)
click to toggle source
# File lib/seethe.rb, line 30 def report(path, flog_cutoff, churn_cutoff) complect(path, flog_cutoff, churn_cutoff).each do |k,v| puts "#{k}\t#{v}" end end