asciidoctor-fb2 0.3.0 → 0.3.1

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: 2fe8aeff6fa259f44c96b2adcc9f2f2074e68b918f1dc4ec0d509691b34b67e4
4
- data.tar.gz: 6ca94abe536faeeb639bea944ac21a90b6cabe6de42ad733fe7879148665441d
3
+ metadata.gz: fefb6e896cf8679642198ac1ffe5222916781f71cbb775130bf32eeb00b375b4
4
+ data.tar.gz: 5100ec044994316213786b065115f6214ca4dd29c4f8655fc3a9ffc42726d258
5
5
  SHA512:
6
- metadata.gz: b18f5a752a529d7a13e7beb1cc30c097914d2696a39f1bfdb736a748b16ee2fcf32544a6fa6b5166b8611a524411a812acc4530550e366a19210dab66ac3cdd2
7
- data.tar.gz: 8d6eee70a2a3bbaa328f8f2d9056cf4a25150b0bb6d398323d6ab509cb8a43489171c564492720b21acfda4b52bb0060867d11ad608a76371ba8cbf3565ced2a
6
+ metadata.gz: '099b2149b1dacc1a1239725ce386afdc48ff7429a6aa7e0108af80db0c84630c176ec6adf96090f671c7a51bd1140590d920133ba4de76788e239fe490951317'
7
+ data.tar.gz: 7418059f5dd43b7f77087acac3af70764e80af4dc676be995c9d421edd01dd89008b11926c36151b6832b1c137684236cad3b00a12b6798a5747d23690089c7c
@@ -17,8 +17,7 @@ jobs:
17
17
  test:
18
18
  strategy:
19
19
  matrix:
20
- # ruby: [jruby, 2.4, 2.5, 2.6, 2.7]
21
- ruby: [2.4, 2.5, 2.6, 2.7]
20
+ ruby: [jruby, 2.4, 2.5, 2.6, 2.7]
22
21
  platform: [ubuntu-latest, macos-latest, windows-latest]
23
22
  runs-on: ${{ matrix.platform }}
24
23
  steps:
@@ -1,12 +1,18 @@
1
1
  = {project-name} Changelog
2
2
  :project-name: Asciidoctor FB2
3
3
  :project-handle: asciidoctor-fb2
4
- :slug: slonopotamus/{project-handle}
4
+ :slug: asciidoctor/{project-handle}
5
5
  :uri-project: https://github.com/{slug}
6
6
 
7
7
  This document provides a high-level view of the changes to the {project-name} by release.
8
8
  For a detailed view of what has changed, refer to the {uri-project}/commits/master[commit history] on GitHub.
9
9
 
10
+ == 0.3.1 (2020-11-29) - @slonopotamus
11
+
12
+ * fix crash on `+toc::[]+` macro
13
+ * avoid adding `notes` body to FB2 if document doesn't have any footnotes
14
+ * fix invalid XML syntax for table cells
15
+
10
16
  == 0.3.0 (2020-11-25) - @slonopotamus
11
17
 
12
18
  * output MIME type for FB2 embedded binary files. https://github.com/slonopotamus/asciidoctor-fb2/issues/19[#19]
@@ -2,7 +2,7 @@
2
2
  Marat Radchenko <marat@slonopotamus.org>
3
3
  :project-name: Asciidoctor FB2
4
4
  :project-handle: asciidoctor-fb2
5
- :slug: slonopotamus/{project-handle}
5
+ :slug: asciidoctor/{project-handle}
6
6
  :uri-project: https://github.com/{slug}
7
7
  :uri-ci: {uri-project}/actions?query=branch%3Amaster
8
8
  :uri-gem: https://rubygems.org/gems/{project-handle}
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.authors = ['Marat Radchenko']
9
9
  s.email = ['marat@slonopotamus.org']
10
10
  s.summary = 'Converts AsciiDoc documents to FB2 e-book formats'
11
- s.homepage = 'https://github.com/slonopotamus/asciidoctor-fb2'
11
+ s.homepage = 'https://github.com/asciidoctor/asciidoctor-fb2'
12
12
  s.license = 'MIT'
13
13
  s.required_ruby_version = '>= 2.4.0'
14
14
 
@@ -82,7 +82,7 @@ module Asciidoctor
82
82
  #{node.content}
83
83
  </section>)
84
84
  @book.bodies << FB2rb::Body.new(nil, body)
85
- if node.document.footnotes
85
+ unless node.document.footnotes.empty?
86
86
  notes = []
87
87
  node.document.footnotes.each do |footnote|
88
88
  notes << %(<section id="note-#{footnote.index}">
@@ -115,6 +115,11 @@ module Asciidoctor
115
115
  end
116
116
  end
117
117
 
118
+ # @param _node [Asciidoctor::Block]
119
+ def convert_toc(_node)
120
+ ''
121
+ end
122
+
118
123
  # @param node [Asciidoctor::Block]
119
124
  def convert_paragraph(node)
120
125
  lines = [
@@ -408,7 +413,7 @@ module Asciidoctor
408
413
  ]
409
414
  cell_attrs << %(colspan="#{cell.colspan}") if cell.colspan
410
415
  cell_attrs << %(rowspan="#{cell.rowspan}") if cell.rowspan
411
- lines << %(<#{cell_tag_name} #{cell_attrs * ' '}">#{cell_content}</#{cell_tag_name}>)
416
+ lines << %(<#{cell_tag_name} #{cell_attrs * ' '}>#{cell_content}</#{cell_tag_name}>)
412
417
  end
413
418
  lines << '</tr>'
414
419
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module FB2
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-fb2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marat Radchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-25 00:00:00.000000000 Z
11
+ date: 2020-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -151,7 +151,7 @@ files:
151
151
  - tasks/console.rake
152
152
  - tasks/rspec.rake
153
153
  - tasks/rubocop.rake
154
- homepage: https://github.com/slonopotamus/asciidoctor-fb2
154
+ homepage: https://github.com/asciidoctor/asciidoctor-fb2
155
155
  licenses:
156
156
  - MIT
157
157
  metadata: {}