asciidoctor-diagram 1.5.4 → 1.5.4.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de0f65375e0acd83e5884ac89c8151c1fb84fd58
|
4
|
+
data.tar.gz: 6866a207a0e8976c4d8adde384815d22bd8be118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17ea60fdf32b733cfc6708a800b69b538ad280148430286c8b7d896f710fd98b3b1209879971e399497073b8d7fa14fdd71d3bdcaec50403b2af8595080b61d4
|
7
|
+
data.tar.gz: f877d2242b1187f7f20173675950257fde3b749842eb896b2a4fee2a6d77cebedeb2d2ba38e338c4beca6095058a3ac3d22b149d4e63ce2b9b6ee39a51fc9f5d
|
data/CHANGELOG.adoc
CHANGED
@@ -21,9 +21,9 @@ module Asciidoctor
|
|
21
21
|
|
22
22
|
def mermaid(parent_block, source, format)
|
23
23
|
mermaid = which(parent_block, 'mermaid')
|
24
|
-
|
24
|
+
config['mermaid>=6'] ||= ::Asciidoctor::Diagram::Cli.run(mermaid, '--version').split('.')[0].to_i >= 6
|
25
25
|
# Mermaid >= 6.0.0 requires PhantomJS 2.1; older version required 1.9
|
26
|
-
phantomjs = which(parent_block, 'phantomjs', :alt_attrs => [
|
26
|
+
phantomjs = which(parent_block, 'phantomjs', :alt_attrs => [config['mermaid>=6'] ? 'phantomjs_2' : 'phantomjs_19'])
|
27
27
|
|
28
28
|
css = source.attr('css', nil, 'mermaid')
|
29
29
|
if css
|
@@ -20,10 +20,10 @@ module Asciidoctor
|
|
20
20
|
attr_names = options[:attrs] || options.fetch(:alt_attrs, []) + [cmd]
|
21
21
|
cmd_names = [cmd] + options.fetch(:alt_cmds, [])
|
22
22
|
|
23
|
-
cmd_var = '
|
23
|
+
cmd_var = 'cmd-' + attr_names[0]
|
24
24
|
|
25
|
-
if
|
26
|
-
cmd_path =
|
25
|
+
if config.key? cmd_var
|
26
|
+
cmd_path = config[cmd_var]
|
27
27
|
else
|
28
28
|
cmd_path = attr_names.map { |attr_name| parent_block.attr(attr_name, nil, true) }.find { |attr| !attr.nil? }
|
29
29
|
|
@@ -35,7 +35,7 @@ module Asciidoctor
|
|
35
35
|
cmd_path = cmd_paths.reject { |c| c.nil? }.first
|
36
36
|
end
|
37
37
|
|
38
|
-
|
38
|
+
config[cmd_var] = cmd_path
|
39
39
|
|
40
40
|
if cmd_path.nil? && options.fetch(:raise_on_error, true)
|
41
41
|
raise "Could not find the #{cmd_names.map { |c| "'#{c}'" }.join(', ')} executable in PATH; add it to the PATH or specify its location using the '#{attr_names[0]}' document attribute"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-diagram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.4
|
4
|
+
version: 1.5.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pepijn Van Eeckhoudt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|