metanorma-standoc 1.11.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -31
- data/.gitignore +23 -0
- data/lib/asciidoctor/standoc/base.rb +2 -145
- data/lib/asciidoctor/standoc/blocks.rb +2 -238
- data/lib/asciidoctor/standoc/blocks_notes.rb +2 -100
- data/lib/asciidoctor/standoc/cleanup.rb +2 -208
- data/lib/asciidoctor/standoc/cleanup_amend.rb +2 -53
- data/lib/asciidoctor/standoc/cleanup_block.rb +2 -172
- data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +2 -212
- data/lib/asciidoctor/standoc/cleanup_footnotes.rb +2 -108
- data/lib/asciidoctor/standoc/cleanup_image.rb +2 -69
- data/lib/asciidoctor/standoc/cleanup_inline.rb +2 -189
- data/lib/asciidoctor/standoc/cleanup_maths.rb +2 -221
- data/lib/asciidoctor/standoc/cleanup_ref.rb +2 -169
- data/lib/asciidoctor/standoc/cleanup_ref_dl.rb +2 -103
- data/lib/asciidoctor/standoc/cleanup_reqt.rb +2 -110
- data/lib/asciidoctor/standoc/cleanup_section.rb +2 -184
- data/lib/asciidoctor/standoc/cleanup_section_names.rb +2 -91
- data/lib/asciidoctor/standoc/cleanup_symbols.rb +2 -47
- data/lib/asciidoctor/standoc/cleanup_table.rb +2 -67
- data/lib/asciidoctor/standoc/cleanup_terms.rb +2 -139
- data/lib/asciidoctor/standoc/cleanup_terms_designations.rb +2 -198
- data/lib/asciidoctor/standoc/cleanup_text.rb +2 -95
- data/lib/asciidoctor/standoc/cleanup_toc.rb +3 -0
- data/lib/asciidoctor/standoc/cleanup_xref.rb +2 -106
- data/lib/asciidoctor/standoc/converter.rb +2 -123
- data/lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb +2 -56
- data/lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb +2 -102
- data/lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb +3 -404
- data/lib/asciidoctor/standoc/deprecated.rb +5 -0
- data/lib/asciidoctor/standoc/front.rb +2 -223
- data/lib/asciidoctor/standoc/front_contributor.rb +2 -191
- data/lib/asciidoctor/standoc/inline.rb +2 -231
- data/lib/asciidoctor/standoc/lists.rb +2 -119
- data/lib/asciidoctor/standoc/macros.rb +2 -203
- data/lib/asciidoctor/standoc/macros_form.rb +2 -62
- data/lib/asciidoctor/standoc/macros_note.rb +2 -44
- data/lib/asciidoctor/standoc/macros_plantuml.rb +2 -112
- data/lib/asciidoctor/standoc/macros_terms.rb +2 -180
- data/lib/asciidoctor/standoc/ref.rb +2 -251
- data/lib/asciidoctor/standoc/ref_sect.rb +2 -153
- data/lib/asciidoctor/standoc/ref_utility.rb +2 -0
- data/lib/asciidoctor/standoc/render.rb +2 -114
- data/lib/asciidoctor/standoc/reqt.rb +2 -89
- data/lib/asciidoctor/standoc/section.rb +2 -207
- data/lib/asciidoctor/standoc/table.rb +2 -84
- data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +2 -178
- data/lib/asciidoctor/standoc/terms.rb +2 -159
- data/lib/asciidoctor/standoc/utils.rb +2 -100
- data/lib/asciidoctor/standoc/validate.rb +2 -157
- data/lib/asciidoctor/standoc/validate_section.rb +2 -54
- data/lib/metanorma/standoc/base.rb +149 -0
- data/lib/{asciidoctor → metanorma}/standoc/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/standoc/biblio.rng +0 -0
- data/lib/metanorma/standoc/blocks.rb +239 -0
- data/lib/metanorma/standoc/blocks_notes.rb +101 -0
- data/lib/metanorma/standoc/cleanup.rb +146 -0
- data/lib/metanorma/standoc/cleanup_amend.rb +54 -0
- data/lib/metanorma/standoc/cleanup_block.rb +173 -0
- data/lib/metanorma/standoc/cleanup_boilerplate.rb +213 -0
- data/lib/metanorma/standoc/cleanup_footnotes.rb +109 -0
- data/lib/metanorma/standoc/cleanup_image.rb +70 -0
- data/lib/metanorma/standoc/cleanup_inline.rb +190 -0
- data/lib/metanorma/standoc/cleanup_maths.rb +222 -0
- data/lib/metanorma/standoc/cleanup_ref.rb +170 -0
- data/lib/metanorma/standoc/cleanup_ref_dl.rb +104 -0
- data/lib/metanorma/standoc/cleanup_reqt.rb +111 -0
- data/lib/metanorma/standoc/cleanup_section.rb +212 -0
- data/lib/metanorma/standoc/cleanup_section_names.rb +92 -0
- data/lib/metanorma/standoc/cleanup_symbols.rb +48 -0
- data/lib/metanorma/standoc/cleanup_table.rb +68 -0
- data/lib/metanorma/standoc/cleanup_terms.rb +140 -0
- data/lib/metanorma/standoc/cleanup_terms_designations.rb +199 -0
- data/lib/metanorma/standoc/cleanup_text.rb +96 -0
- data/lib/metanorma/standoc/cleanup_toc.rb +98 -0
- data/lib/metanorma/standoc/cleanup_xref.rb +107 -0
- data/lib/metanorma/standoc/converter.rb +124 -0
- data/lib/metanorma/standoc/datamodel/attributes_table_preprocessor.rb +57 -0
- data/lib/metanorma/standoc/datamodel/diagram_preprocessor.rb +103 -0
- data/lib/metanorma/standoc/datamodel/plantuml_renderer.rb +409 -0
- data/lib/metanorma/standoc/front.rb +224 -0
- data/lib/metanorma/standoc/front_contributor.rb +192 -0
- data/lib/metanorma/standoc/inline.rb +232 -0
- data/lib/{asciidoctor → metanorma}/standoc/isodoc.rng +29 -0
- data/lib/metanorma/standoc/lists.rb +120 -0
- data/lib/metanorma/standoc/macros.rb +204 -0
- data/lib/metanorma/standoc/macros_form.rb +63 -0
- data/lib/metanorma/standoc/macros_note.rb +45 -0
- data/lib/metanorma/standoc/macros_plantuml.rb +113 -0
- data/lib/metanorma/standoc/macros_terms.rb +181 -0
- data/lib/metanorma/standoc/ref.rb +243 -0
- data/lib/metanorma/standoc/ref_sect.rb +153 -0
- data/lib/{asciidoctor/standoc/ref_date_id.rb → metanorma/standoc/ref_utility.rb} +43 -5
- data/lib/metanorma/standoc/render.rb +115 -0
- data/lib/metanorma/standoc/reqt.rb +90 -0
- data/lib/{asciidoctor → metanorma}/standoc/reqt.rng +0 -0
- data/lib/metanorma/standoc/section.rb +209 -0
- data/lib/metanorma/standoc/table.rb +85 -0
- data/lib/metanorma/standoc/term_lookup_cleanup.rb +179 -0
- data/lib/metanorma/standoc/terms.rb +160 -0
- data/lib/metanorma/standoc/utils.rb +101 -0
- data/lib/metanorma/standoc/validate.rb +158 -0
- data/lib/metanorma/standoc/validate_section.rb +55 -0
- data/lib/metanorma/standoc/version.rb +1 -1
- data/lib/{asciidoctor → metanorma}/standoc/views/datamodel/model_representation.adoc.erb +0 -0
- data/lib/{asciidoctor → metanorma}/standoc/views/datamodel/plantuml_representation.adoc.erb +0 -0
- data/lib/metanorma-standoc.rb +1 -1
- data/metanorma-standoc.gemspec +1 -1
- data/spec/{asciidoctor → metanorma}/base_spec.rb +27 -10
- data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_sections_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +5 -5
- data/spec/{asciidoctor → metanorma}/cleanup_terms_spec.rb +2 -2
- data/spec/{asciidoctor → metanorma}/datamodel/attributes_table_preprocessor_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/datamodel/diagram_preprocessor_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/isobib_cache_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/macros_json2text_spec.rb +0 -0
- data/spec/{asciidoctor → metanorma}/macros_plantuml_spec.rb +3 -3
- data/spec/{asciidoctor → metanorma}/macros_spec.rb +6 -6
- data/spec/{asciidoctor → metanorma}/macros_yaml2text_spec.rb +0 -0
- data/spec/metanorma/refs_dl_spec.rb +863 -0
- data/spec/{asciidoctor → metanorma}/refs_spec.rb +399 -25
- data/spec/{asciidoctor → metanorma}/section_spec.rb +42 -17
- data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/validate_spec.rb +2 -2
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +42 -42
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +11 -11
- data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
- data/spec/vcr_cassettes/isobib_get_123_1.yml +21 -21
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +81 -81
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +10 -10
- data/spec/vcr_cassettes/isobib_get_124.yml +11 -11
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +13 -13
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +46 -46
- metadata +82 -32
- data/spec/asciidoctor/refs_dl_spec.rb +0 -864
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: metanorma-plugin-datastruct
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -401,8 +401,6 @@ files:
|
|
401
401
|
- bin/rspec
|
402
402
|
- docs/quickstart.adoc
|
403
403
|
- lib/asciidoctor/standoc/base.rb
|
404
|
-
- lib/asciidoctor/standoc/basicdoc.rng
|
405
|
-
- lib/asciidoctor/standoc/biblio.rng
|
406
404
|
- lib/asciidoctor/standoc/blocks.rb
|
407
405
|
- lib/asciidoctor/standoc/blocks_notes.rb
|
408
406
|
- lib/asciidoctor/standoc/cleanup.rb
|
@@ -423,15 +421,16 @@ files:
|
|
423
421
|
- lib/asciidoctor/standoc/cleanup_terms.rb
|
424
422
|
- lib/asciidoctor/standoc/cleanup_terms_designations.rb
|
425
423
|
- lib/asciidoctor/standoc/cleanup_text.rb
|
424
|
+
- lib/asciidoctor/standoc/cleanup_toc.rb
|
426
425
|
- lib/asciidoctor/standoc/cleanup_xref.rb
|
427
426
|
- lib/asciidoctor/standoc/converter.rb
|
428
427
|
- lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb
|
429
428
|
- lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb
|
430
429
|
- lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb
|
430
|
+
- lib/asciidoctor/standoc/deprecated.rb
|
431
431
|
- lib/asciidoctor/standoc/front.rb
|
432
432
|
- lib/asciidoctor/standoc/front_contributor.rb
|
433
433
|
- lib/asciidoctor/standoc/inline.rb
|
434
|
-
- lib/asciidoctor/standoc/isodoc.rng
|
435
434
|
- lib/asciidoctor/standoc/lists.rb
|
436
435
|
- lib/asciidoctor/standoc/macros.rb
|
437
436
|
- lib/asciidoctor/standoc/macros_form.rb
|
@@ -439,11 +438,10 @@ files:
|
|
439
438
|
- lib/asciidoctor/standoc/macros_plantuml.rb
|
440
439
|
- lib/asciidoctor/standoc/macros_terms.rb
|
441
440
|
- lib/asciidoctor/standoc/ref.rb
|
442
|
-
- lib/asciidoctor/standoc/ref_date_id.rb
|
443
441
|
- lib/asciidoctor/standoc/ref_sect.rb
|
442
|
+
- lib/asciidoctor/standoc/ref_utility.rb
|
444
443
|
- lib/asciidoctor/standoc/render.rb
|
445
444
|
- lib/asciidoctor/standoc/reqt.rb
|
446
|
-
- lib/asciidoctor/standoc/reqt.rng
|
447
445
|
- lib/asciidoctor/standoc/section.rb
|
448
446
|
- lib/asciidoctor/standoc/table.rb
|
449
447
|
- lib/asciidoctor/standoc/term_lookup_cleanup.rb
|
@@ -451,8 +449,6 @@ files:
|
|
451
449
|
- lib/asciidoctor/standoc/utils.rb
|
452
450
|
- lib/asciidoctor/standoc/validate.rb
|
453
451
|
- lib/asciidoctor/standoc/validate_section.rb
|
454
|
-
- lib/asciidoctor/standoc/views/datamodel/model_representation.adoc.erb
|
455
|
-
- lib/asciidoctor/standoc/views/datamodel/plantuml_representation.adoc.erb
|
456
452
|
- lib/isodoc/base.standard.xsl
|
457
453
|
- lib/isodoc/html/html_titlepage.html
|
458
454
|
- lib/isodoc/html/htmlstyle.css
|
@@ -461,30 +457,63 @@ files:
|
|
461
457
|
- lib/isodoc/pdf_convert.rb
|
462
458
|
- lib/metanorma-standoc.rb
|
463
459
|
- lib/metanorma/standoc.rb
|
460
|
+
- lib/metanorma/standoc/base.rb
|
461
|
+
- lib/metanorma/standoc/basicdoc.rng
|
462
|
+
- lib/metanorma/standoc/biblio.rng
|
463
|
+
- lib/metanorma/standoc/blocks.rb
|
464
|
+
- lib/metanorma/standoc/blocks_notes.rb
|
465
|
+
- lib/metanorma/standoc/cleanup.rb
|
466
|
+
- lib/metanorma/standoc/cleanup_amend.rb
|
467
|
+
- lib/metanorma/standoc/cleanup_block.rb
|
468
|
+
- lib/metanorma/standoc/cleanup_boilerplate.rb
|
469
|
+
- lib/metanorma/standoc/cleanup_footnotes.rb
|
470
|
+
- lib/metanorma/standoc/cleanup_image.rb
|
471
|
+
- lib/metanorma/standoc/cleanup_inline.rb
|
472
|
+
- lib/metanorma/standoc/cleanup_maths.rb
|
473
|
+
- lib/metanorma/standoc/cleanup_ref.rb
|
474
|
+
- lib/metanorma/standoc/cleanup_ref_dl.rb
|
475
|
+
- lib/metanorma/standoc/cleanup_reqt.rb
|
476
|
+
- lib/metanorma/standoc/cleanup_section.rb
|
477
|
+
- lib/metanorma/standoc/cleanup_section_names.rb
|
478
|
+
- lib/metanorma/standoc/cleanup_symbols.rb
|
479
|
+
- lib/metanorma/standoc/cleanup_table.rb
|
480
|
+
- lib/metanorma/standoc/cleanup_terms.rb
|
481
|
+
- lib/metanorma/standoc/cleanup_terms_designations.rb
|
482
|
+
- lib/metanorma/standoc/cleanup_text.rb
|
483
|
+
- lib/metanorma/standoc/cleanup_toc.rb
|
484
|
+
- lib/metanorma/standoc/cleanup_xref.rb
|
485
|
+
- lib/metanorma/standoc/converter.rb
|
486
|
+
- lib/metanorma/standoc/datamodel/attributes_table_preprocessor.rb
|
487
|
+
- lib/metanorma/standoc/datamodel/diagram_preprocessor.rb
|
488
|
+
- lib/metanorma/standoc/datamodel/plantuml_renderer.rb
|
489
|
+
- lib/metanorma/standoc/front.rb
|
490
|
+
- lib/metanorma/standoc/front_contributor.rb
|
491
|
+
- lib/metanorma/standoc/inline.rb
|
492
|
+
- lib/metanorma/standoc/isodoc.rng
|
493
|
+
- lib/metanorma/standoc/lists.rb
|
494
|
+
- lib/metanorma/standoc/macros.rb
|
495
|
+
- lib/metanorma/standoc/macros_form.rb
|
496
|
+
- lib/metanorma/standoc/macros_note.rb
|
497
|
+
- lib/metanorma/standoc/macros_plantuml.rb
|
498
|
+
- lib/metanorma/standoc/macros_terms.rb
|
464
499
|
- lib/metanorma/standoc/processor.rb
|
500
|
+
- lib/metanorma/standoc/ref.rb
|
501
|
+
- lib/metanorma/standoc/ref_sect.rb
|
502
|
+
- lib/metanorma/standoc/ref_utility.rb
|
503
|
+
- lib/metanorma/standoc/render.rb
|
504
|
+
- lib/metanorma/standoc/reqt.rb
|
505
|
+
- lib/metanorma/standoc/reqt.rng
|
506
|
+
- lib/metanorma/standoc/section.rb
|
507
|
+
- lib/metanorma/standoc/table.rb
|
508
|
+
- lib/metanorma/standoc/term_lookup_cleanup.rb
|
509
|
+
- lib/metanorma/standoc/terms.rb
|
510
|
+
- lib/metanorma/standoc/utils.rb
|
511
|
+
- lib/metanorma/standoc/validate.rb
|
512
|
+
- lib/metanorma/standoc/validate_section.rb
|
465
513
|
- lib/metanorma/standoc/version.rb
|
514
|
+
- lib/metanorma/standoc/views/datamodel/model_representation.adoc.erb
|
515
|
+
- lib/metanorma/standoc/views/datamodel/plantuml_representation.adoc.erb
|
466
516
|
- metanorma-standoc.gemspec
|
467
|
-
- spec/asciidoctor/base_spec.rb
|
468
|
-
- spec/asciidoctor/blank_spec.rb
|
469
|
-
- spec/asciidoctor/blocks_spec.rb
|
470
|
-
- spec/asciidoctor/cleanup_blocks_spec.rb
|
471
|
-
- spec/asciidoctor/cleanup_sections_spec.rb
|
472
|
-
- spec/asciidoctor/cleanup_spec.rb
|
473
|
-
- spec/asciidoctor/cleanup_terms_spec.rb
|
474
|
-
- spec/asciidoctor/datamodel/attributes_table_preprocessor_spec.rb
|
475
|
-
- spec/asciidoctor/datamodel/diagram_preprocessor_spec.rb
|
476
|
-
- spec/asciidoctor/inline_spec.rb
|
477
|
-
- spec/asciidoctor/isobib_cache_spec.rb
|
478
|
-
- spec/asciidoctor/lists_spec.rb
|
479
|
-
- spec/asciidoctor/macros_json2text_spec.rb
|
480
|
-
- spec/asciidoctor/macros_plantuml_spec.rb
|
481
|
-
- spec/asciidoctor/macros_spec.rb
|
482
|
-
- spec/asciidoctor/macros_yaml2text_spec.rb
|
483
|
-
- spec/asciidoctor/refs_dl_spec.rb
|
484
|
-
- spec/asciidoctor/refs_spec.rb
|
485
|
-
- spec/asciidoctor/section_spec.rb
|
486
|
-
- spec/asciidoctor/table_spec.rb
|
487
|
-
- spec/asciidoctor/validate_spec.rb
|
488
517
|
- spec/assets/boilerplate.xml
|
489
518
|
- spec/assets/codes.yml
|
490
519
|
- spec/assets/header.html
|
@@ -556,7 +585,28 @@ files:
|
|
556
585
|
- spec/fixtures/macros_datamodel/top_down_diagram.xml
|
557
586
|
- spec/fixtures/test.exp
|
558
587
|
- spec/fixtures/test.xmi
|
588
|
+
- spec/metanorma/base_spec.rb
|
589
|
+
- spec/metanorma/blank_spec.rb
|
590
|
+
- spec/metanorma/blocks_spec.rb
|
591
|
+
- spec/metanorma/cleanup_blocks_spec.rb
|
592
|
+
- spec/metanorma/cleanup_sections_spec.rb
|
593
|
+
- spec/metanorma/cleanup_spec.rb
|
594
|
+
- spec/metanorma/cleanup_terms_spec.rb
|
595
|
+
- spec/metanorma/datamodel/attributes_table_preprocessor_spec.rb
|
596
|
+
- spec/metanorma/datamodel/diagram_preprocessor_spec.rb
|
597
|
+
- spec/metanorma/inline_spec.rb
|
598
|
+
- spec/metanorma/isobib_cache_spec.rb
|
599
|
+
- spec/metanorma/lists_spec.rb
|
600
|
+
- spec/metanorma/macros_json2text_spec.rb
|
601
|
+
- spec/metanorma/macros_plantuml_spec.rb
|
602
|
+
- spec/metanorma/macros_spec.rb
|
603
|
+
- spec/metanorma/macros_yaml2text_spec.rb
|
559
604
|
- spec/metanorma/processor_spec.rb
|
605
|
+
- spec/metanorma/refs_dl_spec.rb
|
606
|
+
- spec/metanorma/refs_spec.rb
|
607
|
+
- spec/metanorma/section_spec.rb
|
608
|
+
- spec/metanorma/table_spec.rb
|
609
|
+
- spec/metanorma/validate_spec.rb
|
560
610
|
- spec/spec_helper.rb
|
561
611
|
- spec/support/shared_examples/structured_data_2_text_preprocessor.rb
|
562
612
|
- spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml
|