lib/churn/churn_calculator.rb in churn-0.0.31 vs lib/churn/churn_calculator.rb in churn-0.0.32

- old
+ new

@@ -115,11 +115,11 @@ ChurnCalculator.to_s(to_h[:churn]) end private - def collect_items(collection, match) + def self.collect_items(collection, match) collection.map {|item| (item.delete(match) || {}).merge(item) } end def sort_changes(changes) changes.to_a.sort! {|first,second| second[1] <=> first[1]} @@ -127,15 +127,19 @@ def filters /.*\.rb/ end - def display_array(array, options={}) + def self.display_array(array, options={}) array ? Hirb::Helpers::AutoTable.render(array, options.merge(:description=>false)) + "\n" : '' end - def seperator + def self.seperator "*"*70+"\n" + end + + def seperator + ChurnCalculator.seperator end def self.git? system("git branch") end