lib/attractor/calculators/js_calculator.rb in attractor-javascript-0.2.0 vs lib/attractor/calculators/js_calculator.rb in attractor-javascript-0.3.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true module Attractor class JsCalculator < BaseCalculator - def initialize(file_prefix: '', ignores: '', minimum_churn_count: 3, start_ago: 365 * 5) - super(file_prefix: file_prefix, ignores: ignores, file_extension: '(js|jsx)', minimum_churn_count: minimum_churn_count, start_ago: start_ago) + def initialize(file_prefix: '', ignores: '', minimum_churn_count: 3, start_ago: 365 * 5, verbose: false) + super(file_prefix: file_prefix, ignores: ignores, file_extension: '(js|jsx)', minimum_churn_count: minimum_churn_count, start_ago: start_ago, verbose: verbose) @type = "JavaScript" end def calculate super do |change|