metanorma-standoc 1.11.0 → 1.11.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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/lib/asciidoctor/standoc/base.rb +4 -100
  4. data/lib/asciidoctor/standoc/blocks.rb +1 -1
  5. data/lib/asciidoctor/standoc/cleanup.rb +2 -1
  6. data/lib/asciidoctor/standoc/cleanup_block.rb +1 -2
  7. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +28 -20
  8. data/lib/asciidoctor/standoc/cleanup_inline.rb +14 -4
  9. data/lib/asciidoctor/standoc/cleanup_ref_dl.rb +25 -15
  10. data/lib/asciidoctor/standoc/cleanup_reqt.rb +3 -3
  11. data/lib/asciidoctor/standoc/cleanup_section_names.rb +2 -2
  12. data/lib/asciidoctor/standoc/cleanup_terms.rb +58 -21
  13. data/lib/asciidoctor/standoc/cleanup_terms_designations.rb +50 -19
  14. data/lib/asciidoctor/standoc/cleanup_text.rb +23 -0
  15. data/lib/asciidoctor/standoc/datamodel/attributes_table_preprocessor.rb +6 -6
  16. data/lib/asciidoctor/standoc/front.rb +1 -1
  17. data/lib/asciidoctor/standoc/inline.rb +13 -11
  18. data/lib/asciidoctor/standoc/isodoc.rng +68 -18
  19. data/lib/asciidoctor/standoc/lists.rb +1 -3
  20. data/lib/asciidoctor/standoc/ref.rb +101 -75
  21. data/lib/asciidoctor/standoc/ref_date_id.rb +30 -1
  22. data/lib/asciidoctor/standoc/ref_sect.rb +18 -7
  23. data/lib/asciidoctor/standoc/render.rb +117 -0
  24. data/lib/asciidoctor/standoc/reqt.rb +1 -1
  25. data/lib/asciidoctor/standoc/section.rb +20 -15
  26. data/lib/asciidoctor/standoc/utils.rb +0 -16
  27. data/lib/asciidoctor/standoc/validate.rb +1 -1
  28. data/lib/isodoc/html/htmlstyle.css +1 -1
  29. data/lib/isodoc/html/htmlstyle.scss +1 -1
  30. data/lib/metanorma/standoc/version.rb +1 -1
  31. data/metanorma-standoc.gemspec +3 -3
  32. data/spec/asciidoctor/blocks_spec.rb +99 -17
  33. data/spec/asciidoctor/cleanup_blocks_spec.rb +24 -0
  34. data/spec/asciidoctor/cleanup_sections_spec.rb +1 -1
  35. data/spec/asciidoctor/cleanup_spec.rb +6 -6
  36. data/spec/asciidoctor/cleanup_terms_spec.rb +448 -89
  37. data/spec/asciidoctor/datamodel/attributes_table_preprocessor_spec.rb +21 -21
  38. data/spec/asciidoctor/datamodel/diagram_preprocessor_spec.rb +16 -16
  39. data/spec/asciidoctor/inline_spec.rb +5 -5
  40. data/spec/asciidoctor/isobib_cache_spec.rb +4 -8
  41. data/spec/asciidoctor/macros_spec.rb +2 -2
  42. data/spec/asciidoctor/refs_dl_spec.rb +4 -4
  43. data/spec/asciidoctor/refs_spec.rb +858 -498
  44. data/spec/asciidoctor/section_spec.rb +32 -3
  45. data/spec/spec_helper.rb +2 -2
  46. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +179 -179
  47. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +14 -14
  48. data/spec/vcr_cassettes/isobib_get_123.yml +13 -13
  49. data/spec/vcr_cassettes/isobib_get_123_1.yml +96 -96
  50. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +108 -108
  51. data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -12
  52. data/spec/vcr_cassettes/isobib_get_124.yml +13 -13
  53. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +18 -18
  54. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +46 -46
  55. metadata +9 -8
@@ -41,29 +41,29 @@ http_interactions:
41
41
  X-Xss-Protection:
42
42
  - 1; mode=block
43
43
  X-Github-Request-Id:
44
- - 66B6:0F09:19680:66A6B:6172AB04
44
+ - 75DC:50CF:67D81:D1728:61AC94FF
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Fri, 22 Oct 2021 12:13:57 GMT
48
+ - Sun, 05 Dec 2021 10:31:27 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-mel11259-MEL
52
+ - cache-mel11268-MEL
53
53
  X-Cache:
54
- - MISS
54
+ - HIT
55
55
  X-Cache-Hits:
56
- - '0'
56
+ - '1'
57
57
  X-Timer:
58
- - S1634904837.793240,VS0,VE470
58
+ - S1638700287.218060,VS0,VE472
59
59
  Vary:
60
60
  - Authorization,Accept-Encoding,Origin
61
61
  Access-Control-Allow-Origin:
62
62
  - "*"
63
63
  X-Fastly-Request-Id:
64
- - c6f8d3eaf952cd963e6d550bd3d266921dcddb1a
64
+ - 7ab486da77543b20907c67f0d6a5d21a1f7385f8
65
65
  Expires:
66
- - Fri, 22 Oct 2021 12:18:57 GMT
66
+ - Sun, 05 Dec 2021 10:36:27 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, 22 Oct 2021 12:13:57 GMT
87
+ recorded_at: Sun, 05 Dec 2021 10:31:27 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
- - 66B6:0F09:19680:66A6B:6172AB04
129
+ - 75DC:50CF:67D81:D1728:61AC94FF
130
130
  Accept-Ranges:
131
131
  - bytes
132
132
  Date:
133
- - Fri, 22 Oct 2021 12:13:57 GMT
133
+ - Sun, 05 Dec 2021 10:31:27 GMT
134
134
  Via:
135
135
  - 1.1 varnish
136
136
  X-Served-By:
137
- - cache-mel11240-MEL
137
+ - cache-mel11223-MEL
138
138
  X-Cache:
139
- - HIT
139
+ - MISS
140
140
  X-Cache-Hits:
141
- - '1'
141
+ - '0'
142
142
  X-Timer:
143
- - S1634904837.452263,VS0,VE0
143
+ - S1638700287.210747,VS0,VE479
144
144
  Vary:
145
145
  - Authorization,Accept-Encoding,Origin
146
146
  Access-Control-Allow-Origin:
147
147
  - "*"
148
148
  X-Fastly-Request-Id:
149
- - 8bacf1781aa4f1cac4c1bb0d94537f7c1adf256e
149
+ - 5819a26442cd8c48a90d178b05f33e3e5bb0fd24
150
150
  Expires:
151
- - Fri, 22 Oct 2021 12:18:57 GMT
151
+ - Sun, 05 Dec 2021 10:36:27 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, 22 Oct 2021 12:13:57 GMT
172
+ recorded_at: Sun, 05 Dec 2021 10:31:27 GMT
173
173
  recorded_with: VCR 5.0.0