lib/request_log_analyzer/aggregator/summarizer.rb in request-log-analyzer-1.8.0 vs lib/request_log_analyzer/aggregator/summarizer.rb in request-log-analyzer-1.8.1
- old
+ new
@@ -30,11 +30,11 @@
# Helper function to initialize a tracker and add it to the tracker array.
# <tt>tracker_class</tt> The class to include
# <tt>optiont</tt> The options to pass to the trackers.
def track(tracker_klass, value_field = {}, other_options = {})
options = value_field.kind_of?(Symbol) ? other_options.merge(:value => value_field) : value_field.merge(other_options)
- tracker_klass = RequestLogAnalyzer::Tracker.const_get(RequestLogAnalyzer::to_camelcase(tracker_klass)) if tracker_klass.kind_of?(Symbol)
+ tracker_klass = RequestLogAnalyzer::Tracker.const_get(RequestLogAnalyzer.to_camelcase(tracker_klass)) if tracker_klass.kind_of?(Symbol)
@trackers << tracker_klass.new(options)
end
end
attr_reader :trackers
@@ -83,10 +83,10 @@
def to_yaml
require 'yaml'
trackers_export = @trackers.inject({}) do |export, tracker|
export[tracker.title] = tracker.to_yaml_object; export
end
- YAML::dump(trackers_export)
+ YAML.dump(trackers_export)
end
# Call report on all trackers.
# <tt>output</tt> RequestLogAnalyzer::Output object to output to
def report(output)