lib/raygun/client.rb in raygun4ruby-1.1.3 vs lib/raygun/client.rb in raygun4ruby-1.1.4

- old
+ new

@@ -47,11 +47,11 @@ # see http://www.ruby-doc.org/core-2.0/Exception.html#method-i-backtrace file_name, line_number, method = line.split(":") { lineNumber: line_number, fileName: file_name, - methodName: method.gsub(/^in `(.*?)'$/, "\\1") + methodName: method ? method.gsub(/^in `(.*?)'$/, "\\1") : "(none)" } end def hostname Socket.gethostname @@ -74,10 +74,10 @@ { hostName: env["SERVER_NAME"], url: env["PATH_INFO"], httpMethod: env["REQUEST_METHOD"], - iPAddress: ip_address_from(env), + iPAddress: "#{ip_address_from(env)}", queryString: Rack::Utils.parse_nested_query(env["QUERY_STRING"]), form: form_data(env), headers: headers(env), rawData: [] }