metanorma-standoc 2.1.5 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +13 -0
  3. data/lib/metanorma/standoc/blocks.rb +26 -17
  4. data/lib/metanorma/standoc/cleanup.rb +1 -1
  5. data/lib/metanorma/standoc/cleanup_biblio.rb +210 -0
  6. data/lib/metanorma/standoc/cleanup_block.rb +6 -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 +3 -103
  10. data/lib/metanorma/standoc/cleanup_symbols.rb +1 -1
  11. data/lib/metanorma/standoc/cleanup_text.rb +10 -8
  12. data/lib/metanorma/standoc/cleanup_xref.rb +1 -2
  13. data/lib/metanorma/standoc/converter.rb +2 -0
  14. data/lib/metanorma/standoc/front.rb +1 -1
  15. data/lib/metanorma/standoc/front_contributor.rb +0 -10
  16. data/lib/metanorma/standoc/inline.rb +8 -4
  17. data/lib/metanorma/standoc/isodoc.rng +6 -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 +1 -1
  22. data/lib/metanorma/standoc/reqt.rb +19 -75
  23. data/lib/metanorma/standoc/reqt.rng +1 -1
  24. data/lib/metanorma/standoc/section.rb +35 -3
  25. data/lib/metanorma/standoc/utils.rb +9 -43
  26. data/lib/metanorma/standoc/validate.rb +1 -69
  27. data/lib/metanorma/standoc/validate_table.rb +91 -0
  28. data/lib/metanorma/standoc/version.rb +1 -1
  29. data/metanorma-standoc.gemspec +4 -5
  30. data/spec/metanorma/{refs_dl_spec.rb → biblio_spec.rb} +90 -7
  31. data/spec/metanorma/blocks_spec.rb +31 -267
  32. data/spec/metanorma/cleanup_blocks_spec.rb +0 -171
  33. data/spec/metanorma/inline_spec.rb +4 -0
  34. data/spec/metanorma/macros_concept_spec.rb +1033 -0
  35. data/spec/metanorma/macros_spec.rb +2 -1030
  36. data/spec/metanorma/refs_spec.rb +0 -2
  37. data/spec/metanorma/reqt_spec.rb +130 -0
  38. data/spec/metanorma/section_spec.rb +5 -0
  39. data/spec/metanorma/validate_spec.rb +46 -6
  40. data/spec/vcr_cassettes/bsi16341.yml +80 -52
  41. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +94 -94
  42. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +12 -12
  43. data/spec/vcr_cassettes/hide_refs.yml +70 -70
  44. data/spec/vcr_cassettes/isobib_get_123.yml +11 -11
  45. data/spec/vcr_cassettes/isobib_get_123_1.yml +23 -23
  46. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +35 -35
  47. data/spec/vcr_cassettes/isobib_get_123_2.yml +22 -22
  48. data/spec/vcr_cassettes/isobib_get_123_2001.yml +13 -13
  49. data/spec/vcr_cassettes/isobib_get_124.yml +11 -11
  50. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +34 -64
  51. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +45 -45
  52. data/spec/vcr_cassettes/std-link.yml +12 -12
  53. metadata +15 -11
  54. 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
+ - '754'
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/"0a9e1ae56f51f33cedb11573e16d5d4fbffdf58bb2d8fe23a531c82fa636e9f9"
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
+ - 657C:7C43:167131:24B673:630395DE
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Sun, 03 Jul 2022 14:26:15 GMT
48
+ - Mon, 22 Aug 2022 14:42:38 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-mel11264-MEL
52
+ - cache-mel11235-MEL
53
53
  X-Cache:
54
- - HIT
54
+ - MISS
55
55
  X-Cache-Hits:
56
- - '1'
56
+ - '0'
57
57
  X-Timer:
58
- - S1656858375.016084,VS0,VE316
58
+ - S1661179359.503221,VS0,VE320
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
+ - 63860644dfcca91c1f0ccd3daf30b391d9eabbac
65
65
  Expires:
66
- - Sun, 03 Jul 2022 14:31:15 GMT
66
+ - Mon, 22 Aug 2022 14:47:38 GMT
67
67
  Source-Age:
68
68
  - '0'
69
69
  body:
@@ -72,9 +72,9 @@ http_interactions:
72
72
  ---
73
73
  id: RFC8341
74
74
  title:
75
- - type: main
76
- content: Network Configuration Access Control Model
75
+ - content: Network Configuration Access Control Model
77
76
  format: text/plain
77
+ type: main
78
78
  link:
79
79
  - content: https://www.rfc-editor.org/info/rfc8341
80
80
  type: src
@@ -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
@@ -95,12 +92,6 @@ http_interactions:
95
92
  contributor:
96
93
  - person:
97
94
  name:
98
- initial:
99
- - content: A
100
- language:
101
- - en
102
- script:
103
- - Latn
104
95
  surname:
105
96
  content: Bierman
106
97
  language:
@@ -117,12 +108,6 @@ http_interactions:
117
108
  - author
118
109
  - person:
119
110
  name:
120
- initial:
121
- - content: M
122
- language:
123
- - en
124
- script:
125
- - Latn
126
111
  surname:
127
112
  content: Bjorklund
128
113
  language:
@@ -164,14 +149,14 @@ http_interactions:
164
149
  content: RFC
165
150
  format: text/plain
166
151
  number: '8341'
167
- fetched: '2022-07-02'
152
+ fetched: '2022-08-21'
168
153
  keyword:
169
- - NETCONF RESTCONF
170
- - YANG
171
- - XML
154
+ - content: NETCONF RESTCONF
155
+ - content: YANG
156
+ - content: XML
172
157
  editorialgroup:
173
158
  - name: netconf
174
- recorded_at: Sun, 03 Jul 2022 14:26:15 GMT
159
+ recorded_at: Mon, 22 Aug 2022 14:42:38 GMT
175
160
  - request:
176
161
  method: get
177
162
  uri: https://raw.githubusercontent.com/relaton/relaton-data-rfcs/main/data/RFC8341.yaml
@@ -195,7 +180,7 @@ http_interactions:
195
180
  Connection:
196
181
  - keep-alive
197
182
  Content-Length:
198
- - '786'
183
+ - '754'
199
184
  Cache-Control:
200
185
  - max-age=300
201
186
  Content-Security-Policy:
@@ -203,7 +188,7 @@ http_interactions:
203
188
  Content-Type:
204
189
  - text/plain; charset=utf-8
205
190
  Etag:
206
- - W/"ba8ced7fe0d05774d5e7a25fb925f2a8af59f9380e39a65a59e2bcf1205d3d59"
191
+ - W/"0a9e1ae56f51f33cedb11573e16d5d4fbffdf58bb2d8fe23a531c82fa636e9f9"
207
192
  Strict-Transport-Security:
208
193
  - max-age=31536000
209
194
  X-Content-Type-Options:
@@ -213,29 +198,29 @@ http_interactions:
213
198
  X-Xss-Protection:
214
199
  - 1; mode=block
215
200
  X-Github-Request-Id:
216
- - C132:0194:2B49:6927:62C1A707
201
+ - 657C:7C43:167131:24B673:630395DE
217
202
  Accept-Ranges:
218
203
  - bytes
219
204
  Date:
220
- - Sun, 03 Jul 2022 14:26:15 GMT
205
+ - Mon, 22 Aug 2022 14:42:38 GMT
221
206
  Via:
222
207
  - 1.1 varnish
223
208
  X-Served-By:
224
- - cache-mel11262-MEL
209
+ - cache-mel11280-MEL
225
210
  X-Cache:
226
- - MISS
211
+ - HIT
227
212
  X-Cache-Hits:
228
- - '0'
213
+ - '1'
229
214
  X-Timer:
230
- - S1656858375.016194,VS0,VE316
215
+ - S1661179359.510352,VS0,VE313
231
216
  Vary:
232
217
  - Authorization,Accept-Encoding,Origin
233
218
  Access-Control-Allow-Origin:
234
219
  - "*"
235
220
  X-Fastly-Request-Id:
236
- - 054cc30ffe4f2b55f069520abf07fcceda2e5aab
221
+ - 9bc5c96c38cddc62744df479ff48dc4d74cdc8f4
237
222
  Expires:
238
- - Sun, 03 Jul 2022 14:31:15 GMT
223
+ - Mon, 22 Aug 2022 14:47:38 GMT
239
224
  Source-Age:
240
225
  - '0'
241
226
  body:
@@ -244,9 +229,9 @@ http_interactions:
244
229
  ---
245
230
  id: RFC8341
246
231
  title:
247
- - type: main
248
- content: Network Configuration Access Control Model
232
+ - content: Network Configuration Access Control Model
249
233
  format: text/plain
234
+ type: main
250
235
  link:
251
236
  - content: https://www.rfc-editor.org/info/rfc8341
252
237
  type: src
@@ -255,9 +240,6 @@ http_interactions:
255
240
  - id: RFC 8341
256
241
  type: IETF
257
242
  primary: true
258
- - id: RFC8341
259
- type: IETF
260
- scope: anchor
261
243
  - id: 10.17487/RFC8341
262
244
  type: DOI
263
245
  docnumber: RFC8341
@@ -267,12 +249,6 @@ http_interactions:
267
249
  contributor:
268
250
  - person:
269
251
  name:
270
- initial:
271
- - content: A
272
- language:
273
- - en
274
- script:
275
- - Latn
276
252
  surname:
277
253
  content: Bierman
278
254
  language:
@@ -289,12 +265,6 @@ http_interactions:
289
265
  - author
290
266
  - person:
291
267
  name:
292
- initial:
293
- - content: M
294
- language:
295
- - en
296
- script:
297
- - Latn
298
268
  surname:
299
269
  content: Bjorklund
300
270
  language:
@@ -336,12 +306,12 @@ http_interactions:
336
306
  content: RFC
337
307
  format: text/plain
338
308
  number: '8341'
339
- fetched: '2022-07-02'
309
+ fetched: '2022-08-21'
340
310
  keyword:
341
- - NETCONF RESTCONF
342
- - YANG
343
- - XML
311
+ - content: NETCONF RESTCONF
312
+ - content: YANG
313
+ - content: XML
344
314
  editorialgroup:
345
315
  - name: netconf
346
- recorded_at: Sun, 03 Jul 2022 14:26:15 GMT
316
+ recorded_at: Mon, 22 Aug 2022 14:42:38 GMT
347
317
  recorded_with: VCR 6.1.0