lib/request_log_analyzer/controller.rb in request-log-analyzer-1.10.1 vs lib/request_log_analyzer/controller.rb in request-log-analyzer-1.11.0
- old
+ new
@@ -19,12 +19,10 @@
# Builds a RequestLogAnalyzer::Controller given parsed command line arguments
# <tt>arguments<tt> A CommandLine::Arguments hash containing parsed commandline parameters.
def self.build_from_arguments(arguments)
- require 'mixins/gets_memory_protection' if arguments[:gets_memory_protection]
-
options = {}
# Copy fields
options[:database] = arguments[:database]
options[:reset_database] = arguments[:reset_database]
@@ -56,10 +54,9 @@
options[:format] = {:apache => arguments[:apache_format]}
end
# Handle output format casing
if options[:output].class == String
- options[:output] = 'FancyHTML' if options[:output] =~ /^fancy_?html$/i
options[:output] = 'HTML' if options[:output] =~ /^html$/i
options[:output] = 'FixedWidth' if options[:output] =~ /^fixed_?width$/i
end
# Register sources