lib/iconoclasm/favicon.rb in iconoclasm-1.0.4 vs lib/iconoclasm/favicon.rb in iconoclasm-1.0.5
- old
+ new
@@ -1,8 +1,8 @@
require 'tempfile'
require 'mime/types'
-require 'uri'
+require 'addressable/uri'
module Iconoclasm
class Favicon
include Iconoclasm::Downloader
@@ -90,10 +90,10 @@
dump_data(File.new(path, File::CREAT|File::TRUNC|File::WRONLY))
@save_path = path
end
def parse_name_from(url)
- URI.parse(url).path.split('/').last
+ Addressable::URI.parse(url).path.split('/').last
end
def dump_data(file)
file.write(data)
file.close
\ No newline at end of file