lib/cli/database_console_init.rb in request-log-analyzer-1.12.4 vs lib/cli/database_console_init.rb in request-log-analyzer-1.12.5
- old
+ new
@@ -28,10 +28,10 @@
inspected_lines = lines.map do |line|
inspect_line = " - #{line.line_type} (line #{line.lineno})"
if (inspect_attributes = line.attributes.reject { |(k, v)| [:id, :source_id, :request_id, :lineno].include?(k.to_sym) }).any?
inspect_attributes = inspect_attributes.map { |(k,v)| "#{k} = #{v.inspect}" }.join(', ')
- inspect_line << "\n " + wordwrap(inspect_attributes, terminal_width - 6, " ")
+ inspect_line << "\n " + wordwrap(inspect_attributes, CommandLine::Tools.terminal_width - 6, " ")
end
inspect_line
end
request_inspect << "\n" << inspected_lines.join("\n") << "\n\n"