kindler 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cbe607a78915ed4694db86aebec44e4df52ed67
4
- data.tar.gz: 24225c4c41a29ab3589b7253727913a748d9413e
3
+ metadata.gz: cb1f5a09d4429c9c40b39178811f551f0c082a1d
4
+ data.tar.gz: 93a6b8dc81f33a5c7380bfa51cf152fbbe341862
5
5
  SHA512:
6
- metadata.gz: b77b704a3cfd0ebb3167dcd1b461a79597ef5992b031937318c0e57b9d41fcabf15adc849b0bc631294d2a1e14dd626e9463c3827fb02d52235a8819e482e670
7
- data.tar.gz: c71af00a5c240d48703bef1dec20cc2a485ca7466f13540e3bf6e92a1d1bab3896305782ab1e14e67ea23ce4c3848a268ca6177ea5e8640c993f62316f949e4c
6
+ metadata.gz: d9f5a5f5fbb8bd60408df9f1ba7bda7f11c0280de858a0d36025198a3f04b9eea36a0705b75f5418c8aef85e13be39f52f74cc79addc553bd0899b4149c82538
7
+ data.tar.gz: f708e4372bb77900edaf1f490744854ba1d2b9eda2475e37137d390d0b6a1214c9af39233c14cfb423a517bcde616ae0ad3f5e68ff1ab8d1bd0b9cb28c2520cd
@@ -1,3 +1,3 @@
1
1
  module Kindler
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/kindler.rb CHANGED
@@ -160,7 +160,7 @@ module Kindler
160
160
  # get remote address
161
161
  image_remote_address = img.attr('src')
162
162
  unless image_remote_address.start_with?('http')
163
- image_remote_address = "http://#{URI(page[:url]).host}#{image_remote_address}"
163
+ image_remote_address = URI.join(page[:url], image_remote_address).to_s
164
164
  end
165
165
  # get local address
166
166
  image_data = open(image_remote_address)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - dongbin.li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-08 00:00:00.000000000 Z
11
+ date: 2013-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project: kindler
74
- rubygems_version: 2.0.0
74
+ rubygems_version: 2.0.3
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: kindler is a rubygem allow you to generate kindle mobi book very easily