metanorma-standoc 2.2.0.1 → 2.2.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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +12 -0
  3. data/lib/metanorma/standoc/blocks.rb +26 -13
  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_contributor.rb +0 -10
  7. data/lib/metanorma/standoc/reqt.rb +19 -75
  8. data/lib/metanorma/standoc/section.rb +35 -3
  9. data/lib/metanorma/standoc/utils.rb +9 -43
  10. data/lib/metanorma/standoc/version.rb +1 -1
  11. data/metanorma-standoc.gemspec +2 -2
  12. data/spec/metanorma/biblio_spec.rb +8 -8
  13. data/spec/metanorma/blocks_spec.rb +20 -266
  14. data/spec/metanorma/cleanup_blocks_spec.rb +0 -168
  15. data/spec/metanorma/macros_concept_spec.rb +1033 -0
  16. data/spec/metanorma/macros_spec.rb +0 -1030
  17. data/spec/metanorma/reqt_spec.rb +130 -0
  18. data/spec/metanorma/section_spec.rb +5 -0
  19. data/spec/vcr_cassettes/bsi16341.yml +52 -36
  20. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +88 -88
  21. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +10 -10
  22. data/spec/vcr_cassettes/hide_refs.yml +65 -65
  23. data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
  24. data/spec/vcr_cassettes/isobib_get_123_1.yml +22 -22
  25. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +30 -30
  26. data/spec/vcr_cassettes/isobib_get_123_2.yml +21 -21
  27. data/spec/vcr_cassettes/isobib_get_123_2001.yml +11 -11
  28. data/spec/vcr_cassettes/isobib_get_124.yml +11 -11
  29. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +34 -58
  30. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +45 -45
  31. data/spec/vcr_cassettes/std-link.yml +11 -11
  32. metadata +9 -7
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Connection:
24
24
  - keep-alive
25
25
  Content-Length:
26
- - '778'
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/"6a43130302ce1d2dc27672bd7b353016364ab833e2dc2bcf1a85620bba618e55"
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
- - 9170:3A4F:4AA5B:6EF85:62FA1F10
44
+ - 657C:7C43:167131:24B673:630395DE
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Mon, 15 Aug 2022 10:25:20 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-mel11230-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
- - S1660559121.526959,VS0,VE315
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
- - d4969ebb701e51624fa5f7a156befe9592b64c73
64
+ - 63860644dfcca91c1f0ccd3daf30b391d9eabbac
65
65
  Expires:
66
- - Mon, 15 Aug 2022 10:30:20 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
@@ -92,12 +92,6 @@ http_interactions:
92
92
  contributor:
93
93
  - person:
94
94
  name:
95
- initial:
96
- - content: A.
97
- language:
98
- - en
99
- script:
100
- - Latn
101
95
  surname:
102
96
  content: Bierman
103
97
  language:
@@ -114,12 +108,6 @@ http_interactions:
114
108
  - author
115
109
  - person:
116
110
  name:
117
- initial:
118
- - content: M.
119
- language:
120
- - en
121
- script:
122
- - Latn
123
111
  surname:
124
112
  content: Bjorklund
125
113
  language:
@@ -161,14 +149,14 @@ http_interactions:
161
149
  content: RFC
162
150
  format: text/plain
163
151
  number: '8341'
164
- fetched: '2022-08-14'
152
+ fetched: '2022-08-21'
165
153
  keyword:
166
- - NETCONF RESTCONF
167
- - YANG
168
- - XML
154
+ - content: NETCONF RESTCONF
155
+ - content: YANG
156
+ - content: XML
169
157
  editorialgroup:
170
158
  - name: netconf
171
- recorded_at: Mon, 15 Aug 2022 10:25:20 GMT
159
+ recorded_at: Mon, 22 Aug 2022 14:42:38 GMT
172
160
  - request:
173
161
  method: get
174
162
  uri: https://raw.githubusercontent.com/relaton/relaton-data-rfcs/main/data/RFC8341.yaml
@@ -192,7 +180,7 @@ http_interactions:
192
180
  Connection:
193
181
  - keep-alive
194
182
  Content-Length:
195
- - '778'
183
+ - '754'
196
184
  Cache-Control:
197
185
  - max-age=300
198
186
  Content-Security-Policy:
@@ -200,7 +188,7 @@ http_interactions:
200
188
  Content-Type:
201
189
  - text/plain; charset=utf-8
202
190
  Etag:
203
- - W/"6a43130302ce1d2dc27672bd7b353016364ab833e2dc2bcf1a85620bba618e55"
191
+ - W/"0a9e1ae56f51f33cedb11573e16d5d4fbffdf58bb2d8fe23a531c82fa636e9f9"
204
192
  Strict-Transport-Security:
205
193
  - max-age=31536000
206
194
  X-Content-Type-Options:
@@ -210,29 +198,29 @@ http_interactions:
210
198
  X-Xss-Protection:
211
199
  - 1; mode=block
212
200
  X-Github-Request-Id:
213
- - 9170:3A4F:4AA5B:6EF85:62FA1F10
201
+ - 657C:7C43:167131:24B673:630395DE
214
202
  Accept-Ranges:
215
203
  - bytes
216
204
  Date:
217
- - Mon, 15 Aug 2022 10:25:20 GMT
205
+ - Mon, 22 Aug 2022 14:42:38 GMT
218
206
  Via:
219
207
  - 1.1 varnish
220
208
  X-Served-By:
221
- - cache-mel11260-MEL
209
+ - cache-mel11280-MEL
222
210
  X-Cache:
223
- - MISS
211
+ - HIT
224
212
  X-Cache-Hits:
225
- - '0'
213
+ - '1'
226
214
  X-Timer:
227
- - S1660559121.525539,VS0,VE317
215
+ - S1661179359.510352,VS0,VE313
228
216
  Vary:
229
217
  - Authorization,Accept-Encoding,Origin
230
218
  Access-Control-Allow-Origin:
231
219
  - "*"
232
220
  X-Fastly-Request-Id:
233
- - 296581e3aea4b74236cf528516f5d228359b242a
221
+ - 9bc5c96c38cddc62744df479ff48dc4d74cdc8f4
234
222
  Expires:
235
- - Mon, 15 Aug 2022 10:30:20 GMT
223
+ - Mon, 22 Aug 2022 14:47:38 GMT
236
224
  Source-Age:
237
225
  - '0'
238
226
  body:
@@ -241,9 +229,9 @@ http_interactions:
241
229
  ---
242
230
  id: RFC8341
243
231
  title:
244
- - type: main
245
- content: Network Configuration Access Control Model
232
+ - content: Network Configuration Access Control Model
246
233
  format: text/plain
234
+ type: main
247
235
  link:
248
236
  - content: https://www.rfc-editor.org/info/rfc8341
249
237
  type: src
@@ -261,12 +249,6 @@ http_interactions:
261
249
  contributor:
262
250
  - person:
263
251
  name:
264
- initial:
265
- - content: A.
266
- language:
267
- - en
268
- script:
269
- - Latn
270
252
  surname:
271
253
  content: Bierman
272
254
  language:
@@ -283,12 +265,6 @@ http_interactions:
283
265
  - author
284
266
  - person:
285
267
  name:
286
- initial:
287
- - content: M.
288
- language:
289
- - en
290
- script:
291
- - Latn
292
268
  surname:
293
269
  content: Bjorklund
294
270
  language:
@@ -330,12 +306,12 @@ http_interactions:
330
306
  content: RFC
331
307
  format: text/plain
332
308
  number: '8341'
333
- fetched: '2022-08-14'
309
+ fetched: '2022-08-21'
334
310
  keyword:
335
- - NETCONF RESTCONF
336
- - YANG
337
- - XML
311
+ - content: NETCONF RESTCONF
312
+ - content: YANG
313
+ - content: XML
338
314
  editorialgroup:
339
315
  - name: netconf
340
- recorded_at: Mon, 15 Aug 2022 10:25:20 GMT
316
+ recorded_at: Mon, 22 Aug 2022 14:42:38 GMT
341
317
  recorded_with: VCR 6.1.0