metanorma-standoc 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +1 -1
  3. data/lib/metanorma/standoc/basicdoc.rng +5 -3
  4. data/lib/metanorma/standoc/biblio.rng +5 -3
  5. data/lib/metanorma/standoc/cleanup_image.rb +117 -3
  6. data/lib/metanorma/standoc/cleanup_ref.rb +1 -1
  7. data/lib/metanorma/standoc/cleanup_section.rb +1 -1
  8. data/lib/metanorma/standoc/cleanup_xref.rb +12 -5
  9. data/lib/metanorma/standoc/isodoc.rng +10 -0
  10. data/lib/metanorma/standoc/ref.rb +6 -1
  11. data/lib/metanorma/standoc/ref_utility.rb +2 -1
  12. data/lib/metanorma/standoc/term_lookup_cleanup.rb +8 -6
  13. data/lib/metanorma/standoc/terms.rb +10 -7
  14. data/lib/metanorma/standoc/validate.rb +7 -2
  15. data/lib/metanorma/standoc/version.rb +1 -1
  16. data/spec/metanorma/cleanup_blocks_spec.rb +136 -0
  17. data/spec/metanorma/cleanup_spec.rb +3 -3
  18. data/spec/metanorma/isobib_cache_spec.rb +2 -2
  19. data/spec/metanorma/macros_spec.rb +61 -0
  20. data/spec/metanorma/refs_spec.rb +505 -460
  21. data/spec/metanorma/section_spec.rb +1 -1
  22. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +46 -46
  23. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +12 -12
  24. data/spec/vcr_cassettes/hide_refs.yml +98 -98
  25. data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
  26. data/spec/vcr_cassettes/isobib_get_123_1.yml +25 -25
  27. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +35 -35
  28. data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -12
  29. data/spec/vcr_cassettes/isobib_get_124.yml +11 -11
  30. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +14 -14
  31. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +61 -51
  32. 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
- - FC1C:687B:3368D1:47BB30:61DC1925
44
+ - A152:1CCB:C9BA2:4A383D:62007811
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Mon, 10 Jan 2022 11:31:49 GMT
48
+ - Mon, 07 Feb 2022 01:38:26 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-mel11252-MEL
52
+ - cache-mel11283-MEL
53
53
  X-Cache:
54
54
  - MISS
55
55
  X-Cache-Hits:
56
56
  - '0'
57
57
  X-Timer:
58
- - S1641814309.391903,VS0,VE467
58
+ - S1644197906.601813,VS0,VE412
59
59
  Vary:
60
60
  - Authorization,Accept-Encoding,Origin
61
61
  Access-Control-Allow-Origin:
62
62
  - "*"
63
63
  X-Fastly-Request-Id:
64
- - 8dd513635b83f379bfb924a5e093eb5c0ac905f3
64
+ - 1d695eee270f4e82f6483bdf7c1b757893d232e0
65
65
  Expires:
66
- - Mon, 10 Jan 2022 11:36:49 GMT
66
+ - Mon, 07 Feb 2022 01:43:26 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, 10 Jan 2022 11:31:49 GMT
87
+ recorded_at: Mon, 07 Feb 2022 01:38:25 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
- - FC1C:687B:3368D1:47BB30:61DC1925
129
+ - A152:1CCB:C9BA2:4A383D:62007811
130
130
  Accept-Ranges:
131
131
  - bytes
132
132
  Date:
133
- - Mon, 10 Jan 2022 11:31:49 GMT
133
+ - Mon, 07 Feb 2022 01:38:26 GMT
134
134
  Via:
135
135
  - 1.1 varnish
136
136
  X-Served-By:
137
- - cache-mel11234-MEL
137
+ - cache-mel11232-MEL
138
138
  X-Cache:
139
139
  - HIT
140
140
  X-Cache-Hits:
141
141
  - '1'
142
142
  X-Timer:
143
- - S1641814309.398580,VS0,VE461
143
+ - S1644197906.601791,VS0,VE412
144
144
  Vary:
145
145
  - Authorization,Accept-Encoding,Origin
146
146
  Access-Control-Allow-Origin:
147
147
  - "*"
148
148
  X-Fastly-Request-Id:
149
- - 37d6d3d456681743ba5ae1dc4f12be0469f053c7
149
+ - bb72d7ec4a606b2103089ec7c76f2af92fb76ded
150
150
  Expires:
151
- - Mon, 10 Jan 2022 11:36:49 GMT
151
+ - Mon, 07 Feb 2022 01:43:26 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, 10 Jan 2022 11:31:49 GMT
172
+ recorded_at: Mon, 07 Feb 2022 01:38:25 GMT
173
173
  recorded_with: VCR 5.0.0