lib/churn/churn_calculator.rb in churn-0.0.22 vs lib/churn/churn_calculator.rb in churn-0.0.23
- old
+ new
@@ -22,10 +22,10 @@
class ChurnCalculator
# 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 }
+ @minimum_churn_count = options.fetch(:minimum_churn_count) { 5 }.to_i
@ignore_files = (options.fetch(:ignore_files){ "" }).split(',').map(&:strip)
@ignore_files << '/dev/null'
@source_control = set_source_control(start_date)
@changes = {}
@revision_changes = {}