asciidoctor-diagram 1.5.6 → 1.5.7

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: 320af9d1c2acc687468d82b303007b9a76ed6077
4
- data.tar.gz: df304c796960d919f5e8e67978c374d9aa0d9d5d
3
+ metadata.gz: 1c5c6f676486cb4d63650439d97ee2136bc6f92a
4
+ data.tar.gz: 82b3ae5a378f850952c2ea2e44c358138aa88327
5
5
  SHA512:
6
- metadata.gz: afeab72e6cf3da5d2c0170ab2dad7bed50a0d87225ecc3ebdb72b03b46b036ccc1df320152241fb4f4b07a6cf09fb5bdc16061c1f4cdafd971bad16bc81784b3
7
- data.tar.gz: 8748508ed16e390815b3f957a559c553f16a2505c8951e5f5dc21af06e15af87034e7529c0bf25a66b08992c10ef0d0b7d0503bc8b55f0c39645c526ca5d390b
6
+ metadata.gz: b056780ddec76489b951d088ca6f7dad0e3215b714ce8e5e97c78f0c94f04a685a3b30902753dc22b5cedf4c795b2b13335a7572e4a71a27b28bd2508700a5af
7
+ data.tar.gz: 08bb3c3adc5ac5f2c4fd50c8cc4e945f133954efa6d8d1355178722b8aaf9c0a559f2ee8354f20d372716d89fa44fea5db2399f18c127b84e80e3293dfd9351f
@@ -1,5 +1,16 @@
1
1
  = Asciidoctor-diagram Changelog
2
2
 
3
+ == 1.5.7
4
+
5
+ Enhancements::
6
+
7
+ * Update PlantUML to revision 2017.20
8
+ * Add support for Syntrax `--title` argument via the `heading` attribute (@vinipsmaker)
9
+
10
+ Bug Fixes::
11
+
12
+ * Issue #173: Block macro targets are now correctly resolved against the document base directory.
13
+
3
14
  == 1.5.6
4
15
 
5
16
  Enhancements::
@@ -424,6 +424,7 @@ The attribute name at the block level should be prefixed with the name of the di
424
424
  [cols=">,<,<",options="header"]
425
425
  |===
426
426
  |Name |Default value |Description
427
+ |heading |unspecifed |Diagram title
427
428
  |scale |1 |A scale factor that is applied to the image.
428
429
  |style |unspecifed |Path to a style config file to pass to Syntrax.
429
430
  |transparent |false |Makes the background of the image transparent instead of opaque white.
@@ -303,7 +303,7 @@ module Asciidoctor
303
303
 
304
304
  def apply_target_subs(parent, target)
305
305
  if target
306
- parent.sub_attributes(target, :attribute_missing => 'warn')
306
+ parent.normalize_system_path(parent.sub_attributes(target, :attribute_missing => 'warn'))
307
307
  else
308
308
  nil
309
309
  end
@@ -24,6 +24,11 @@ module Asciidoctor
24
24
  generate_file(which(parent, 'syntrax'), 'spec', format.to_s, source.to_s) do |tool_path, input_path, output_path|
25
25
  args = [tool_path, '-i', Platform.native_path(input_path), '-o', Platform.native_path(output_path)]
26
26
 
27
+ title = source.attr('heading', nil, inherit_prefix)
28
+ if title
29
+ args << '--title' << title
30
+ end
31
+
27
32
  scale = source.attr('scale', nil, inherit_prefix)
28
33
  if scale
29
34
  args << '--scale' << scale
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Diagram
3
- VERSION = "1.5.6"
3
+ VERSION = "1.5.7"
4
4
  end
5
5
  end
Binary file
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.6
4
+ version: 1.5.7
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-02 00:00:00.000000000 Z
11
+ date: 2017-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler