asciidoctor-diagram 2.2.11 → 2.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.adoc +7 -0
  3. data/lib/asciidoctor-diagram/plantuml/converter.rb +1 -0
  4. data/lib/asciidoctor-diagram/structurizr/renderers.rb +5 -0
  5. data/lib/asciidoctor-diagram/version.rb +1 -1
  6. metadata +3 -130
  7. data/Rakefile +0 -9
  8. data/docs/antora.yml +0 -5
  9. data/docs/modules/ROOT/images/a2s.svg +0 -44
  10. data/docs/modules/ROOT/images/actdiag.png +0 -0
  11. data/docs/modules/ROOT/images/asciidoctor-diagram-classes.png +0 -0
  12. data/docs/modules/ROOT/images/asciidoctor-diagram-process.png +0 -0
  13. data/docs/modules/ROOT/images/barcode.png +0 -0
  14. data/docs/modules/ROOT/images/barcode2.png +0 -0
  15. data/docs/modules/ROOT/images/blockdiag.png +0 -0
  16. data/docs/modules/ROOT/images/d2.png +0 -0
  17. data/docs/modules/ROOT/images/lilypond.png +0 -0
  18. data/docs/modules/ROOT/images/penrose.png +0 -0
  19. data/docs/modules/ROOT/nav.adoc +0 -41
  20. data/docs/modules/ROOT/pages/blocks.adoc +0 -140
  21. data/docs/modules/ROOT/pages/diagram_types/a2s.adoc +0 -47
  22. data/docs/modules/ROOT/pages/diagram_types/actdiag.adoc +0 -46
  23. data/docs/modules/ROOT/pages/diagram_types/barcode.adoc +0 -72
  24. data/docs/modules/ROOT/pages/diagram_types/blockdiag.adoc +0 -38
  25. data/docs/modules/ROOT/pages/diagram_types/bpmn.adoc +0 -21
  26. data/docs/modules/ROOT/pages/diagram_types/bytefield.adoc +0 -16
  27. data/docs/modules/ROOT/pages/diagram_types/d2.adoc +0 -43
  28. data/docs/modules/ROOT/pages/diagram_types/dbml.adoc +0 -16
  29. data/docs/modules/ROOT/pages/diagram_types/diagrams.adoc +0 -20
  30. data/docs/modules/ROOT/pages/diagram_types/ditaa.adoc +0 -31
  31. data/docs/modules/ROOT/pages/diagram_types/dpic.adoc +0 -16
  32. data/docs/modules/ROOT/pages/diagram_types/erd.adoc +0 -17
  33. data/docs/modules/ROOT/pages/diagram_types/gnuplot.adoc +0 -27
  34. data/docs/modules/ROOT/pages/diagram_types/graphviz.adoc +0 -21
  35. data/docs/modules/ROOT/pages/diagram_types/lilypond.adoc +0 -27
  36. data/docs/modules/ROOT/pages/diagram_types/meme.adoc +0 -34
  37. data/docs/modules/ROOT/pages/diagram_types/mermaid.adoc +0 -28
  38. data/docs/modules/ROOT/pages/diagram_types/msc.adoc +0 -23
  39. data/docs/modules/ROOT/pages/diagram_types/nomnoml.adoc +0 -16
  40. data/docs/modules/ROOT/pages/diagram_types/nwdiag.adoc +0 -22
  41. data/docs/modules/ROOT/pages/diagram_types/penrose.adoc +0 -50
  42. data/docs/modules/ROOT/pages/diagram_types/pikchr.adoc +0 -16
  43. data/docs/modules/ROOT/pages/diagram_types/plantuml.adoc +0 -24
  44. data/docs/modules/ROOT/pages/diagram_types/seqdiag.adoc +0 -18
  45. data/docs/modules/ROOT/pages/diagram_types/shaape.adoc +0 -18
  46. data/docs/modules/ROOT/pages/diagram_types/smcat.adoc +0 -18
  47. data/docs/modules/ROOT/pages/diagram_types/structurizr.adoc +0 -29
  48. data/docs/modules/ROOT/pages/diagram_types/svgbob.adoc +0 -21
  49. data/docs/modules/ROOT/pages/diagram_types/symbolator.adoc +0 -19
  50. data/docs/modules/ROOT/pages/diagram_types/syntrax.adoc +0 -28
  51. data/docs/modules/ROOT/pages/diagram_types/tikz.adoc +0 -21
  52. data/docs/modules/ROOT/pages/diagram_types/umlet.adoc +0 -19
  53. data/docs/modules/ROOT/pages/diagram_types/vega.adoc +0 -28
  54. data/docs/modules/ROOT/pages/diagram_types/wavedrom.adoc +0 -17
  55. data/docs/modules/ROOT/pages/enabling.adoc +0 -25
  56. data/docs/modules/ROOT/pages/generate.adoc +0 -15
  57. data/docs/modules/ROOT/pages/index.adoc +0 -12
  58. data/docs/modules/ROOT/pages/installation.adoc +0 -32
  59. data/docs/modules/ROOT/pages/output.adoc +0 -19
  60. data/docs/modules/ROOT/partials/shared-attrs.adoc +0 -12
  61. data/docs/modules/ROOT/partials/uris.adoc +0 -48
  62. data/examples/Gemfile +0 -3
  63. data/examples/README.adoc +0 -18
  64. data/examples/design.adoc +0 -78
  65. data/examples/features.adoc +0 -189
  66. data/spec/a2s_spec.rb +0 -33
  67. data/spec/barcode_spec.rb +0 -176
  68. data/spec/blockdiag_spec.rb +0 -20
  69. data/spec/bpmn_spec.rb +0 -60
  70. data/spec/bytefield_spec.rb +0 -96
  71. data/spec/d2_spec.rb +0 -87
  72. data/spec/dbml_spec.rb +0 -32
  73. data/spec/diagrams_spec.rb +0 -27
  74. data/spec/ditaa_spec.rb +0 -191
  75. data/spec/dpic_spec.rb +0 -23
  76. data/spec/erd_spec.rb +0 -96
  77. data/spec/gnuplot_spec.rb +0 -229
  78. data/spec/graphviz_py_spec.rb +0 -33
  79. data/spec/graphviz_spec.rb +0 -24
  80. data/spec/lilypond_spec.rb +0 -17
  81. data/spec/man.jpg +0 -0
  82. data/spec/meme_spec.rb +0 -67
  83. data/spec/mermaid_spec.rb +0 -161
  84. data/spec/msc_spec.rb +0 -37
  85. data/spec/nomnoml_spec.rb +0 -36
  86. data/spec/pikchr_spec.rb +0 -73
  87. data/spec/plantuml_spec.rb +0 -800
  88. data/spec/shaape_spec.rb +0 -20
  89. data/spec/shared_examples.rb +0 -766
  90. data/spec/smcat_spec.rb +0 -30
  91. data/spec/structurizr_spec.rb +0 -41
  92. data/spec/svgbob_spec.rb +0 -33
  93. data/spec/symbolator_spec.rb +0 -27
  94. data/spec/syntrax_spec.rb +0 -22
  95. data/spec/test_helper_methods.rb +0 -118
  96. data/spec/tikz_spec.rb +0 -181
  97. data/spec/umlet_spec.rb +0 -32
  98. data/spec/vega_spec.rb +0 -133
  99. data/spec/wavedrom_spec.rb +0 -21
data/spec/nomnoml_spec.rb DELETED
@@ -1,36 +0,0 @@
1
- require_relative 'test_helper_methods'
2
-
3
- NOMNOML_CODE = <<-eos
4
- [Pirate
5
- [beard]--[parrot]
6
- [beard]-:>[foul mouth]
7
- ]
8
-
9
- [<abstract>Marauder]<:--[Pirate]
10
- [Pirate]- 0..7[mischief]
11
- [jollyness]->[Pirate]
12
- [jollyness]->[rum]
13
- [jollyness]->[singing]
14
- [Pirate]-> *[rum]
15
- [Pirate]->[singing]
16
- [singing]<->[rum]
17
-
18
- [<start>st]->[<state>plunder]
19
- [plunder]->[<choice>more loot]
20
- [more loot]->[st]
21
- [more loot] no ->[<end>e]
22
-
23
- [<actor>Sailor] - [<usecase>shiver me;timbers]
24
- eos
25
-
26
- describe Asciidoctor::Diagram::NomnomlInlineMacroProcessor do
27
- include_examples "inline_macro", :nomnoml, NOMNOML_CODE, [:svg]
28
- end
29
-
30
- describe Asciidoctor::Diagram::NomnomlBlockMacroProcessor do
31
- include_examples "block_macro", :nomnoml, NOMNOML_CODE, [:svg]
32
- end
33
-
34
- describe Asciidoctor::Diagram::NomnomlBlockProcessor do
35
- include_examples "block", :nomnoml, NOMNOML_CODE, [:svg]
36
- end
data/spec/pikchr_spec.rb DELETED
@@ -1,73 +0,0 @@
1
- require_relative 'test_helper_methods'
2
-
3
- PIKCHR_CODE = <<-eos
4
- # Change from the original:
5
- # * Expand the macro by hand, as Pikchr does not support
6
- # macros
7
- #
8
- #define ndblock {
9
- # box wid boxwid/2 ht boxht/2
10
- # down; box same with .t at bottom of last box; box same
11
- #}
12
- boxht = .2; boxwid = .3; circlerad = .3; dx = 0.05
13
- down; box; box; box; box ht 3*boxht "." "." "."
14
- L: box; box; box invis wid 2*boxwid "hashtab:" with .e at 1st box .w
15
- right
16
- Start: box wid .5 with .sw at 1st box.ne + (.4,.2) "..."
17
- N1: box wid .2 "n1"; D1: box wid .3 "d1"
18
- N3: box wid .4 "n3"; D3: box wid .3 "d3"
19
- box wid .4 "..."
20
- N2: box wid .5 "n2"; D2: box wid .2 "d2"
21
- arrow right from 2nd box
22
- #ndblock
23
- box wid boxwid/2 ht boxht/2
24
- down; box same with .t at bottom of last box; box same
25
- spline -> right .2 from 3rd last box then to N1.sw + (dx,0)
26
- spline -> right .3 from 2nd last box then to D1.sw + (dx,0)
27
- arrow right from last box
28
- #ndblock
29
- box wid boxwid/2 ht boxht/2
30
- down; box same with .t at bottom of last box; box same
31
- spline -> right .2 from 3rd last box to N2.sw-(dx,.2) to N2.sw+(dx,0)
32
- spline -> right .3 from 2nd last box to D2.sw-(dx,.2) to D2.sw+(dx,0)
33
- arrow right 2*linewid from L
34
- #ndblock
35
- box wid boxwid/2 ht boxht/2
36
- down; box same with .t at bottom of last box; box same
37
- spline -> right .2 from 3rd last box to N3.sw + (dx,0)
38
- spline -> right .3 from 2nd last box to D3.sw + (dx,0)
39
- circlerad = .3
40
- circle invis "ndblock" at last box.e + (1.2,.2)
41
- arrow dashed from last circle.w to 5/8<last circle.w,2nd last box> chop
42
- box invis wid 2*boxwid "ndtable:" with .e at Start.w
43
- eos
44
-
45
- describe Asciidoctor::Diagram::PikchrInlineMacroProcessor, :broken_on_windows do
46
- include_examples "inline_macro", :pikchr, PIKCHR_CODE, [:svg]
47
- end
48
-
49
- describe Asciidoctor::Diagram::PikchrBlockMacroProcessor, :broken_on_windows do
50
- include_examples "block_macro", :pikchr, PIKCHR_CODE, [:svg]
51
- end
52
-
53
- describe Asciidoctor::Diagram::PikchrBlockProcessor, :broken_on_windows do
54
- include_examples "block", :pikchr, PIKCHR_CODE, [:svg]
55
-
56
- it "should report syntax errors" do
57
- doc = <<-eos
58
- = Hello, Pikchr!
59
- Doc Writer <doc@example.com>
60
-
61
- == First Section
62
-
63
- [pikchr]
64
- ----
65
- This should raise a syntax error.
66
- ----
67
- eos
68
-
69
- expect {
70
- load_asciidoc doc
71
- }.to raise_error(/error/i)
72
- end
73
- end