lib/request_log_analyzer/request.rb in wvanbergen-request-log-analyzer-1.2.3 vs lib/request_log_analyzer/request.rb in wvanbergen-request-log-analyzer-1.2.4
- old
+ new
@@ -143,13 +143,13 @@
def timestamp
first(:timestamp)
end
def first_lineno
- @lines.first[:lineno]
+ @lines.map { |line| line[:lineno] }.reject { |v| v.nil? }.min
end
def last_lineno
- @lines.last[:lineno]
+ @lines.map { |line| line[:lineno] }.reject { |v| v.nil? }.max
end
end
end
\ No newline at end of file