metanorma-standoc 1.3.28 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +8 -7
  3. data/.github/workflows/ubuntu.yml +14 -11
  4. data/.github/workflows/windows.yml +8 -8
  5. data/.gitignore +1 -0
  6. data/lib/asciidoctor/standoc/base.rb +29 -48
  7. data/lib/asciidoctor/standoc/biblio.rng +36 -6
  8. data/lib/asciidoctor/standoc/blocks.rb +32 -96
  9. data/lib/asciidoctor/standoc/blocks_notes.rb +89 -0
  10. data/lib/asciidoctor/standoc/cleanup.rb +12 -6
  11. data/lib/asciidoctor/standoc/cleanup_block.rb +5 -2
  12. data/lib/asciidoctor/standoc/cleanup_inline.rb +1 -1
  13. data/lib/asciidoctor/standoc/cleanup_ref.rb +47 -1
  14. data/lib/asciidoctor/standoc/cleanup_section.rb +8 -125
  15. data/lib/asciidoctor/standoc/cleanup_terms.rb +134 -0
  16. data/lib/asciidoctor/standoc/converter.rb +16 -0
  17. data/lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb +57 -0
  18. data/lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb +102 -0
  19. data/lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb +408 -0
  20. data/lib/asciidoctor/standoc/inline.rb +11 -6
  21. data/lib/asciidoctor/standoc/isodoc.rng +444 -1
  22. data/lib/asciidoctor/standoc/lists.rb +12 -12
  23. data/lib/asciidoctor/standoc/macros.rb +13 -8
  24. data/lib/asciidoctor/standoc/macros_yaml2text.rb +44 -21
  25. data/lib/asciidoctor/standoc/ref.rb +78 -79
  26. data/lib/asciidoctor/standoc/ref_sect.rb +124 -0
  27. data/lib/asciidoctor/standoc/reqt.rb +11 -6
  28. data/lib/asciidoctor/standoc/reqt.rng +23 -0
  29. data/lib/asciidoctor/standoc/section.rb +2 -46
  30. data/lib/asciidoctor/standoc/table.rb +3 -2
  31. data/lib/asciidoctor/standoc/validate.rb +8 -2
  32. data/lib/asciidoctor/standoc/validate_section.rb +0 -2
  33. data/lib/asciidoctor/standoc/views/datamodel/model_representation.adoc.erb +30 -0
  34. data/lib/asciidoctor/standoc/views/datamodel/plantuml_representation.adoc.erb +20 -0
  35. data/lib/metanorma/standoc/processor.rb +5 -7
  36. data/lib/metanorma/standoc/version.rb +1 -1
  37. data/metanorma-standoc.gemspec +2 -2
  38. data/spec/asciidoctor-standoc/blocks_spec.rb +68 -23
  39. data/spec/asciidoctor-standoc/cleanup_spec.rb +85 -5
  40. data/spec/asciidoctor-standoc/datamodel/attributes_table_preprocessor_spec.rb +111 -0
  41. data/spec/asciidoctor-standoc/datamodel/diagram_preprocessor_spec.rb +72 -0
  42. data/spec/asciidoctor-standoc/inline_spec.rb +7 -3
  43. data/spec/asciidoctor-standoc/isobib_cache_spec.rb +4 -4
  44. data/spec/asciidoctor-standoc/lists_spec.rb +7 -5
  45. data/spec/asciidoctor-standoc/macros_spec.rb +54 -2
  46. data/spec/asciidoctor-standoc/macros_yaml2text_spec.rb +2 -1
  47. data/spec/asciidoctor-standoc/refs_dl_spec.rb +4 -2
  48. data/spec/asciidoctor-standoc/refs_spec.rb +283 -24
  49. data/spec/asciidoctor-standoc/table_spec.rb +3 -3
  50. data/spec/asciidoctor-standoc/validate_spec.rb +77 -7
  51. data/spec/assets/iso123.rxl +107 -0
  52. data/spec/assets/xref_error.adoc +7 -0
  53. data/spec/examples/datamodel/address_class_profile.adoc +4 -0
  54. data/spec/examples/datamodel/address_component_profile.adoc +4 -0
  55. data/spec/examples/datamodel/blank_definition_profile.adoc +4 -0
  56. data/spec/examples/datamodel/common_models_diagram.adoc +4 -0
  57. data/spec/examples/datamodel/models/models/AddressClassProfile.yml +90 -0
  58. data/spec/examples/datamodel/models/models/AddressComponentProfile.yml +63 -0
  59. data/spec/examples/datamodel/models/models/AddressComponentSpecification.yml +15 -0
  60. data/spec/examples/datamodel/models/models/AddressProfile.yml +36 -0
  61. data/spec/examples/datamodel/models/models/AttributeProfile.yml +32 -0
  62. data/spec/examples/datamodel/models/models/InterchangeAddressClassProfile.yml +79 -0
  63. data/spec/examples/datamodel/models/models/Localization copy.yml +23 -0
  64. data/spec/examples/datamodel/models/models/Localization.yml +23 -0
  65. data/spec/examples/datamodel/models/models/ProfileCompliantAddress.yml +36 -0
  66. data/spec/examples/datamodel/models/models/ProfileCompliantAddressComponent.yml +15 -0
  67. data/spec/examples/datamodel/models/models/Signature.yml +20 -0
  68. data/spec/examples/datamodel/models/models/SignatureBlankDefinition.yml +20 -0
  69. data/spec/examples/datamodel/models/models/TextDirectionCode copy.yml +16 -0
  70. data/spec/examples/datamodel/models/models/TextDirectionCode.yml +16 -0
  71. data/spec/examples/datamodel/models/models/Validity.yml +14 -0
  72. data/spec/examples/datamodel/models/models/iso19160-1/Address.yml +22 -0
  73. data/spec/examples/datamodel/models/models/iso19160-1/AddressComponent.yml +2 -0
  74. data/spec/examples/datamodel/models/style.uml.inc +37 -0
  75. data/spec/examples/datamodel/models/views/CommonModels.yml +9 -0
  76. data/spec/examples/datamodel/models/views/TopDown.yml +62 -0
  77. data/spec/examples/datamodel/top_down_diagram.adoc +4 -0
  78. data/spec/fixtures/macros_datamodel/address_class_profile.xml +149 -0
  79. data/spec/fixtures/macros_datamodel/address_component_profile.xml +71 -0
  80. data/spec/fixtures/macros_datamodel/blank_definition_profile.xml +51 -0
  81. data/spec/fixtures/macros_datamodel/common_models_diagram.xml +7 -0
  82. data/spec/fixtures/macros_datamodel/top_down_diagram.xml +7 -0
  83. data/spec/metanorma/processor_spec.rb +4 -4
  84. data/spec/spec_helper.rb +13 -2
  85. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +85 -85
  86. data/spec/vcr_cassettes/isobib_get_123.yml +19 -198
  87. data/spec/vcr_cassettes/isobib_get_123_1.yml +361 -0
  88. data/spec/vcr_cassettes/isobib_get_123_2001.yml +22 -22
  89. data/spec/vcr_cassettes/isobib_get_124.yml +21 -21
  90. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +10 -10
  91. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +47 -44
  92. metadata +53 -11
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.3.28
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2020-07-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: 1.0.20
47
+ version: 1.1.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: 1.0.20
54
+ version: 1.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: iev
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.0.0
75
+ version: 1.2.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.0.0
82
+ version: 1.2.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: relaton-iev
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -354,6 +354,7 @@ files:
354
354
  - lib/asciidoctor/standoc/basicdoc.rng
355
355
  - lib/asciidoctor/standoc/biblio.rng
356
356
  - lib/asciidoctor/standoc/blocks.rb
357
+ - lib/asciidoctor/standoc/blocks_notes.rb
357
358
  - lib/asciidoctor/standoc/cleanup.rb
358
359
  - lib/asciidoctor/standoc/cleanup_block.rb
359
360
  - lib/asciidoctor/standoc/cleanup_boilerplate.rb
@@ -361,7 +362,11 @@ files:
361
362
  - lib/asciidoctor/standoc/cleanup_inline.rb
362
363
  - lib/asciidoctor/standoc/cleanup_ref.rb
363
364
  - lib/asciidoctor/standoc/cleanup_section.rb
365
+ - lib/asciidoctor/standoc/cleanup_terms.rb
364
366
  - lib/asciidoctor/standoc/converter.rb
367
+ - lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb
368
+ - lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb
369
+ - lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb
365
370
  - lib/asciidoctor/standoc/front.rb
366
371
  - lib/asciidoctor/standoc/front_contributor.rb
367
372
  - lib/asciidoctor/standoc/i18n.rb
@@ -373,6 +378,7 @@ files:
373
378
  - lib/asciidoctor/standoc/macros_plantuml.rb
374
379
  - lib/asciidoctor/standoc/macros_yaml2text.rb
375
380
  - lib/asciidoctor/standoc/ref.rb
381
+ - lib/asciidoctor/standoc/ref_sect.rb
376
382
  - lib/asciidoctor/standoc/reqt.rb
377
383
  - lib/asciidoctor/standoc/reqt.rng
378
384
  - lib/asciidoctor/standoc/section.rb
@@ -380,6 +386,8 @@ files:
380
386
  - lib/asciidoctor/standoc/utils.rb
381
387
  - lib/asciidoctor/standoc/validate.rb
382
388
  - lib/asciidoctor/standoc/validate_section.rb
389
+ - lib/asciidoctor/standoc/views/datamodel/model_representation.adoc.erb
390
+ - lib/asciidoctor/standoc/views/datamodel/plantuml_representation.adoc.erb
383
391
  - lib/metanorma-standoc.rb
384
392
  - lib/metanorma/standoc.rb
385
393
  - lib/metanorma/standoc/latexml_requirement.rb
@@ -390,6 +398,8 @@ files:
390
398
  - spec/asciidoctor-standoc/base_spec.rb
391
399
  - spec/asciidoctor-standoc/blocks_spec.rb
392
400
  - spec/asciidoctor-standoc/cleanup_spec.rb
401
+ - spec/asciidoctor-standoc/datamodel/attributes_table_preprocessor_spec.rb
402
+ - spec/asciidoctor-standoc/datamodel/diagram_preprocessor_spec.rb
393
403
  - spec/asciidoctor-standoc/inline_spec.rb
394
404
  - spec/asciidoctor-standoc/isobib_cache_spec.rb
395
405
  - spec/asciidoctor-standoc/lists_spec.rb
@@ -409,14 +419,41 @@ files:
409
419
  - spec/assets/i18n.yaml
410
420
  - spec/assets/iso.headless.html
411
421
  - spec/assets/iso.xml
422
+ - spec/assets/iso123.rxl
412
423
  - spec/assets/rice_image1.png
413
424
  - spec/assets/scripts.html
414
425
  - spec/assets/std.css
415
426
  - spec/assets/word.css
416
427
  - spec/assets/wordcover.html
417
428
  - spec/assets/wordintro.html
429
+ - spec/assets/xref_error.adoc
418
430
  - spec/examples/103_01_02.html
419
431
  - spec/examples/codes_table.html
432
+ - spec/examples/datamodel/address_class_profile.adoc
433
+ - spec/examples/datamodel/address_component_profile.adoc
434
+ - spec/examples/datamodel/blank_definition_profile.adoc
435
+ - spec/examples/datamodel/common_models_diagram.adoc
436
+ - spec/examples/datamodel/models/models/AddressClassProfile.yml
437
+ - spec/examples/datamodel/models/models/AddressComponentProfile.yml
438
+ - spec/examples/datamodel/models/models/AddressComponentSpecification.yml
439
+ - spec/examples/datamodel/models/models/AddressProfile.yml
440
+ - spec/examples/datamodel/models/models/AttributeProfile.yml
441
+ - spec/examples/datamodel/models/models/InterchangeAddressClassProfile.yml
442
+ - spec/examples/datamodel/models/models/Localization copy.yml
443
+ - spec/examples/datamodel/models/models/Localization.yml
444
+ - spec/examples/datamodel/models/models/ProfileCompliantAddress.yml
445
+ - spec/examples/datamodel/models/models/ProfileCompliantAddressComponent.yml
446
+ - spec/examples/datamodel/models/models/Signature.yml
447
+ - spec/examples/datamodel/models/models/SignatureBlankDefinition.yml
448
+ - spec/examples/datamodel/models/models/TextDirectionCode copy.yml
449
+ - spec/examples/datamodel/models/models/TextDirectionCode.yml
450
+ - spec/examples/datamodel/models/models/Validity.yml
451
+ - spec/examples/datamodel/models/models/iso19160-1/Address.yml
452
+ - spec/examples/datamodel/models/models/iso19160-1/AddressComponent.yml
453
+ - spec/examples/datamodel/models/style.uml.inc
454
+ - spec/examples/datamodel/models/views/CommonModels.yml
455
+ - spec/examples/datamodel/models/views/TopDown.yml
456
+ - spec/examples/datamodel/top_down_diagram.adoc
420
457
  - spec/examples/english.yaml
421
458
  - spec/examples/iso_123_.xml
422
459
  - spec/examples/iso_123_all_parts.xml
@@ -432,10 +469,16 @@ files:
432
469
  - spec/examples/rice_images/rice_image3_1.png
433
470
  - spec/examples/rice_images/rice_image3_2.png
434
471
  - spec/examples/rice_images/rice_image3_3.png
472
+ - spec/fixtures/macros_datamodel/address_class_profile.xml
473
+ - spec/fixtures/macros_datamodel/address_component_profile.xml
474
+ - spec/fixtures/macros_datamodel/blank_definition_profile.xml
475
+ - spec/fixtures/macros_datamodel/common_models_diagram.xml
476
+ - spec/fixtures/macros_datamodel/top_down_diagram.xml
435
477
  - spec/metanorma/processor_spec.rb
436
478
  - spec/spec_helper.rb
437
479
  - spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml
438
480
  - spec/vcr_cassettes/isobib_get_123.yml
481
+ - spec/vcr_cassettes/isobib_get_123_1.yml
439
482
  - spec/vcr_cassettes/isobib_get_123_2001.yml
440
483
  - spec/vcr_cassettes/isobib_get_124.yml
441
484
  - spec/vcr_cassettes/rfcbib_get_rfc8341.yml
@@ -444,7 +487,7 @@ homepage: https://github.com/metanorma/metanorma-standoc
444
487
  licenses:
445
488
  - BSD-2-Clause
446
489
  metadata: {}
447
- post_install_message:
490
+ post_install_message:
448
491
  rdoc_options: []
449
492
  require_paths:
450
493
  - lib
@@ -459,9 +502,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
459
502
  - !ruby/object:Gem::Version
460
503
  version: '0'
461
504
  requirements: []
462
- rubyforge_project:
463
- rubygems_version: 2.7.6
464
- signing_key:
505
+ rubygems_version: 3.0.3
506
+ signing_key:
465
507
  specification_version: 4
466
508
  summary: metanorma-standoc realises standards following the Metanorma standoc model
467
509
  test_files: []