metanorma-standoc 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asciidoctor/standoc/cleanup.rb +60 -0
- data/lib/asciidoctor/standoc/converter.rb +2 -0
- data/lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb +22 -21
- data/lib/asciidoctor/standoc/isodoc.rng +6 -0
- data/lib/asciidoctor/standoc/macros.rb +18 -0
- data/lib/asciidoctor/standoc/ref.rb +60 -56
- data/lib/metanorma/standoc/version.rb +1 -1
- data/metanorma-standoc.gemspec +1 -1
- data/spec/asciidoctor/blocks_spec.rb +2 -2
- data/spec/asciidoctor/cleanup_sections_spec.rb +899 -864
- data/spec/asciidoctor/cleanup_spec.rb +36 -2
- data/spec/asciidoctor/macros_plantuml_spec.rb +165 -104
- data/spec/asciidoctor/macros_spec.rb +99 -0
- data/spec/support/shared_examples/structured_data_2_text_preprocessor.rb +34 -34
- metadata +4 -4
@@ -59,9 +59,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
59
59
|
strip_guid(
|
60
60
|
Asciidoctor.convert(input,
|
61
61
|
backend: :standoc,
|
62
|
-
header_footer: true)
|
63
|
-
)
|
64
|
-
)
|
62
|
+
header_footer: true),
|
63
|
+
),
|
64
|
+
),
|
65
65
|
).to(be_equivalent_to(xmlpp(output)))
|
66
66
|
end
|
67
67
|
end
|
@@ -118,9 +118,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
118
118
|
strip_guid(
|
119
119
|
Asciidoctor.convert(input,
|
120
120
|
backend: :standoc,
|
121
|
-
header_footer: true)
|
122
|
-
)
|
123
|
-
)
|
121
|
+
header_footer: true),
|
122
|
+
),
|
123
|
+
),
|
124
124
|
).to(be_equivalent_to(xmlpp(output)))
|
125
125
|
end
|
126
126
|
end
|
@@ -166,9 +166,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
166
166
|
strip_guid(
|
167
167
|
Asciidoctor.convert(input,
|
168
168
|
backend: :standoc,
|
169
|
-
header_footer: true)
|
170
|
-
)
|
171
|
-
)
|
169
|
+
header_footer: true),
|
170
|
+
),
|
171
|
+
),
|
172
172
|
).to(be_equivalent_to(xmlpp(output)))
|
173
173
|
end
|
174
174
|
end
|
@@ -221,9 +221,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
221
221
|
strip_guid(
|
222
222
|
Asciidoctor.convert(input,
|
223
223
|
backend: :standoc,
|
224
|
-
header_footer: true)
|
225
|
-
)
|
226
|
-
)
|
224
|
+
header_footer: true),
|
225
|
+
),
|
226
|
+
),
|
227
227
|
).to(be_equivalent_to(xmlpp(output)))
|
228
228
|
end
|
229
229
|
end
|
@@ -303,9 +303,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
303
303
|
strip_guid(
|
304
304
|
Asciidoctor.convert(input,
|
305
305
|
backend: :standoc,
|
306
|
-
header_footer: true)
|
307
|
-
)
|
308
|
-
)
|
306
|
+
header_footer: true),
|
307
|
+
),
|
308
|
+
),
|
309
309
|
).to(be_equivalent_to(xmlpp(output)))
|
310
310
|
end
|
311
311
|
end
|
@@ -375,9 +375,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
375
375
|
strip_guid(
|
376
376
|
Asciidoctor.convert(input,
|
377
377
|
backend: :standoc,
|
378
|
-
header_footer: true)
|
379
|
-
)
|
380
|
-
)
|
378
|
+
header_footer: true),
|
379
|
+
),
|
380
|
+
),
|
381
381
|
).to(be_equivalent_to(xmlpp(output)))
|
382
382
|
end
|
383
383
|
end
|
@@ -385,7 +385,7 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
385
385
|
context "Array of language codes" do
|
386
386
|
let(:example_content) do
|
387
387
|
YAML.safe_load(
|
388
|
-
File.read(File.expand_path("../../assets/codes.yml", __dir__))
|
388
|
+
File.read(File.expand_path("../../assets/codes.yml", __dir__)),
|
389
389
|
)
|
390
390
|
end
|
391
391
|
let(:input) do
|
@@ -429,9 +429,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
429
429
|
strip_guid(
|
430
430
|
Asciidoctor.convert(input,
|
431
431
|
backend: :standoc,
|
432
|
-
header_footer: true)
|
433
|
-
)
|
434
|
-
)
|
432
|
+
header_footer: true),
|
433
|
+
),
|
434
|
+
),
|
435
435
|
).to(be_equivalent_to(xmlpp(output)))
|
436
436
|
end
|
437
437
|
end
|
@@ -525,9 +525,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
525
525
|
strip_guid(
|
526
526
|
Asciidoctor.convert(input,
|
527
527
|
backend: :standoc,
|
528
|
-
header_footer: true)
|
529
|
-
)
|
530
|
-
)
|
528
|
+
header_footer: true),
|
529
|
+
),
|
530
|
+
),
|
531
531
|
).to(be_equivalent_to(xmlpp(output)))
|
532
532
|
end
|
533
533
|
end
|
@@ -576,9 +576,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
576
576
|
strip_guid(
|
577
577
|
Asciidoctor.convert(input,
|
578
578
|
backend: :standoc,
|
579
|
-
header_footer: true)
|
580
|
-
)
|
581
|
-
)
|
579
|
+
header_footer: true),
|
580
|
+
),
|
581
|
+
),
|
582
582
|
).to(be_equivalent_to(xmlpp(output)))
|
583
583
|
end
|
584
584
|
end
|
@@ -625,9 +625,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
625
625
|
strip_guid(
|
626
626
|
Asciidoctor.convert(input,
|
627
627
|
backend: :standoc,
|
628
|
-
header_footer: true)
|
629
|
-
)
|
630
|
-
)
|
628
|
+
header_footer: true),
|
629
|
+
),
|
630
|
+
),
|
631
631
|
).to(be_equivalent_to(xmlpp(output)))
|
632
632
|
end
|
633
633
|
end
|
@@ -771,9 +771,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
771
771
|
strip_guid(
|
772
772
|
Asciidoctor.convert(input,
|
773
773
|
backend: :standoc,
|
774
|
-
header_footer: true)
|
775
|
-
)
|
776
|
-
)
|
774
|
+
header_footer: true),
|
775
|
+
),
|
776
|
+
),
|
777
777
|
).to(be_equivalent_to(xmlpp(output)))
|
778
778
|
end
|
779
779
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-standoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.4.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.4.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: concurrent-ruby
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|