metanorma-standoc 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +61 -22
  3. data/lib/metanorma/standoc/blocks.rb +3 -3
  4. data/lib/metanorma/standoc/cleanup_boilerplate.rb +3 -3
  5. data/lib/metanorma/standoc/cleanup_ref.rb +31 -2
  6. data/lib/metanorma/standoc/cleanup_ref_dl.rb +20 -16
  7. data/lib/metanorma/standoc/cleanup_section.rb +1 -1
  8. data/lib/metanorma/standoc/cleanup_terms_designations.rb +4 -2
  9. data/lib/metanorma/standoc/cleanup_xref.rb +70 -8
  10. data/lib/metanorma/standoc/converter.rb +1 -0
  11. data/lib/metanorma/standoc/inline.rb +21 -12
  12. data/lib/metanorma/standoc/isodoc.rng +63 -3
  13. data/lib/metanorma/standoc/macros.rb +13 -1
  14. data/lib/metanorma/standoc/macros_embed.rb +1 -1
  15. data/lib/metanorma/standoc/ref.rb +5 -6
  16. data/lib/metanorma/standoc/render.rb +7 -3
  17. data/lib/metanorma/standoc/table.rb +8 -10
  18. data/lib/metanorma/standoc/term_lookup_cleanup.rb +2 -1
  19. data/lib/metanorma/standoc/utils.rb +3 -1
  20. data/lib/metanorma/standoc/version.rb +1 -1
  21. data/spec/metanorma/base_spec.rb +1 -1
  22. data/spec/metanorma/cleanup_spec.rb +10 -10
  23. data/spec/metanorma/cleanup_terms_spec.rb +1 -1
  24. data/spec/metanorma/inline_spec.rb +31 -0
  25. data/spec/metanorma/macros_plantuml_spec.rb +41 -42
  26. data/spec/metanorma/macros_spec.rb +138 -2
  27. data/spec/metanorma/processor_spec.rb +17 -13
  28. data/spec/metanorma/refs_spec.rb +129 -2
  29. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +45 -45
  30. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +10 -10
  31. data/spec/vcr_cassettes/hide_refs.yml +39 -39
  32. data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
  33. data/spec/vcr_cassettes/isobib_get_123_1.yml +23 -23
  34. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +28 -28
  35. data/spec/vcr_cassettes/isobib_get_123_2001.yml +11 -11
  36. data/spec/vcr_cassettes/isobib_get_124.yml +12 -12
  37. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +18 -18
  38. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +75 -65
  39. metadata +2 -2
@@ -41,29 +41,29 @@ http_interactions:
41
41
  X-Xss-Protection:
42
42
  - 1; mode=block
43
43
  X-Github-Request-Id:
44
- - A152:1CCB:C9BA2:4A383D:62007811
44
+ - C1FA:08F6:267A1D:3B69E0:6225842F
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Mon, 07 Feb 2022 01:38:26 GMT
48
+ - Mon, 07 Mar 2022 04:03:59 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-mel11283-MEL
52
+ - cache-mel11228-MEL
53
53
  X-Cache:
54
- - MISS
54
+ - HIT
55
55
  X-Cache-Hits:
56
- - '0'
56
+ - '1'
57
57
  X-Timer:
58
- - S1644197906.601813,VS0,VE412
58
+ - S1646625839.382427,VS0,VE445
59
59
  Vary:
60
60
  - Authorization,Accept-Encoding,Origin
61
61
  Access-Control-Allow-Origin:
62
62
  - "*"
63
63
  X-Fastly-Request-Id:
64
- - 1d695eee270f4e82f6483bdf7c1b757893d232e0
64
+ - 12addc88fcd96bcfe5cda1cb81d41cb8786b9401
65
65
  Expires:
66
- - Mon, 07 Feb 2022 01:43:26 GMT
66
+ - Mon, 07 Mar 2022 04:08:59 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: Mon, 07 Feb 2022 01:38:25 GMT
87
+ recorded_at: Mon, 07 Mar 2022 04:03:59 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
- - A152:1CCB:C9BA2:4A383D:62007811
129
+ - C1FA:08F6:267A1D:3B69E0:6225842F
130
130
  Accept-Ranges:
131
131
  - bytes
132
132
  Date:
133
- - Mon, 07 Feb 2022 01:38:26 GMT
133
+ - Mon, 07 Mar 2022 04:03:59 GMT
134
134
  Via:
135
135
  - 1.1 varnish
136
136
  X-Served-By:
137
- - cache-mel11232-MEL
137
+ - cache-mel11278-MEL
138
138
  X-Cache:
139
- - HIT
139
+ - MISS
140
140
  X-Cache-Hits:
141
- - '1'
141
+ - '0'
142
142
  X-Timer:
143
- - S1644197906.601791,VS0,VE412
143
+ - S1646625839.379929,VS0,VE448
144
144
  Vary:
145
145
  - Authorization,Accept-Encoding,Origin
146
146
  Access-Control-Allow-Origin:
147
147
  - "*"
148
148
  X-Fastly-Request-Id:
149
- - bb72d7ec4a606b2103089ec7c76f2af92fb76ded
149
+ - f59921294c00ec4badc5e0216a4b225ab7b37056
150
150
  Expires:
151
- - Mon, 07 Feb 2022 01:43:26 GMT
151
+ - Mon, 07 Mar 2022 04:08:59 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: Mon, 07 Feb 2022 01:38:25 GMT
172
+ recorded_at: Mon, 07 Mar 2022 04:03:59 GMT
173
173
  recorded_with: VCR 5.0.0