lib/attractor/calculator.rb in attractor-0.1.1 vs lib/attractor/calculator.rb in attractor-0.1.2

- old
+ new

@@ -27,11 +27,11 @@ complexity = flogger.total_score Value.new(file_path: change[:file_path], churn: change[:times_changed], complexity: complexity) end end - def self.output_console - values = calculate + def self.output_console(file_prefix: '') + values = calculate(file_prefix: file_prefix) puts values.map(&:to_s) end def self.report(format: 'html', file_prefix: '') @values = calculate(file_prefix: file_prefix)