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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87e2e321819c633aba8e6e83a2b8c35e3e0e70e0a0f5ea8fac404821d95b0980
4
- data.tar.gz: d74f8cf8dd36a5d20596700219272b003785cae0ebc699518109e1ed9e56580c
3
+ metadata.gz: 1a33dec0d91e73ad2393b61d5984893637ddcef30831f645afd6a9fd1ca1b668
4
+ data.tar.gz: d4609fcf521275abf338756c974a7359b2cabcb2055b6dbb49578d25f627c488
5
5
  SHA512:
6
- metadata.gz: 39e75b9575f170db21f8aa6c01594d44e2cd4f990feb118d5fa23171631b15f96402a2d3d7db57071905491754709e5e8157d7958000d8adffd160e7370c64b5
7
- data.tar.gz: 7efb5eeaabc9e9e29ce0728de2c1917d73783797b756487a801ed5fc1b5788b1f49e4348262a6bcaff45309c09cedb1ac41c716f71acb5e923fe121a5363e675
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
@@ -1,3 +1,3 @@
1
1
  module Cheepub
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
@@ -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.11.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: 2018-06-10 00:00:00.000000000 Z
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
- rubyforge_project:
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