cheepub 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/cheepub/generator/epub.rb +2 -0
- data/lib/cheepub/version.rb +1 -1
- data/templates/colophon.xhtml.erb +3 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a33dec0d91e73ad2393b61d5984893637ddcef30831f645afd6a9fd1ca1b668
|
4
|
+
data.tar.gz: d4609fcf521275abf338756c974a7359b2cabcb2055b6dbb49578d25f627c488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28de195e17e1c5b34aee3a2777cc3ee681385e17036d10453fcea3a691b03cfdae1cfd7e53c120431a3a8ec852f05850802601a5eb0aad701f16e4b072d32f31
|
7
|
+
data.tar.gz: 2e336f59a7fc49424a5528dc28f024790aafd353f7407477dff7310978c6b62c7cfb84a30ab6bc7f5b367264abec6a7f9c9072785c3219d7fef0bac0a78bf1ee
|
data/README.md
CHANGED
@@ -93,9 +93,18 @@ In a little district west of Washington Square the streets have run crazy and br
|
|
93
93
|
* lastModified: last modified date-time
|
94
94
|
* pageDirection: `ltr` (horizontal) or `rtl` (vertical)
|
95
95
|
* titlepage: add titlepage
|
96
|
+
* colophone: add colophon page
|
97
|
+
* colophone_before, colophone_after: some notes before/after colophon table
|
98
|
+
* (LaTeX) latexCommand: command name of LaTeX (`uplatex` or `lualatex`)
|
99
|
+
* (LaTeX) documentClass: document class and options. (ex. `["jlreq", "tate,book,a4paper,twocolumn,openany"]`)
|
100
|
+
|
96
101
|
|
97
102
|
## History
|
98
103
|
|
104
|
+
### 0.12.0
|
105
|
+
|
106
|
+
- support colophon_(before|after) in EPUB
|
107
|
+
|
99
108
|
### 0.11.0
|
100
109
|
|
101
110
|
- support titlepage in LaTeX
|
@@ -64,6 +64,8 @@ module Cheepub
|
|
64
64
|
def make_colophon(params)
|
65
65
|
if params[:colophon]
|
66
66
|
@colophon = params[:colophon]
|
67
|
+
@colophon_before = params[:colophon_before] || ""
|
68
|
+
@colophon_after = params[:colophon_after] || ""
|
67
69
|
content = apply_template("colophon.xhtml.erb")
|
68
70
|
@book.add_item("colophon.xhtml").add_raw_content(content)
|
69
71
|
end
|
data/lib/cheepub/version.rb
CHANGED
@@ -54,13 +54,16 @@
|
|
54
54
|
</div>
|
55
55
|
<div class="titlepage-title-after"></div>
|
56
56
|
<div class="colophon-table-before">
|
57
|
+
<p><%= @colophon_before.gsub(/\n/m, "<br />") %></p>
|
57
58
|
</div>
|
58
59
|
<table class="colophon-table">
|
59
60
|
<% @colophon.each do |key, val| %>
|
61
|
+
<% val = val.join("<br />") if val.kind_of?(Array) %>
|
60
62
|
<tr><th><%= key %></th><td><%= val %></td></tr>
|
61
63
|
<% end %>
|
62
64
|
</table>
|
63
65
|
<div class="colophon-table-after">
|
66
|
+
<p><%= @colophon_after.gsub(/\n/m, "<br />") %></p>
|
64
67
|
</div>
|
65
68
|
</section>
|
66
69
|
</body>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheepub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takahashim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gepub
|
@@ -294,8 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
294
294
|
- !ruby/object:Gem::Version
|
295
295
|
version: '0'
|
296
296
|
requirements: []
|
297
|
-
|
298
|
-
rubygems_version: 2.7.3
|
297
|
+
rubygems_version: 3.0.2
|
299
298
|
signing_key:
|
300
299
|
specification_version: 4
|
301
300
|
summary: Simple EPUB/PDF generator from Markdown
|