kindler 0.3.1 → 0.3.2

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: 54b86a48ecb6126e28883da0626a65d822ecc303
4
- data.tar.gz: 97904a93c1a6cf8e9a66f5d2146ed20aede7eb2b
3
+ metadata.gz: 12904bca50bbcfbfeeb932d93463a5e99b8267e2
4
+ data.tar.gz: 1df9a19a14e13dae97c16efa94ea6b9ccf3a7603
5
5
  SHA512:
6
- metadata.gz: 4a25d4827e83efe983235188582b419ede58e065a5a82d0764f2a1acd623b4cd082b2a366895071ccd35f3dcba9e28d55600c63f47acf85374642b2835689e53
7
- data.tar.gz: 55bfc5fa474e9f1c2dfbf720bf1fab88deb83334be3249d1caf86e6716132633ccfae1859f971af650d8872988744d78aee5cd225121dc5d11203cc186eec78a
6
+ metadata.gz: d417b850fb222ab4f3f2cdf935d514526f8e98a32cae7fa9b2f4910f6f45688c2b242c8438f9134ed0529d582e87578e752f13e35bb1f2aaf7a1997a3d7dfa9e
7
+ data.tar.gz: 8da66566b337ae6fa172c45fecf8f2711d615ca27c5d71d0822df9e563bcb2864a3d75f2f955da11ad49a610f5917989a2aaa3d58646a40d1c4b18db4b859296
@@ -1,3 +1,3 @@
1
1
  module Kindler
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/kindler.rb CHANGED
@@ -34,6 +34,7 @@ module Kindler
34
34
  @author = options[:author] || 'unknown'
35
35
  @mobi_type = options[:mobi_type] || :magzine
36
36
  @cover = options[:cover] || ""
37
+ @silent = options[:silent]
37
38
  @pages = []
38
39
  @local_images = []
39
40
  @pages_by_section = {}
@@ -102,7 +103,7 @@ module Kindler
102
103
  # you can use "sudo brew install " to install it
103
104
  def kindlegen
104
105
  debug 'begin generate mobi'
105
- cmd = "kindleGen #{Shellwords.escape(tmp_dir)}/#{Shellwords.escape(title)}.opf "
106
+ cmd = "kindleGen #{Shellwords.escape(tmp_dir)}/#{Shellwords.escape(title)}.opf #{@silent ? "> /dev/null" : ""}"
106
107
  system(cmd)
107
108
  end
108
109
 
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.1
4
+ version: 0.3.2
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-02 00:00:00.000000000 Z
11
+ date: 2013-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri