Skip to content

Commit

Permalink
Fixed screwy load order of stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sander6 committed Jun 30, 2010
1 parent 8b7b705 commit b4aaa9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions 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'
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit b4aaa9a

Please sign in to comment.