Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed screwy load order of stuff

  • Loading branch information...
commit b4aaa9a1a2849da7381bbe1c46d24c6aa5a6fee2 1 parent 8b7b705
@sander6 authored
Showing with 5 additions and 7 deletions.
  1. +4 −6 lib/iconoclasm.rb
  2. +1 −1  lib/iconoclasm/downloader.rb
View
10 lib/iconoclasm.rb
@@ -1,12 +1,6 @@
require 'rubygems'
require 'curb'
-module Iconoclasm
- def self.version
- "1.0.8"
- end
-end
-
$:.unshift(File.dirname(__FILE__))
require 'iconoclasm/downloader'
require 'iconoclasm/errors'
@@ -19,6 +13,10 @@ module Iconoclasm
class << self
include Iconoclasm::Extractor
attr_accessor :timeout
+
+ def version
+ "1.0.9"
+ end
def extract(url, content = nil)
Iconoclasm::Favicon.new(extract_favicon_from(url, content))
View
2  lib/iconoclasm/downloader.rb
@@ -1,7 +1,7 @@
module Iconoclasm
module Downloader
- @@user_agent = %Q{Mozilla/5.0 (compatible; Iconoclasm/#{Iconoclasm.version}; +http://github.com/sander6/iconoclasm)}
+ @@user_agent = %Q{Mozilla/5.0 (compatible; Iconoclasm/1.0; +http://github.com/sander6/iconoclasm)}
def self.user_agent=(agent)
@@user_agent = agent
Please sign in to comment.
Something went wrong with that request. Please try again.