asciidoctor-diagram 1.5.15 → 1.5.16

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: d8fbc5137bfb0106f34d8ab03142124bfb95d8a88fde5f4f4d4ae7bdb4b3b81c
4
- data.tar.gz: fd1e43b896ad5130e39efd72d6631e5bbfd9d1be266da0a7db07fcb3e230bed6
3
+ metadata.gz: fd917dfffdfbdf86a9a2d1f94d67567adf0296b1e9b1e1b8e64e4dacfef06645
4
+ data.tar.gz: e8b7f3554732fa3a051890a12fa943ea803a455d6a15281b86bd6df889312bfe
5
5
  SHA512:
6
- metadata.gz: 6f04545ad5d21a00fe7611873569ba112cc9f01dc5015e9109ed6360f2c2ab689bbe176cae822633f56917b6ea46e9467a96dd47f43b81227678a75324575bee
7
- data.tar.gz: baf46a3656cf85dcbe92be09e3f26b4cd03af40c9539bf8b77a8c2235cc78bcf300edfdecdeed8176405de15e62f85ee6150d52285b75ee7584332791e9c48ef
6
+ metadata.gz: fee236ca6ef2e424d872be4517b9f6d27007a1d5177235678a20acd5533a34580234e469913468e697bb744b57411c386a29ad936597dcbdb4f9a226cf16c3d3
7
+ data.tar.gz: 75b4a0a5981798b5af94ad2f0e9d8db9f509b6c460a4b5dd962d04fc179ddf454b9ad54b3c693afe2451bc5fcffd6cd5ad7dda187f459c6a7d5764eea45eff0c
data/CHANGELOG.adoc CHANGED
@@ -1,6 +1,11 @@
1
1
  = Asciidoctor-diagram Changelog
2
2
 
3
- == 1.5.14
3
+ == 1.5.16
4
+
5
+ Enhancements::
6
+ * Issue #219: Fix compatibility issue with Asciidoctor 2.0
7
+
8
+ == 1.5.15
4
9
 
5
10
  Enhancements::
6
11
  * Issue #217: Relax dependency version constraint to support Asciidoctor 2.x
@@ -13,6 +13,12 @@ require_relative 'util/svg'
13
13
  module Asciidoctor
14
14
  module Diagram
15
15
  module Extensions
16
+ if Asciidoctor::VERSION =~ /^1\.*/
17
+ POSITIONAL_ATTRS_KEY = :pos_attrs
18
+ else
19
+ POSITIONAL_ATTRS_KEY = :positional_attrs
20
+ end
21
+
16
22
  # Provides the means for diagram processors to register supported output formats and image
17
23
  # generation routines
18
24
  module FormatRegistry
@@ -294,7 +300,7 @@ module Asciidoctor
294
300
  include DiagramProcessor
295
301
 
296
302
  def self.inherited(subclass)
297
- subclass.option :pos_attrs, ['target', 'format']
303
+ subclass.option Asciidoctor::Diagram::Extensions::POSITIONAL_ATTRS_KEY, ['target', 'format']
298
304
  subclass.option :contexts, [:listing, :literal, :open]
299
305
  subclass.option :content_model, :simple
300
306
  end
@@ -312,7 +318,7 @@ module Asciidoctor
312
318
  include DiagramProcessor
313
319
 
314
320
  def self.inherited(subclass)
315
- subclass.option :pos_attrs, ['target', 'format']
321
+ subclass.option Asciidoctor::Diagram::Extensions::POSITIONAL_ATTRS_KEY, ['target', 'format']
316
322
  end
317
323
 
318
324
  def apply_target_subs(parent, target)
@@ -118,7 +118,7 @@ module Asciidoctor
118
118
  end
119
119
  end
120
120
 
121
- option :pos_attrs, %w(top bottom target format)
121
+ option Asciidoctor::Diagram::Extensions::POSITIONAL_ATTRS_KEY, %w(top bottom target format)
122
122
 
123
123
  def create_source(parent, target, attributes)
124
124
  attributes = attributes.dup
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Diagram
3
- VERSION = "1.5.15"
3
+ VERSION = "1.5.16"
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.15
4
+ version: 1.5.16
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: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler