metanorma-standoc 1.10.5 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +19 -23
  3. data/Rakefile +1 -1
  4. data/lib/asciidoctor/standoc/base.rb +14 -17
  5. data/lib/asciidoctor/standoc/basicdoc.rng +21 -4
  6. data/lib/asciidoctor/standoc/blocks.rb +26 -23
  7. data/lib/asciidoctor/standoc/blocks_notes.rb +17 -22
  8. data/lib/asciidoctor/standoc/cleanup.rb +46 -12
  9. data/lib/asciidoctor/standoc/cleanup_block.rb +5 -70
  10. data/lib/asciidoctor/standoc/cleanup_image.rb +6 -7
  11. data/lib/asciidoctor/standoc/cleanup_inline.rb +44 -102
  12. data/lib/asciidoctor/standoc/cleanup_maths.rb +5 -6
  13. data/lib/asciidoctor/standoc/cleanup_ref.rb +5 -0
  14. data/lib/asciidoctor/standoc/cleanup_reqt.rb +51 -33
  15. data/lib/asciidoctor/standoc/cleanup_section_names.rb +5 -5
  16. data/lib/asciidoctor/standoc/cleanup_symbols.rb +48 -0
  17. data/lib/asciidoctor/standoc/cleanup_table.rb +68 -0
  18. data/lib/asciidoctor/standoc/cleanup_terms.rb +38 -78
  19. data/lib/asciidoctor/standoc/cleanup_terms_designations.rb +162 -0
  20. data/lib/asciidoctor/standoc/cleanup_text.rb +5 -2
  21. data/lib/asciidoctor/standoc/cleanup_xref.rb +107 -0
  22. data/lib/asciidoctor/standoc/converter.rb +15 -0
  23. data/lib/asciidoctor/standoc/inline.rb +7 -5
  24. data/lib/asciidoctor/standoc/isodoc.rng +435 -78
  25. data/lib/asciidoctor/standoc/lists.rb +15 -15
  26. data/lib/asciidoctor/standoc/macros.rb +14 -43
  27. data/lib/asciidoctor/standoc/macros_note.rb +45 -0
  28. data/lib/asciidoctor/standoc/macros_plantuml.rb +29 -14
  29. data/lib/asciidoctor/standoc/macros_terms.rb +82 -20
  30. data/lib/asciidoctor/standoc/ref_sect.rb +24 -17
  31. data/lib/asciidoctor/standoc/reqt.rb +2 -2
  32. data/lib/asciidoctor/standoc/reqt.rng +23 -2
  33. data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +50 -11
  34. data/lib/asciidoctor/standoc/terms.rb +21 -3
  35. data/lib/asciidoctor/standoc/utils.rb +36 -23
  36. data/lib/asciidoctor/standoc/validate.rb +45 -27
  37. data/lib/asciidoctor/standoc/validate_section.rb +5 -2
  38. data/lib/metanorma/standoc/version.rb +1 -1
  39. data/metanorma-standoc.gemspec +1 -1
  40. data/spec/asciidoctor/base_spec.rb +4 -36
  41. data/spec/asciidoctor/blank_spec.rb +37 -0
  42. data/spec/asciidoctor/blocks_spec.rb +296 -47
  43. data/spec/asciidoctor/cleanup_blocks_spec.rb +1018 -0
  44. data/spec/asciidoctor/cleanup_sections_spec.rb +153 -12
  45. data/spec/asciidoctor/cleanup_spec.rb +179 -1265
  46. data/spec/asciidoctor/cleanup_terms_spec.rb +990 -0
  47. data/spec/asciidoctor/inline_spec.rb +38 -2
  48. data/spec/asciidoctor/lists_spec.rb +6 -6
  49. data/spec/asciidoctor/macros_plantuml_spec.rb +37 -2
  50. data/spec/asciidoctor/macros_spec.rb +226 -138
  51. data/spec/asciidoctor/refs_spec.rb +4 -26
  52. data/spec/asciidoctor/section_spec.rb +18 -18
  53. data/spec/asciidoctor/validate_spec.rb +109 -1
  54. data/spec/assets/xref_error.adoc +1 -0
  55. data/spec/fixtures/datamodel_description_sections_tree.xml +327 -326
  56. data/spec/spec_helper.rb +6 -7
  57. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +51 -51
  58. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +13 -13
  59. data/spec/vcr_cassettes/isobib_get_123.yml +13 -13
  60. data/spec/vcr_cassettes/isobib_get_123_1.yml +26 -26
  61. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +34 -34
  62. data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -12
  63. data/spec/vcr_cassettes/isobib_get_124.yml +13 -13
  64. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +16 -16
  65. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +51 -49
  66. metadata +13 -5
@@ -41,29 +41,29 @@ http_interactions:
41
41
  X-Xss-Protection:
42
42
  - 1; mode=block
43
43
  X-Github-Request-Id:
44
- - '0962:3546:1CB4EC:288C0A:6128D25C'
44
+ - 66B6:0F09:19680:66A6B:6172AB04
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Fri, 27 Aug 2021 11:54:04 GMT
48
+ - Fri, 22 Oct 2021 12:13:57 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-mel11228-MEL
52
+ - cache-mel11259-MEL
53
53
  X-Cache:
54
54
  - MISS
55
55
  X-Cache-Hits:
56
56
  - '0'
57
57
  X-Timer:
58
- - S1630065245.544317,VS0,VE407
58
+ - S1634904837.793240,VS0,VE470
59
59
  Vary:
60
- - Authorization,Accept-Encoding
60
+ - Authorization,Accept-Encoding,Origin
61
61
  Access-Control-Allow-Origin:
62
62
  - "*"
63
63
  X-Fastly-Request-Id:
64
- - 0ec3e91aeeab1fd5cd1e2ce0d6d5b210cd6dda6e
64
+ - c6f8d3eaf952cd963e6d550bd3d266921dcddb1a
65
65
  Expires:
66
- - Fri, 27 Aug 2021 11:59:04 GMT
66
+ - Fri, 22 Oct 2021 12:18:57 GMT
67
67
  Source-Age:
68
68
  - '0'
69
69
  body:
@@ -84,7 +84,7 @@ http_interactions:
84
84
  <seriesInfo name='DOI' value='10.17487/RFC8341'/>
85
85
  </reference>
86
86
  http_version:
87
- recorded_at: Fri, 27 Aug 2021 11:54:05 GMT
87
+ recorded_at: Fri, 22 Oct 2021 12:13:57 GMT
88
88
  - request:
89
89
  method: get
90
90
  uri: https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
@@ -126,29 +126,29 @@ http_interactions:
126
126
  X-Xss-Protection:
127
127
  - 1; mode=block
128
128
  X-Github-Request-Id:
129
- - '0962:3546:1CB4EC:288C0A:6128D25C'
129
+ - 66B6:0F09:19680:66A6B:6172AB04
130
130
  Accept-Ranges:
131
131
  - bytes
132
132
  Date:
133
- - Fri, 27 Aug 2021 11:54:05 GMT
133
+ - Fri, 22 Oct 2021 12:13:57 GMT
134
134
  Via:
135
135
  - 1.1 varnish
136
136
  X-Served-By:
137
- - cache-mel11279-MEL
137
+ - cache-mel11240-MEL
138
138
  X-Cache:
139
139
  - HIT
140
140
  X-Cache-Hits:
141
141
  - '1'
142
142
  X-Timer:
143
- - S1630065245.148725,VS0,VE0
143
+ - S1634904837.452263,VS0,VE0
144
144
  Vary:
145
- - Authorization,Accept-Encoding
145
+ - Authorization,Accept-Encoding,Origin
146
146
  Access-Control-Allow-Origin:
147
147
  - "*"
148
148
  X-Fastly-Request-Id:
149
- - 349b172de7d5e43135be295b64e9ac46969fe095
149
+ - 8bacf1781aa4f1cac4c1bb0d94537f7c1adf256e
150
150
  Expires:
151
- - Fri, 27 Aug 2021 11:59:05 GMT
151
+ - Fri, 22 Oct 2021 12:18:57 GMT
152
152
  Source-Age:
153
153
  - '0'
154
154
  body:
@@ -169,5 +169,5 @@ http_interactions:
169
169
  <seriesInfo name='DOI' value='10.17487/RFC8341'/>
170
170
  </reference>
171
171
  http_version:
172
- recorded_at: Fri, 27 Aug 2021 11:54:05 GMT
172
+ recorded_at: Fri, 22 Oct 2021 12:13:57 GMT
173
173
  recorded_with: VCR 5.0.0