lib/request_log_analyzer/controller.rb in request-log-analyzer-1.4.0.1 vs lib/request_log_analyzer/controller.rb in request-log-analyzer-1.4.1

- old
+ new

@@ -29,10 +29,11 @@ # Copy fields options[:database] = arguments[:database] options[:reset_database] = arguments[:reset_database] options[:debug] = arguments[:debug] options[:yaml] = arguments[:dump] + options[:mail] = arguments[:mail] options[:parse_strategy] = arguments[:parse_strategy] options[:no_progress] = arguments[:no_progress] options[:format] = arguments[:format] options[:output] = arguments[:output] options[:file] = arguments[:file] @@ -128,10 +129,10 @@ if options[:file] output_object = %w[File StringIO].include?(options[:file].class.name) ? options[:file] : File.new(options[:file], "w+") output_args = {:width => 80, :color => false, :characters => :ascii, :sort => output_sort, :amount => output_amount } elsif options[:mail] - output_object = RequestLogAnalyzer::Mailer.new(arguments[:mail]) + output_object = RequestLogAnalyzer::Mailer.new(options[:mail]) output_args = {:width => 80, :color => false, :characters => :ascii, :sort => output_sort, :amount => output_amount } else output_object = STDOUT output_args = {:width => options[:report_width].to_i, :color => !options[:boring], :characters => (options[:boring] ? :ascii : :utf), :sort => output_sort, :amount => output_amount }