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 +4 -4
- data/lib/kindler/version.rb +1 -1
- data/lib/kindler.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12904bca50bbcfbfeeb932d93463a5e99b8267e2
|
4
|
+
data.tar.gz: 1df9a19a14e13dae97c16efa94ea6b9ccf3a7603
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d417b850fb222ab4f3f2cdf935d514526f8e98a32cae7fa9b2f4910f6f45688c2b242c8438f9134ed0529d582e87578e752f13e35bb1f2aaf7a1997a3d7dfa9e
|
7
|
+
data.tar.gz: 8da66566b337ae6fa172c45fecf8f2711d615ca27c5d71d0822df9e563bcb2864a3d75f2f955da11ad49a610f5917989a2aaa3d58646a40d1c4b18db4b859296
|
data/lib/kindler/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|