Sha256: bc956566512bc591fa32087c3c135bd478ac65464bc15eee9bf4f9312214c1ce

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

def report_churn()
  require File.join(File.dirname(__FILE__), '..', 'churn', 'churn_calculator')
  Churn::ChurnCalculator.new({:minimum_churn_count => 3}).report
end

desc "Report the current churn for the project"
task :churn do
  report = report_churn()
  puts report
 #  puts "entire report"
#   puts report.inspect.to_s
#   puts "_"*50
#   puts "changed classes: #{report[:churn][:changed_classes].inspect}"
#   puts "_"*50
#   puts "cahnged methods: #{report[:churn][:changed_methods].inspect}"
#   puts "_"*50
#   put
#  s "method churn: #{report[:churn][:method_churn].inspect}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
churn-0.0.2 lib/tasks/churn_tasks.rb