asciidoctor-diagram 2.2.4 → 2.2.5

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: 0c7b68569773e4811496a15d962840a88567ec7e7890d91d38a38c742477c24b
4
- data.tar.gz: 7f7f72e9433adbbc0ee21537db7d96b5469b22979b9f82930d97d4a70614e6a4
3
+ metadata.gz: 980b6fb443595ac5fa50769efd9c56585825cad5f05eae4d3b19540f317f8d0d
4
+ data.tar.gz: 5c52555bd202fd535319ae5b2b2e9a2381ab13dd9f13f7ae76cdb5f97062ecf1
5
5
  SHA512:
6
- metadata.gz: b9b65b14640274daf2a670f44330d261a2712df4d3ee696cd4a0fe8df395258716d2213d9d8de143117e67b1d66750b8bb5c8c892888e6477c1171a81ac53904
7
- data.tar.gz: 96cc74fbfa0649906618089719b3d204f6d6127b0b81c648b6ae7f86279df54a0cdd23533a74bc898ea84ecb2653a626d58a0b82078f39710d47108c3f2a0d0c
6
+ metadata.gz: 9ba75fc18d1a7f0367763f47cfd5fefc7280cc0a4d54ca4a782ddae7699cdd3ec9b7bcfdc113c79e85bdf5ce0e438225e6246a0d454bd3c16b0099812a0485f5
7
+ data.tar.gz: 184c202daec74ca42c450735e66de0b6de854d34671e009e5aaaf7e9a47b1d8207ca4d9b6bdbdd93596bbd7476c86a1efd4ffa8018a2c901c61263998ece0a89
data/CHANGELOG.adoc CHANGED
@@ -1,6 +1,14 @@
1
1
  = Asciidoctor-diagram Changelog
2
2
 
3
- == 2.2.3
3
+ == 2.2.5
4
+
5
+ Enhancements::
6
+
7
+ * Issue #401: Add passthrough `txt` output format support for A2S, Ditaa, and Svgbob
8
+ * Issue #402: Add https://github.com/kaishuu0123/erd-go[erd-go] support
9
+ * Issue #404: Add https://github.com/mscgenjs[mscgenjs] support
10
+
11
+ == 2.2.4
4
12
 
5
13
  Enhancements::
6
14
 
@@ -76,12 +76,12 @@ The following table lists the tools that are required for each diagram type, the
76
76
  |diagrams |{uri-python}[Python] |`diagrams-python`
77
77
  |ditaa |{uri-java}[Java] |`java`
78
78
  |dpic |{uri-dpic}[dpic] |`dpic`
79
- |erd |{uri-erd}[Erd] |`erd`
79
+ |erd |{uri-erd}[Erd] or {uri-erd-go}[Erd Go] |`erd`
80
80
  |gnuplot |{uri-gnuplot}[Gnuplot] |`gnuplot`
81
81
  |graphviz |{uri-graphviz}[GraphViz] |`dot` or `graphvizdot`
82
82
  |meme |{uri-imagemagick}[ImageMagick] |`convert` and `identify`
83
83
  |mermaid |{uri-mermaid}[Mermaid.cli] |`mmdc`
84
- |msc |{uri-mscgen}[Mscgen] |`mscgen`
84
+ |msc |{uri-mscgen}[Mscgen] or {uri-mscgen-js}[mscgen.js] |`mscgen`
85
85
  |nomnoml |{uri-nomnoml}[Nomnoml] |`nomnoml`
86
86
  |nwdiag |{uri-nwdiag}[NwDiag] |`nwdiag`
87
87
  |packetdiag |{uri-nwdiag}[NwDiag] |`packetdiag`
@@ -21,14 +21,14 @@ The following diagram types and output formats are available:
21
21
  [cols=">,5*^",options="header"]
22
22
  |===
23
23
  |Diagram Type |gif |pdf |png |svg |txt
24
- |{uri-a2s}[a2s] | | | |{check}|
24
+ |{uri-a2s}[a2s] | | | |{check}|{check}
25
25
  |{uri-actdiag}[actdiag] | |{check}|{check}|{check}|
26
26
  |<<barcode,barcode>> | | |{check}| |{check}
27
27
  |{uri-blockdiag}[blockdiag] | |{check}|{check}|{check}|
28
28
  |{uri-bpmn}[bpmn] | |{check}|{check}|{check}|
29
29
  |{uri-bytefield}[bytefield] | | | |{check}|
30
30
  |{uri-diagrams}[diagrams] | |{check}|{check}|{check}|
31
- |{uri-ditaa}[ditaa] | | |{check}|{check}|
31
+ |{uri-ditaa}[ditaa] | | |{check}|{check}|{check}
32
32
  |{uri-dpic}[dpic] | | | |{check}|
33
33
  |{uri-erd}[erd] | | |{check}|{check}|
34
34
  |{uri-gnuplot}[gnuplot] |{check}| |{check}|{check}|{check}
@@ -45,7 +45,7 @@ The following diagram types and output formats are available:
45
45
  |{uri-seqdiag}[seqdiag] | |{check}|{check}|{check}|
46
46
  |{uri-shaape}[shaape] | | |{check}|{check}|
47
47
  |{uri-smcat}[smcat] | | | |{check}|
48
- |{uri-svgbob}[svgbob] | | | |{check}|
48
+ |{uri-svgbob}[svgbob] | | | |{check}|{check}
49
49
  |{uri-symbolator}[symbolator] | |{check}|{check}|{check}|
50
50
  |{uri-syntrax}[syntrax] (Syntrax) | |{check}|{check}|{check}|
51
51
  |{uri-jsyntrax}[syntrax] (JSyntrax)| | |{check}|{check}|
@@ -10,12 +10,14 @@
10
10
  :uri-dpic: https://gitlab.com/aplevich/dpic
11
11
  :uri-dot: https://graphviz.gitlab.io/_pages/doc/info/lang.html
12
12
  :uri-erd: https://github.com/BurntSushi/erd
13
+ :uri-erd-go: https://github.com/kaishuu0123/erd-go
13
14
  :uri-gnuplot: http://gnuplot.info
14
15
  :uri-graphviz: https://graphviz.gitlab.io
15
16
  :uri-imagemagick: http://www.imagemagick.org
16
17
  :uri-java: http://java.sun.com
17
18
  :uri-mermaid: https://github.com/mermaid-js/mermaid-cli
18
19
  :uri-mscgen: http://www.mcternan.me.uk/mscgen/
20
+ :uri-mscgen-js: https://github.com/mscgenjs/mscgenjs-cli
19
21
  :uri-nomnoml: http://nomnoml.com
20
22
  :uri-nwdiag: http://blockdiag.com/en/nwdiag/index.html
21
23
  :uri-packetdiag: http://blockdiag.com/en/nwdiag/index.html
@@ -10,7 +10,7 @@ module Asciidoctor
10
10
  include CliGenerator
11
11
 
12
12
  def supported_formats
13
- [:svg]
13
+ [:svg, :txt]
14
14
  end
15
15
 
16
16
  def collect_options(source)
@@ -24,6 +24,8 @@ module Asciidoctor
24
24
  end
25
25
 
26
26
  def convert(source, format, options)
27
+ return source.to_s if format == :txt
28
+
27
29
  sx = options[:sx]
28
30
  sy = options[:sy]
29
31
  scale = options[:scale]
@@ -40,7 +40,7 @@ module Asciidoctor
40
40
  Java.classpath.concat DITAA_JARS
41
41
 
42
42
  def supported_formats
43
- [:png, :svg]
43
+ [:png, :svg, :txt]
44
44
  end
45
45
 
46
46
  def collect_options(source)
@@ -59,6 +59,8 @@ module Asciidoctor
59
59
  end
60
60
 
61
61
  def convert(source, format, options)
62
+ return source.to_s if format == :txt
63
+
62
64
  Java.load
63
65
 
64
66
  flags = []
@@ -15,7 +15,7 @@ module Asciidoctor
15
15
  end
16
16
 
17
17
  def convert(source, format, options)
18
- erd_path = source.find_command('erd')
18
+ erd_path = source.find_command('erd', :alt_cmds => ['erd-go'])
19
19
  dot_path = source.find_command('dot', :alt_attrs => ['graphvizdot'])
20
20
 
21
21
  dot_code = generate_stdin(erd_path, format.to_s, source.to_s) do |tool_path, output_path|
@@ -21,7 +21,7 @@ module Asciidoctor
21
21
  def convert(source, format, options)
22
22
  font = options[:font]
23
23
 
24
- generate_stdin(source.find_command('mscgen'), format.to_s, source.to_s) do |tool_path, output_path|
24
+ generate_stdin(source.find_command('mscgen', :alt_cmds => ['mscgen_js']), format.to_s, source.to_s) do |tool_path, output_path|
25
25
  args = [tool_path, '-o', Platform.native_path(output_path), '-T', format.to_s]
26
26
  if font
27
27
  args << '-F' << font
@@ -11,7 +11,7 @@ module Asciidoctor
11
11
 
12
12
 
13
13
  def supported_formats
14
- [:svg]
14
+ [:svg, :txt]
15
15
  end
16
16
 
17
17
  def native_scaling?
@@ -38,6 +38,7 @@ module Asciidoctor
38
38
 
39
39
 
40
40
  def convert(source, format, options)
41
+ return source.to_s if format == :txt
41
42
 
42
43
  flags = []
43
44
  options.each do |option, value|
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Diagram
3
- VERSION = "2.2.4"
3
+ VERSION = "2.2.5"
4
4
  end
5
5
  end
data/spec/a2s_spec.rb CHANGED
@@ -25,9 +25,9 @@ describe Asciidoctor::Diagram::AsciiToSvgInlineMacroProcessor do
25
25
  end
26
26
 
27
27
  describe Asciidoctor::Diagram::AsciiToSvgBlockMacroProcessor do
28
- include_examples "block_macro", :a2s, A2S_CODE, [:svg]
28
+ include_examples "block_macro", :a2s, A2S_CODE, [:svg, :txt]
29
29
  end
30
30
 
31
31
  describe Asciidoctor::Diagram::AsciiToSvgBlockProcessor do
32
- include_examples "block", :svgbob, A2S_CODE, [:svg]
32
+ include_examples "block", :svgbob, A2S_CODE, [:svg, :txt]
33
33
  end
data/spec/ditaa_spec.rb CHANGED
@@ -17,11 +17,11 @@ describe Asciidoctor::Diagram::DitaaInlineMacroProcessor do
17
17
  end
18
18
 
19
19
  describe Asciidoctor::Diagram::DitaaBlockMacroProcessor do
20
- include_examples "block_macro", :ditaa, DITAA_CODE, [:png, :svg]
20
+ include_examples "block_macro", :ditaa, DITAA_CODE, [:png, :svg, :txt]
21
21
  end
22
22
 
23
23
  describe Asciidoctor::Diagram::DitaaBlockProcessor do
24
- include_examples "block", :ditaa, DITAA_CODE, [:png, :svg]
24
+ include_examples "block", :ditaa, DITAA_CODE, [:png, :svg, :txt]
25
25
 
26
26
  it "should support ditaa options as attributes" do
27
27
  doc = <<-eos
data/spec/svgbob_spec.rb CHANGED
@@ -25,9 +25,9 @@ describe Asciidoctor::Diagram::SvgBobInlineMacroProcessor do
25
25
  end
26
26
 
27
27
  describe Asciidoctor::Diagram::SvgBobBlockMacroProcessor do
28
- include_examples "block_macro", :svgbob, SVGBOB_CODE, [:svg]
28
+ include_examples "block_macro", :svgbob, SVGBOB_CODE, [:svg, :txt]
29
29
  end
30
30
 
31
31
  describe Asciidoctor::Diagram::SvgBobBlockProcessor do
32
- include_examples "block", :svgbob, SVGBOB_CODE, [:svg]
32
+ include_examples "block", :svgbob, SVGBOB_CODE, [:svg, :txt]
33
33
  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: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pepijn Van Eeckhoudt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-21 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -282,7 +282,7 @@ homepage: https://github.com/asciidoctor/asciidoctor-diagram
282
282
  licenses:
283
283
  - MIT
284
284
  metadata: {}
285
- post_install_message:
285
+ post_install_message:
286
286
  rdoc_options: []
287
287
  require_paths:
288
288
  - lib
@@ -297,8 +297,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  - !ruby/object:Gem::Version
298
298
  version: '0'
299
299
  requirements: []
300
- rubygems_version: 3.0.3.1
301
- signing_key:
300
+ rubygems_version: 3.2.22
301
+ signing_key:
302
302
  specification_version: 4
303
303
  summary: A family of Asciidoctor extensions that generate images from a broad range
304
304
  of embedded plain text diagram descriptions, including PlantUML, ditaa, Kroki, and