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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60d6fee5962ce242f6969ee0a723b6650a259980
4
- data.tar.gz: d5e707ccd5da62e2a66d9d462390c7065c7c95fa
3
+ metadata.gz: 23ba143eaf4c5b58a7ae8f104390299a2308dd6a
4
+ data.tar.gz: 19ae569be5bf73e2c457e0c73646ea17f3b600ff
5
5
  SHA512:
6
- metadata.gz: 4cdb75e81352a4bd899a14512b34253fd1a7a5980a34da8e82492fa718d671303209617c9d9ab29051117cd5a22a60e34cf0e9d08baa78aa79608ff79fb9aa7e
7
- data.tar.gz: 5eddadea6a9b5da4a6efa45c5c4bfdea2b02a4b5f2d8bc8000f259ec86fc8f62199cd93fedff671a761000e65093554e64c303d72b58f3254eca82cf88429a56
6
+ metadata.gz: 11c914cf9c37074066244d10303ef53c99b5b4c32999d6079d464cba9a95e81b77632d435dd43a65e0620ffbc85d52ed638ae42e1447d1130724cd45cc684943
7
+ data.tar.gz: 1ba7358cf2a4eaa5066f789522291a6aa71df8afdd2cb25a7f7b059ffd3f7568a340cdde411df2b4a46d941c747a075197c585657203eb5a01960d161d8b3ea3
@@ -1,3 +1,3 @@
1
1
  module Kindler
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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.5
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