kindler 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kindler/version.rb +1 -1
- data/lib/kindler.rb +1 -1
- data/spec/cases/title_space_spec.rb +1 -0
- metadata +1 -2
- data/conver.gif +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23ba143eaf4c5b58a7ae8f104390299a2308dd6a
|
4
|
+
data.tar.gz: 19ae569be5bf73e2c457e0c73646ea17f3b600ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11c914cf9c37074066244d10303ef53c99b5b4c32999d6079d464cba9a95e81b77632d435dd43a65e0620ffbc85d52ed638ae42e1447d1130724cd45cc684943
|
7
|
+
data.tar.gz: 1ba7358cf2a4eaa5066f789522291a6aa71df8afdd2cb25a7f7b059ffd3f7568a340cdde411df2b4a46d941c747a075197c585657203eb5a01960d161d8b3ea3
|
data/lib/kindler/version.rb
CHANGED
data/lib/kindler.rb
CHANGED
@@ -209,7 +209,7 @@ module Kindler
|
|
209
209
|
if @local_images.length > 0
|
210
210
|
image_file = @local_images.first
|
211
211
|
@cover_image = "#{File.dirname(image_file)}/cover-image.gif"
|
212
|
-
cmd = "convert #{image_file} -compose over -background white -flatten -resize '300x200>' -alpha off #{@cover_image}"
|
212
|
+
cmd = "convert #{Shellwords.escape(image_file)} -compose over -background white -flatten -resize '300x200>' -alpha off #{Shellwords.escape(@cover_image)}"
|
213
213
|
`#{cmd}` rescue ''
|
214
214
|
end
|
215
215
|
end
|
@@ -11,6 +11,7 @@ describe "Mobi book file generator" do
|
|
11
11
|
book = Kindler::Book.new :title=>title,:author=>'mike',:debug=>true
|
12
12
|
book.add_page :title=>'page1',:author=>'mike1',:content=>'this is the page 1',:wrap=>true
|
13
13
|
book.add_page :title=>'page2',:author=>'mike1',:content=>'this is the page 2',:wrap=>true
|
14
|
+
book.add_page :title=>'page3',:author=>'mike1',:content=>'<img src="http://images.fanpop.com/images/image_uploads/widescreen-season-4-wallpaper-lost-661159_1680_1050.jpg"/>this is the page 3',:wrap=>true
|
14
15
|
book.generate
|
15
16
|
book.should be_generated
|
16
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kindler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dongbin.li
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- Guardfile
|
37
37
|
- Rakefile
|
38
38
|
- Readme.md
|
39
|
-
- conver.gif
|
40
39
|
- features/basic.feature
|
41
40
|
- features/dsl.feature
|
42
41
|
- features/step_definitions/basic_step.rb
|
data/conver.gif
DELETED
Binary file
|