linkser 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/linkser/objects/html.rb +2 -1
- data/lib/linkser/version.rb +1 -1
- metadata +2 -2
data/lib/linkser/objects/html.rb
CHANGED
@@ -61,6 +61,7 @@ module Linkser
|
|
61
61
|
break if images.length >= max_images
|
62
62
|
img_src = img.get_attribute("src")
|
63
63
|
next unless img_src
|
64
|
+
img_src.strip!
|
64
65
|
img_src = complete_url img_src, last_url
|
65
66
|
img_uri = URI.parse(img_src)
|
66
67
|
img_ext = File.extname(img_uri.path)
|
@@ -106,7 +107,7 @@ module Linkser
|
|
106
107
|
elsif src.index("/")==0
|
107
108
|
base_url + src
|
108
109
|
else
|
109
|
-
relative_url
|
110
|
+
URI.join(relative_url, src).to_s
|
110
111
|
end
|
111
112
|
end
|
112
113
|
|
data/lib/linkser/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|