metanorma-standoc 2.2.0 → 2.2.1.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +12 -0
  3. data/lib/metanorma/standoc/blocks.rb +25 -15
  4. data/lib/metanorma/standoc/cleanup_biblio.rb +14 -8
  5. data/lib/metanorma/standoc/cleanup_reqt.rb +3 -136
  6. data/lib/metanorma/standoc/front.rb +6 -1
  7. data/lib/metanorma/standoc/front_contributor.rb +0 -10
  8. data/lib/metanorma/standoc/macros_inline.rb +1 -1
  9. data/lib/metanorma/standoc/reqt.rb +19 -75
  10. data/lib/metanorma/standoc/section.rb +35 -3
  11. data/lib/metanorma/standoc/utils.rb +9 -43
  12. data/lib/metanorma/standoc/validate.rb +1 -69
  13. data/lib/metanorma/standoc/validate_table.rb +91 -0
  14. data/lib/metanorma/standoc/version.rb +1 -1
  15. data/metanorma-standoc.gemspec +2 -2
  16. data/spec/metanorma/biblio_spec.rb +9 -9
  17. data/spec/metanorma/blocks_spec.rb +20 -266
  18. data/spec/metanorma/cleanup_blocks_spec.rb +0 -168
  19. data/spec/metanorma/macros_concept_spec.rb +1033 -0
  20. data/spec/metanorma/macros_spec.rb +1 -1031
  21. data/spec/metanorma/refs_spec.rb +0 -2
  22. data/spec/metanorma/reqt_spec.rb +130 -0
  23. data/spec/metanorma/section_spec.rb +5 -0
  24. data/spec/metanorma/validate_spec.rb +46 -6
  25. data/spec/vcr_cassettes/bsi16341.yml +80 -52
  26. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +94 -94
  27. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +10 -10
  28. data/spec/vcr_cassettes/hide_refs.yml +74 -74
  29. data/spec/vcr_cassettes/isobib_get_123.yml +11 -11
  30. data/spec/vcr_cassettes/isobib_get_123_1.yml +22 -22
  31. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +30 -30
  32. data/spec/vcr_cassettes/isobib_get_123_2.yml +23 -23
  33. data/spec/vcr_cassettes/isobib_get_123_2001.yml +9 -9
  34. data/spec/vcr_cassettes/isobib_get_124.yml +10 -10
  35. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +30 -60
  36. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +45 -45
  37. data/spec/vcr_cassettes/std-link.yml +11 -11
  38. metadata +10 -7
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Connection:
24
24
  - keep-alive
25
25
  Content-Length:
26
- - '787'
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/"1a06323f16680b977113cc9e03dfec8cff100d25616cf31f665dc13c5f898cc7"
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
- - 6290:7721:B49DE:11BEE1:62E2A2DC
44
+ - 657C:7C43:167131:24B673:630395DE
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Thu, 28 Jul 2022 14:53:16 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-mel11267-MEL
52
+ - cache-mel11235-MEL
53
53
  X-Cache:
54
54
  - MISS
55
55
  X-Cache-Hits:
56
56
  - '0'
57
57
  X-Timer:
58
- - S1659019996.247672,VS0,VE280
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
- - d237d3168ee881d1f5f40099b55441c2c255ba5a
64
+ - 63860644dfcca91c1f0ccd3daf30b391d9eabbac
65
65
  Expires:
66
- - Thu, 28 Jul 2022 14:58:16 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-27'
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: Thu, 28 Jul 2022 14:53:16 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
- - '787'
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/"1a06323f16680b977113cc9e03dfec8cff100d25616cf31f665dc13c5f898cc7"
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
- - 6290:7721:B49DE:11BEE1:62E2A2DC
201
+ - 657C:7C43:167131:24B673:630395DE
217
202
  Accept-Ranges:
218
203
  - bytes
219
204
  Date:
220
- - Thu, 28 Jul 2022 14:53:16 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-mel11247-MEL
209
+ - cache-mel11280-MEL
225
210
  X-Cache:
226
211
  - HIT
227
212
  X-Cache-Hits:
228
213
  - '1'
229
214
  X-Timer:
230
- - S1659019996.249969,VS0,VE278
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
- - 4b00c7cf50c0f711cbebfd157445fb104e862674
221
+ - 9bc5c96c38cddc62744df479ff48dc4d74cdc8f4
237
222
  Expires:
238
- - Thu, 28 Jul 2022 14:58:16 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-27'
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: Thu, 28 Jul 2022 14:53:16 GMT
316
+ recorded_at: Mon, 22 Aug 2022 14:42:38 GMT
347
317
  recorded_with: VCR 6.1.0