softcover 1.0.beta10 → 1.0.beta11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softcover/builders/mobi.rb +9 -5
- data/lib/softcover/version.rb +1 -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: d17e0703914b7f5fdb9f41b6be3683f2ef3f0985
|
4
|
+
data.tar.gz: 83144f507d6c6b766eb845bf11be7126cd656514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef7ca25506ac26d04ef5b4f16b6776de4f3fa2f0c966b2a931b65991a9712665cfdabdf420271018dded1d54cb7e3cf670e5a4ea90a07e14f20271c9162eee2
|
7
|
+
data.tar.gz: da3568cbd07b71ab1887430180f162484b1e96fa48207ff513b1b0506da76cc53836f00c76a1b2921eef1e576d92e9714d93cf05eefcbb447b3ac72c1a7a1c73
|
@@ -40,15 +40,19 @@ module Softcover
|
|
40
40
|
# Returns the options for the Calibre `ebook-convert` CLI.
|
41
41
|
def calibre_options
|
42
42
|
# Include both Mobipocket & KF8 formats.
|
43
|
-
#
|
43
|
+
# Figuring this out took around two years. It really should be
|
44
44
|
# the Calibre default.
|
45
|
-
opts = "--mobi-file-type both"
|
45
|
+
opts = ["--mobi-file-type both"]
|
46
|
+
# Don't put pagebreaks in the detailed table of contents.
|
47
|
+
opts << "--chapter /"
|
46
48
|
if cover?
|
47
|
-
|
49
|
+
# Add an explicit path to the cover image.
|
50
|
+
# Figuring this out took several days.
|
51
|
+
opts << "--cover #{cover_img_path}"
|
48
52
|
# Get covers to work in Kindle desktop app.
|
49
|
-
opts
|
53
|
+
opts << "--share-not-sync"
|
50
54
|
end
|
51
|
-
opts
|
55
|
+
opts.join(" ")
|
52
56
|
end
|
53
57
|
|
54
58
|
def kindlegen
|
data/lib/softcover/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softcover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.beta11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: polytexnic
|