iconoclasm 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/lib/iconoclasm.rb +4 -6
- data/lib/iconoclasm/downloader.rb +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/lib/iconoclasm.rb
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'curb'
|
3
3
|
|
4
|
-
module Iconoclasm
|
5
|
-
def self.version
|
6
|
-
"1.0.8"
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
4
|
$:.unshift(File.dirname(__FILE__))
|
11
5
|
require 'iconoclasm/downloader'
|
12
6
|
require 'iconoclasm/errors'
|
@@ -19,6 +13,10 @@ module Iconoclasm
|
|
19
13
|
class << self
|
20
14
|
include Iconoclasm::Extractor
|
21
15
|
attr_accessor :timeout
|
16
|
+
|
17
|
+
def version
|
18
|
+
"1.0.9"
|
19
|
+
end
|
22
20
|
|
23
21
|
def extract(url, content = nil)
|
24
22
|
Iconoclasm::Favicon.new(extract_favicon_from(url, content))
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Iconoclasm
|
2
2
|
module Downloader
|
3
3
|
|
4
|
-
@@user_agent = %Q{Mozilla/5.0 (compatible; Iconoclasm
|
4
|
+
@@user_agent = %Q{Mozilla/5.0 (compatible; Iconoclasm/1.0; +http://github.com/sander6/iconoclasm)}
|
5
5
|
|
6
6
|
def self.user_agent=(agent)
|
7
7
|
@@user_agent = agent
|