softcover 1.0.beta9 → 1.0.beta10
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8c02d4e44794f4f4de23dcabe59f7c4f9f13063
|
|
4
|
+
data.tar.gz: 85cb0d39c030e23d4e18990fdf715a472acc5a06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6008e53289f26d1de63abd40fb8cdac9c318763076f57c68df73a4d36518eb685a306454ea6a81b7e521c190e78844bb9aeeca890bf091d95903be33f9cd7ffb
|
|
7
|
+
data.tar.gz: 96b9c4fcb9fc5571a919f35794b7fa6d2db4edf0a2d28a4d91da9884181b38453b5c2d0340087efa99383986329a8eaffede8560efe5a7abc1320c5c2c5e890b
|
|
@@ -89,7 +89,7 @@ module Softcover
|
|
|
89
89
|
url = 'https://github.com/IDPF/epubcheck/releases/'
|
|
90
90
|
url += 'download/v3.0/epubcheck-3.0.zip'
|
|
91
91
|
message = "EpubCheck 3.0 (#{url})\n"
|
|
92
|
-
message += " ∟ Unzip and
|
|
92
|
+
message += " ∟ Unzip and place epubcheck-3.0/ in a directory on your path"
|
|
93
93
|
when :inkscape
|
|
94
94
|
message = "Inkscape (http://inkscape.org/)"
|
|
95
95
|
else
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
/* Custom styles specific to EPUB (and hence MOBI) books */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
font-size:
|
|
5
|
-
|
|
3
|
+
#title_page .title {
|
|
4
|
+
font-size: 200%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
#title_page .author {
|
|
8
|
+
font-size: 120%;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
|
|
11
|
+
#table_of_contents ul li {
|
|
12
|
+
padding-left: 2em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body {
|
|
16
|
+
font-size: 80%;
|
|
17
|
+
}
|
data/lib/softcover/utils.rb
CHANGED
|
@@ -243,8 +243,11 @@ module Softcover::Utils
|
|
|
243
243
|
when :calibre
|
|
244
244
|
get_filename(:'ebook-convert')
|
|
245
245
|
when :epubcheck
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
# Finds EpubCheck anywhere on the path.
|
|
247
|
+
cmd_path = ['epubcheck-3.0', 'epubcheck-3.0.jar']
|
|
248
|
+
possible_paths = ENV['PATH'].split(File::PATH_SEPARATOR).
|
|
249
|
+
collect { |x| File.join(x, cmd_path) }
|
|
250
|
+
possible_paths.select { |f| File.file?(f) }.first
|
|
248
251
|
when :inkscape
|
|
249
252
|
default = '/Applications/Inkscape.app/Contents/Resources/bin/inkscape'
|
|
250
253
|
filename_or_default(:inkscape, default)
|
|
@@ -257,6 +260,7 @@ module Softcover::Utils
|
|
|
257
260
|
`which #{name}`.chomp
|
|
258
261
|
end
|
|
259
262
|
|
|
263
|
+
# Returns the filename if it exists on the path and a default otherwise.
|
|
260
264
|
def filename_or_default(name, default)
|
|
261
265
|
(f = get_filename(name)).empty? ? default : f
|
|
262
266
|
end
|
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.beta10
|
|
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-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: polytexnic
|