asciidoctor-epub3 1.5.0.alpha.14 → 1.5.0.alpha.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +49 -0
- data/Gemfile +1 -9
- data/LICENSE +21 -0
- data/README.adoc +44 -25
- data/asciidoctor-epub3.gemspec +7 -2
- data/data/styles/color-palette.css +7 -10
- data/data/styles/epub3-css3-only.css +1 -56
- data/data/styles/epub3.css +87 -81
- data/lib/asciidoctor-epub3/converter.rb +438 -185
- data/lib/asciidoctor-epub3/ext/asciidoctor.rb +1 -0
- data/lib/asciidoctor-epub3/ext/asciidoctor/document.rb +19 -0
- data/lib/asciidoctor-epub3/version.rb +1 -1
- metadata +77 -7
- data/.yardopts +0 -12
- data/LICENSE.adoc +0 -25
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Asciidoctor::Document
|
4
|
+
class << self
|
5
|
+
def supports_syntax_highlighter?
|
6
|
+
if @supports_syntax_highlighter.nil?
|
7
|
+
# Asciidoctor only got pluggable syntax highlighters since 2.0:
|
8
|
+
# https://github.com/asciidoctor/asciidoctor/commit/23ddbaed6818025cbe74365fec7e8101f34eadca
|
9
|
+
@supports_syntax_highlighter = method_defined? :syntax_highlighter
|
10
|
+
end
|
11
|
+
|
12
|
+
@supports_syntax_highlighter
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def syntax_highlighter
|
17
|
+
nil
|
18
|
+
end unless supports_syntax_highlighter?
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-epub3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.alpha.
|
4
|
+
version: 1.5.0.alpha.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Allen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: asciidoctor-diagram
|
@@ -31,6 +31,48 @@ dependencies:
|
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.0.0
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: asciimath
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
type: :development
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: coderay
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.1.0
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.1.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: pygments.rb
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.2.0
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.2.0
|
34
76
|
- !ruby/object:Gem::Dependency
|
35
77
|
name: rake
|
36
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,6 +87,20 @@ dependencies:
|
|
45
87
|
- - "~>"
|
46
88
|
- !ruby/object:Gem::Version
|
47
89
|
version: 13.0.0
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rouge
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
48
104
|
- !ruby/object:Gem::Dependency
|
49
105
|
name: rspec
|
50
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,14 +121,14 @@ dependencies:
|
|
65
121
|
requirements:
|
66
122
|
- - "~>"
|
67
123
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
124
|
+
version: 0.81.0
|
69
125
|
type: :development
|
70
126
|
prerelease: false
|
71
127
|
version_requirements: !ruby/object:Gem::Requirement
|
72
128
|
requirements:
|
73
129
|
- - "~>"
|
74
130
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
131
|
+
version: 0.81.0
|
76
132
|
- !ruby/object:Gem::Dependency
|
77
133
|
name: rubocop-rspec
|
78
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,6 +177,20 @@ dependencies:
|
|
121
177
|
- - "~>"
|
122
178
|
- !ruby/object:Gem::Version
|
123
179
|
version: 1.0.0
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: mime-types
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '3.0'
|
187
|
+
type: :runtime
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '3.0'
|
124
194
|
description: 'An extension for Asciidoctor that converts AsciiDoc documents to EPUB3
|
125
195
|
and KF8/MOBI (Kindle) e-book archives.
|
126
196
|
|
@@ -132,10 +202,9 @@ executables:
|
|
132
202
|
extensions: []
|
133
203
|
extra_rdoc_files: []
|
134
204
|
files:
|
135
|
-
- ".yardopts"
|
136
205
|
- CHANGELOG.adoc
|
137
206
|
- Gemfile
|
138
|
-
- LICENSE
|
207
|
+
- LICENSE
|
139
208
|
- NOTICE.adoc
|
140
209
|
- README.adoc
|
141
210
|
- Rakefile
|
@@ -193,6 +262,7 @@ files:
|
|
193
262
|
- lib/asciidoctor-epub3/converter.rb
|
194
263
|
- lib/asciidoctor-epub3/ext.rb
|
195
264
|
- lib/asciidoctor-epub3/ext/asciidoctor.rb
|
265
|
+
- lib/asciidoctor-epub3/ext/asciidoctor/document.rb
|
196
266
|
- lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb
|
197
267
|
- lib/asciidoctor-epub3/ext/core.rb
|
198
268
|
- lib/asciidoctor-epub3/ext/core/string.rb
|
@@ -217,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
287
|
- !ruby/object:Gem::Version
|
218
288
|
version: 1.3.1
|
219
289
|
requirements: []
|
220
|
-
rubygems_version: 3.1.
|
290
|
+
rubygems_version: 3.1.4
|
221
291
|
signing_key:
|
222
292
|
specification_version: 4
|
223
293
|
summary: Converts AsciiDoc documents to EPUB3 and KF8/MOBI (Kindle) e-book formats
|
data/.yardopts
DELETED
data/LICENSE.adoc
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
[[LICENSE]]
|
2
|
-
= LICENSE
|
3
|
-
|
4
|
-
.The MIT License
|
5
|
-
....
|
6
|
-
Copyright (C) 2014-2019 OpenDevise Inc. and the Asciidoctor Project
|
7
|
-
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
10
|
-
in the Software without restriction, including without limitation the rights
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
13
|
-
furnished to do so, subject to the following conditions:
|
14
|
-
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
16
|
-
all copies or substantial portions of the Software.
|
17
|
-
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
THE SOFTWARE.
|
25
|
-
....
|