lib/iconoclasm/extractor.rb in iconoclasm-1.0.4 vs lib/iconoclasm/extractor.rb in iconoclasm-1.0.5

- old
+ new

@@ -1,7 +1,7 @@ require 'nokogiri' -require 'uri' +require 'addressable/uri' module Iconoclasm module Extractor def self.included(base) @@ -58,10 +58,10 @@ end }.new) end def base_url_of(url) - uri = URI.parse(url) + uri = Addressable::URI.parse(url) "#{uri.scheme}://#{uri.host}" end def href_of(node, options = {}) href = normal_node_attributes(node)['href'] \ No newline at end of file