From a13c11c5b244366636d4c3ef95e1620cdc9c7074 Mon Sep 17 00:00:00 2001 From: Graham Lee Date: Thu, 5 Jan 2012 14:45:42 +0000 Subject: [PATCH] Use `URI#parse` instead of `URI#new`, because the former exists and the latter doesn't. --- lib/google-safe-browsing-lookup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/google-safe-browsing-lookup.rb b/lib/google-safe-browsing-lookup.rb index e7fc5a2..2ba689f 100755 --- a/lib/google-safe-browsing-lookup.rb +++ b/lib/google-safe-browsing-lookup.rb @@ -122,7 +122,7 @@ def canonical(url='') url = "http://#{url}" end - uri = URI.new(url) + uri = URI.parse(url) return uri.to_s end