linkser 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 + src
110
+ URI.join(relative_url, src).to_s
110
111
  end
111
112
  end
112
113
 
@@ -1,3 +1,3 @@
1
1
  module Linkser
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
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.13
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: 2012-11-27 00:00:00.000000000 Z
12
+ date: 2013-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake