metanorma-standoc 2.1.4 → 2.2.0.1

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +1 -0
  3. data/lib/metanorma/standoc/blocks.rb +3 -7
  4. data/lib/metanorma/standoc/cleanup.rb +4 -2
  5. data/lib/metanorma/standoc/cleanup_biblio.rb +204 -0
  6. data/lib/metanorma/standoc/cleanup_block.rb +46 -4
  7. data/lib/metanorma/standoc/cleanup_maths.rb +2 -15
  8. data/lib/metanorma/standoc/cleanup_ref.rb +22 -13
  9. data/lib/metanorma/standoc/cleanup_reqt.rb +37 -4
  10. data/lib/metanorma/standoc/cleanup_symbols.rb +1 -1
  11. data/lib/metanorma/standoc/cleanup_terms.rb +6 -2
  12. data/lib/metanorma/standoc/cleanup_text.rb +10 -8
  13. data/lib/metanorma/standoc/cleanup_xref.rb +1 -2
  14. data/lib/metanorma/standoc/converter.rb +2 -0
  15. data/lib/metanorma/standoc/front.rb +1 -1
  16. data/lib/metanorma/standoc/inline.rb +8 -4
  17. data/lib/metanorma/standoc/isodoc.rng +16 -1
  18. data/lib/metanorma/standoc/macros.rb +1 -180
  19. data/lib/metanorma/standoc/macros_inline.rb +194 -0
  20. data/lib/metanorma/standoc/ref_sect.rb +2 -2
  21. data/lib/metanorma/standoc/ref_utility.rb +5 -6
  22. data/lib/metanorma/standoc/reqt.rb +5 -5
  23. data/lib/metanorma/standoc/reqt.rng +1 -1
  24. data/lib/metanorma/standoc/section.rb +2 -0
  25. data/lib/metanorma/standoc/term_lookup_cleanup.rb +1 -1
  26. data/lib/metanorma/standoc/utils.rb +1 -1
  27. data/lib/metanorma/standoc/validate.rb +1 -69
  28. data/lib/metanorma/standoc/validate_table.rb +91 -0
  29. data/lib/metanorma/standoc/version.rb +1 -1
  30. data/metanorma-standoc.gemspec +2 -3
  31. data/spec/metanorma/{refs_dl_spec.rb → biblio_spec.rb} +84 -1
  32. data/spec/metanorma/blocks_spec.rb +68 -8
  33. data/spec/metanorma/cleanup_blocks_spec.rb +107 -27
  34. data/spec/metanorma/inline_spec.rb +4 -0
  35. data/spec/metanorma/isobib_cache_spec.rb +6 -4
  36. data/spec/metanorma/macros_spec.rb +6 -2
  37. data/spec/metanorma/refs_spec.rb +261 -232
  38. data/spec/metanorma/validate_spec.rb +106 -7
  39. data/spec/vcr_cassettes/bsi16341.yml +63 -51
  40. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +62 -62
  41. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +12 -12
  42. data/spec/vcr_cassettes/hide_refs.yml +58 -58
  43. data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
  44. data/spec/vcr_cassettes/isobib_get_123_1.yml +22 -22
  45. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +33 -33
  46. data/spec/vcr_cassettes/isobib_get_123_2.yml +295 -0
  47. data/spec/vcr_cassettes/isobib_get_123_2001.yml +11 -11
  48. data/spec/vcr_cassettes/isobib_get_124.yml +12 -12
  49. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +24 -30
  50. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +46 -46
  51. data/spec/vcr_cassettes/std-link.yml +14 -72
  52. metadata +9 -6
  53. data/lib/metanorma/standoc/cleanup_ref_dl.rb +0 -113
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Connection:
24
24
  - keep-alive
25
25
  Content-Length:
26
- - '786'
26
+ - '778'
27
27
  Cache-Control:
28
28
  - max-age=300
29
29
  Content-Security-Policy:
@@ -31,7 +31,7 @@ http_interactions:
31
31
  Content-Type:
32
32
  - text/plain; charset=utf-8
33
33
  Etag:
34
- - W/"ba8ced7fe0d05774d5e7a25fb925f2a8af59f9380e39a65a59e2bcf1205d3d59"
34
+ - W/"6a43130302ce1d2dc27672bd7b353016364ab833e2dc2bcf1a85620bba618e55"
35
35
  Strict-Transport-Security:
36
36
  - max-age=31536000
37
37
  X-Content-Type-Options:
@@ -41,29 +41,29 @@ http_interactions:
41
41
  X-Xss-Protection:
42
42
  - 1; mode=block
43
43
  X-Github-Request-Id:
44
- - C132:0194:2B49:6927:62C1A707
44
+ - 9170:3A4F:4AA5B:6EF85:62FA1F10
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Sun, 03 Jul 2022 14:26:15 GMT
48
+ - Mon, 15 Aug 2022 10:25:20 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-mel11264-MEL
52
+ - cache-mel11230-MEL
53
53
  X-Cache:
54
54
  - HIT
55
55
  X-Cache-Hits:
56
56
  - '1'
57
57
  X-Timer:
58
- - S1656858375.016084,VS0,VE316
58
+ - S1660559121.526959,VS0,VE315
59
59
  Vary:
60
60
  - Authorization,Accept-Encoding,Origin
61
61
  Access-Control-Allow-Origin:
62
62
  - "*"
63
63
  X-Fastly-Request-Id:
64
- - c16de1901e00155069c295774d9f262274ac12a0
64
+ - d4969ebb701e51624fa5f7a156befe9592b64c73
65
65
  Expires:
66
- - Sun, 03 Jul 2022 14:31:15 GMT
66
+ - Mon, 15 Aug 2022 10:30:20 GMT
67
67
  Source-Age:
68
68
  - '0'
69
69
  body:
@@ -83,9 +83,6 @@ http_interactions:
83
83
  - id: RFC 8341
84
84
  type: IETF
85
85
  primary: true
86
- - id: RFC8341
87
- type: IETF
88
- scope: anchor
89
86
  - id: 10.17487/RFC8341
90
87
  type: DOI
91
88
  docnumber: RFC8341
@@ -96,7 +93,7 @@ http_interactions:
96
93
  - person:
97
94
  name:
98
95
  initial:
99
- - content: A
96
+ - content: A.
100
97
  language:
101
98
  - en
102
99
  script:
@@ -118,7 +115,7 @@ http_interactions:
118
115
  - person:
119
116
  name:
120
117
  initial:
121
- - content: M
118
+ - content: M.
122
119
  language:
123
120
  - en
124
121
  script:
@@ -164,14 +161,14 @@ http_interactions:
164
161
  content: RFC
165
162
  format: text/plain
166
163
  number: '8341'
167
- fetched: '2022-07-02'
164
+ fetched: '2022-08-14'
168
165
  keyword:
169
166
  - NETCONF RESTCONF
170
167
  - YANG
171
168
  - XML
172
169
  editorialgroup:
173
170
  - name: netconf
174
- recorded_at: Sun, 03 Jul 2022 14:26:15 GMT
171
+ recorded_at: Mon, 15 Aug 2022 10:25:20 GMT
175
172
  - request:
176
173
  method: get
177
174
  uri: https://raw.githubusercontent.com/relaton/relaton-data-rfcs/main/data/RFC8341.yaml
@@ -195,7 +192,7 @@ http_interactions:
195
192
  Connection:
196
193
  - keep-alive
197
194
  Content-Length:
198
- - '786'
195
+ - '778'
199
196
  Cache-Control:
200
197
  - max-age=300
201
198
  Content-Security-Policy:
@@ -203,7 +200,7 @@ http_interactions:
203
200
  Content-Type:
204
201
  - text/plain; charset=utf-8
205
202
  Etag:
206
- - W/"ba8ced7fe0d05774d5e7a25fb925f2a8af59f9380e39a65a59e2bcf1205d3d59"
203
+ - W/"6a43130302ce1d2dc27672bd7b353016364ab833e2dc2bcf1a85620bba618e55"
207
204
  Strict-Transport-Security:
208
205
  - max-age=31536000
209
206
  X-Content-Type-Options:
@@ -213,29 +210,29 @@ http_interactions:
213
210
  X-Xss-Protection:
214
211
  - 1; mode=block
215
212
  X-Github-Request-Id:
216
- - C132:0194:2B49:6927:62C1A707
213
+ - 9170:3A4F:4AA5B:6EF85:62FA1F10
217
214
  Accept-Ranges:
218
215
  - bytes
219
216
  Date:
220
- - Sun, 03 Jul 2022 14:26:15 GMT
217
+ - Mon, 15 Aug 2022 10:25:20 GMT
221
218
  Via:
222
219
  - 1.1 varnish
223
220
  X-Served-By:
224
- - cache-mel11262-MEL
221
+ - cache-mel11260-MEL
225
222
  X-Cache:
226
223
  - MISS
227
224
  X-Cache-Hits:
228
225
  - '0'
229
226
  X-Timer:
230
- - S1656858375.016194,VS0,VE316
227
+ - S1660559121.525539,VS0,VE317
231
228
  Vary:
232
229
  - Authorization,Accept-Encoding,Origin
233
230
  Access-Control-Allow-Origin:
234
231
  - "*"
235
232
  X-Fastly-Request-Id:
236
- - 054cc30ffe4f2b55f069520abf07fcceda2e5aab
233
+ - 296581e3aea4b74236cf528516f5d228359b242a
237
234
  Expires:
238
- - Sun, 03 Jul 2022 14:31:15 GMT
235
+ - Mon, 15 Aug 2022 10:30:20 GMT
239
236
  Source-Age:
240
237
  - '0'
241
238
  body:
@@ -255,9 +252,6 @@ http_interactions:
255
252
  - id: RFC 8341
256
253
  type: IETF
257
254
  primary: true
258
- - id: RFC8341
259
- type: IETF
260
- scope: anchor
261
255
  - id: 10.17487/RFC8341
262
256
  type: DOI
263
257
  docnumber: RFC8341
@@ -268,7 +262,7 @@ http_interactions:
268
262
  - person:
269
263
  name:
270
264
  initial:
271
- - content: A
265
+ - content: A.
272
266
  language:
273
267
  - en
274
268
  script:
@@ -290,7 +284,7 @@ http_interactions:
290
284
  - person:
291
285
  name:
292
286
  initial:
293
- - content: M
287
+ - content: M.
294
288
  language:
295
289
  - en
296
290
  script:
@@ -336,12 +330,12 @@ http_interactions:
336
330
  content: RFC
337
331
  format: text/plain
338
332
  number: '8341'
339
- fetched: '2022-07-02'
333
+ fetched: '2022-08-14'
340
334
  keyword:
341
335
  - NETCONF RESTCONF
342
336
  - YANG
343
337
  - XML
344
338
  editorialgroup:
345
339
  - name: netconf
346
- recorded_at: Sun, 03 Jul 2022 14:26:15 GMT
340
+ recorded_at: Mon, 15 Aug 2022 10:25:20 GMT
347
341
  recorded_with: VCR 6.1.0