lib/churn/churn_calculator.rb in churn-0.0.24 vs lib/churn/churn_calculator.rb in churn-0.0.25
- old
+ new
@@ -23,10 +23,10 @@
# intialized the churn calculator object
def initialize(options={})
start_date = options.fetch(:start_date) { '3 months ago' }
@minimum_churn_count = options.fetch(:minimum_churn_count) { 5 }.to_i
- @ignore_files = (options.fetch(:ignore_files){ "" }).split(',').map(&:strip)
+ @ignore_files = (options.fetch(:ignore_files){ "" }).to_s.split(',').map(&:strip)
@ignore_files << '/dev/null'
@source_control = set_source_control(start_date)
@changes = {}
@revision_changes = {}
@class_changes = {}