softcover 1.0.beta10 → 1.0.beta11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8c02d4e44794f4f4de23dcabe59f7c4f9f13063
4
- data.tar.gz: 85cb0d39c030e23d4e18990fdf715a472acc5a06
3
+ metadata.gz: d17e0703914b7f5fdb9f41b6be3683f2ef3f0985
4
+ data.tar.gz: 83144f507d6c6b766eb845bf11be7126cd656514
5
5
  SHA512:
6
- metadata.gz: 6008e53289f26d1de63abd40fb8cdac9c318763076f57c68df73a4d36518eb685a306454ea6a81b7e521c190e78844bb9aeeca890bf091d95903be33f9cd7ffb
7
- data.tar.gz: 96b9c4fcb9fc5571a919f35794b7fa6d2db4edf0a2d28a4d91da9884181b38453b5c2d0340087efa99383986329a8eaffede8560efe5a7abc1320c5c2c5e890b
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
- # It took me forever to figure this out. It really should be
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
- opts += " --cover #{cover_img_path}"
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 += " --share-not-sync"
53
+ opts << "--share-not-sync"
50
54
  end
51
- opts
55
+ opts.join(" ")
52
56
  end
53
57
 
54
58
  def kindlegen
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.0.beta10"
2
+ VERSION = "1.0.beta11"
3
3
  end
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.beta10
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-21 00:00:00.000000000 Z
12
+ date: 2014-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polytexnic