iconoclasm 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/iconoclasm/extractor.rb +2 -2
- data/lib/iconoclasm/favicon.rb +2 -2
- metadata +13 -4
data/Rakefile
CHANGED
@@ -10,6 +10,7 @@ begin
|
|
10
10
|
gem.email = "sander.hartlage@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/sander6/iconoclasm"
|
12
12
|
gem.authors = ["Sander Hartlage"]
|
13
|
+
gem.add_dependency("addressable")
|
13
14
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
15
|
end
|
15
16
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
data/lib/iconoclasm/extractor.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'nokogiri'
|
2
|
-
require 'uri'
|
2
|
+
require 'addressable/uri'
|
3
3
|
|
4
4
|
module Iconoclasm
|
5
5
|
module Extractor
|
@@ -60,7 +60,7 @@ module Iconoclasm
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def base_url_of(url)
|
63
|
-
uri = URI.parse(url)
|
63
|
+
uri = Addressable::URI.parse(url)
|
64
64
|
"#{uri.scheme}://#{uri.host}"
|
65
65
|
end
|
66
66
|
|
data/lib/iconoclasm/favicon.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'tempfile'
|
2
2
|
require 'mime/types'
|
3
|
-
require 'uri'
|
3
|
+
require 'addressable/uri'
|
4
4
|
|
5
5
|
module Iconoclasm
|
6
6
|
class Favicon
|
@@ -92,7 +92,7 @@ module Iconoclasm
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def parse_name_from(url)
|
95
|
-
URI.parse(url).path.split('/').last
|
95
|
+
Addressable::URI.parse(url).path.split('/').last
|
96
96
|
end
|
97
97
|
|
98
98
|
def dump_data(file)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iconoclasm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sander Hartlage
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-11 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: addressable
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
16
25
|
description: Finds favorites icons for web pages on the world wide internets by checking the HTML head or the standard favicon location. Then, do with them what you will.
|
17
26
|
email: sander.hartlage@gmail.com
|
18
27
|
executables: []
|