asciidoctor-epub3 1.5.0.alpha.16 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'asciidoctor/document'
3
4
  require_relative 'asciidoctor/logging_shim' unless defined? Asciidoctor::Logging
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module Epub3
5
- VERSION = '1.5.0.alpha.16'
5
+ VERSION = '1.5.1'
6
6
  end
7
7
  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.16
4
+ version: 1.5.1
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-04-26 00:00:00.000000000 Z
12
+ date: 2021-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: asciidoctor-diagram
@@ -31,6 +31,20 @@ 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'
34
48
  - !ruby/object:Gem::Dependency
35
49
  name: coderay
36
50
  requirement: !ruby/object:Gem::Requirement
@@ -51,14 +65,14 @@ dependencies:
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: 1.2.0
68
+ version: 2.2.0
55
69
  type: :development
56
70
  prerelease: false
57
71
  version_requirements: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: 1.2.0
75
+ version: 2.2.0
62
76
  - !ruby/object:Gem::Dependency
63
77
  name: rake
64
78
  requirement: !ruby/object:Gem::Requirement
@@ -93,14 +107,14 @@ dependencies:
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: 3.9.0
110
+ version: 3.10.0
97
111
  type: :development
98
112
  prerelease: false
99
113
  version_requirements: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 3.9.0
117
+ version: 3.10.0
104
118
  - !ruby/object:Gem::Dependency
105
119
  name: rubocop
106
120
  requirement: !ruby/object:Gem::Requirement
@@ -121,14 +135,14 @@ dependencies:
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: 1.38.0
138
+ version: 1.41.0
125
139
  type: :development
126
140
  prerelease: false
127
141
  version_requirements: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: 1.38.0
145
+ version: 1.41.0
132
146
  - !ruby/object:Gem::Dependency
133
147
  name: asciidoctor
134
148
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +194,7 @@ dependencies:
180
194
  description: 'An extension for Asciidoctor that converts AsciiDoc documents to EPUB3
181
195
  and KF8/MOBI (Kindle) e-book archives.
182
196
 
183
- '
197
+ '
184
198
  email: dan@opendevise.com
185
199
  executables:
186
200
  - asciidoctor-epub3
@@ -248,6 +262,7 @@ files:
248
262
  - lib/asciidoctor-epub3/converter.rb
249
263
  - lib/asciidoctor-epub3/ext.rb
250
264
  - lib/asciidoctor-epub3/ext/asciidoctor.rb
265
+ - lib/asciidoctor-epub3/ext/asciidoctor/document.rb
251
266
  - lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb
252
267
  - lib/asciidoctor-epub3/ext/core.rb
253
268
  - lib/asciidoctor-epub3/ext/core/string.rb
@@ -265,14 +280,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
265
280
  requirements:
266
281
  - - ">="
267
282
  - !ruby/object:Gem::Version
268
- version: 2.3.0
283
+ version: 2.4.0
269
284
  required_rubygems_version: !ruby/object:Gem::Requirement
270
285
  requirements:
271
- - - ">"
286
+ - - ">="
272
287
  - !ruby/object:Gem::Version
273
- version: 1.3.1
288
+ version: '0'
274
289
  requirements: []
275
- rubygems_version: 3.1.2
290
+ rubygems_version: 3.2.15
276
291
  signing_key:
277
292
  specification_version: 4
278
293
  summary: Converts AsciiDoc documents to EPUB3 and KF8/MOBI (Kindle) e-book formats