Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove dependency on url

  • Loading branch information...
commit d598ec4678981b28846d6c28a1eaae443285aec9 1 parent 9979958
@juliensobrier authored
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
4 Gemfile
@@ -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
2  VERSION
@@ -1 +1 @@
-0.1.0
+0.1.1
View
5 lib/google-safe-browsing-lookup.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.