Permalink
Browse files

Remove dependency on url

  • Loading branch information...
1 parent 9979958 commit d598ec4678981b28846d6c28a1eaae443285aec9 @juliensobrier committed Dec 14, 2011
Showing with 4 additions and 7 deletions.
  1. +1 −3 Gemfile
  2. +1 −1 VERSION
  3. +2 −3 lib/google-safe-browsing-lookup.rb
View
@@ -1,7 +1,5 @@
source "http://rubygems.org"
-# Add dependencies required to use your google-safe-browsing-lookup.
-
-gem "url", ">= 0"
+# Dependencies required to use your google-safe-browsing-lookup.
# Dependencies to develop google-safe-browsing-lookup.
View
@@ -1 +1 @@
-0.1.0
+0.1.1
@@ -4,12 +4,11 @@
# See README.rdoc for more information about Google Safe Browsing v2 API
# and this library.
#
-# Author:: Julien Sobrier (mailto:jsobrier@browshot.com)
+# Author:: Julien Sobrier (mailto:julien@sobrier.net)
# Copyright:: Copyright (c) 2011 Julien Sobrier
# License:: Distributes under the same terms as Ruby
require 'uri'
-require 'url'
require 'net/https'
class SafeBrowsingLookup
@@ -123,7 +122,7 @@ def canonical(url='')
url = "http://#{url}"
end
- uri = URL.new(url)
+ uri = URI.new(url)
return uri.to_s
end

0 comments on commit d598ec4

Please sign in to comment.