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: d38f932148312e67e4249a2c171c71da2c796a49
4
- data.tar.gz: c50317e4443b383f73be0b3e068364185cba7a97
3
+ metadata.gz: de0f65375e0acd83e5884ac89c8151c1fb84fd58
4
+ data.tar.gz: 6866a207a0e8976c4d8adde384815d22bd8be118
5
5
  SHA512:
6
- metadata.gz: 9d8544bb90e946c5b20b9e675268e519cf52f9dd89a3b054b4214a9c1b3dff59d6ce9683569616c3ed9d81441dc089179cb559e1569b1c11e4d586f99d457a41
7
- data.tar.gz: d26cbf53122d923276a543f49efe434ba8690fbb85ba0e44ced6c52bd4c24779fb110bcef1c3f03c29f5b731dfc15c4a30c06d78516742987815c70a6d6886ab
6
+ metadata.gz: 17ea60fdf32b733cfc6708a800b69b538ad280148430286c8b7d896f710fd98b3b1209879971e399497073b8d7fa14fdd71d3bdcaec50403b2af8595080b61d4
7
+ data.tar.gz: f877d2242b1187f7f20173675950257fde3b749842eb896b2a4fee2a6d77cebedeb2d2ba38e338c4beca6095058a3ac3d22b149d4e63ce2b9b6ee39a51fc9f5d
@@ -1,5 +1,11 @@
1
1
  = Asciidoctor-diagram Changelog
2
2
 
3
+ == 1.5.4.1
4
+
5
+ Enhancements::
6
+
7
+ * Resolve compatibility issues with Asciidoctor 1.5.6 (@robertpanzer, @mojavelinux)
8
+
3
9
  == 1.5.4
4
10
 
5
11
  Enhancements::
@@ -21,9 +21,9 @@ module Asciidoctor
21
21
 
22
22
  def mermaid(parent_block, source, format)
23
23
  mermaid = which(parent_block, 'mermaid')
24
- @is_mermaid_v6 ||= ::Asciidoctor::Diagram::Cli.run(mermaid, '--version').split('.')[0].to_i >= 6
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 => [@is_mermaid_v6 ? 'phantomjs_2' : 'phantomjs_19'])
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 = '@' + attr_names[0]
23
+ cmd_var = 'cmd-' + attr_names[0]
24
24
 
25
- if instance_variable_defined?(cmd_var)
26
- cmd_path = instance_variable_get(cmd_var)
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
- instance_variable_set(cmd_var, cmd_path)
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"
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Diagram
3
- VERSION = "1.5.4"
3
+ VERSION = "1.5.4.1"
4
4
  end
5
5
  end
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-01-14 00:00:00.000000000 Z
11
+ date: 2017-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler