lib/request_log_analyzer/request.rb in wvanbergen-request-log-analyzer-1.2.9 vs lib/request_log_analyzer/request.rb in wvanbergen-request-log-analyzer-1.3.0

- old
+ new

@@ -78,15 +78,16 @@ # The line should be provides as a hash of the fields parsed from the line. def add_parsed_line (parsed_line) value_hash = parsed_line[:line_definition].convert_captured_values(parsed_line[:captures], self) value_hash[:line_type] = parsed_line[:line_definition].name value_hash[:lineno] = parsed_line[:lineno] + value_hash[:source] = parsed_line[:source] add_line_hash(value_hash) end def add_line_hash(value_hash) @lines << value_hash - @attributes = value_hash.merge(@attributes) + @attributes = value_hash.merge(@attributes) end def <<(hash) hash[:line_definition] ? add_parsed_line(hash) : add_line_hash(hash) \ No newline at end of file