metanorma-standoc 2.1.0 → 2.1.3

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/metanorma/standoc/base.rb +3 -1
  3. data/lib/metanorma/standoc/biblio.rng +134 -39
  4. data/lib/metanorma/standoc/blocks.rb +8 -6
  5. data/lib/metanorma/standoc/blocks_notes.rb +3 -0
  6. data/lib/metanorma/standoc/cleanup.rb +1 -0
  7. data/lib/metanorma/standoc/cleanup_footnotes.rb +14 -9
  8. data/lib/metanorma/standoc/cleanup_inline.rb +17 -0
  9. data/lib/metanorma/standoc/cleanup_reqt.rb +1 -1
  10. data/lib/metanorma/standoc/cleanup_terms.rb +3 -1
  11. data/lib/metanorma/standoc/cleanup_text.rb +9 -4
  12. data/lib/metanorma/standoc/cleanup_xref.rb +2 -1
  13. data/lib/metanorma/standoc/converter.rb +2 -0
  14. data/lib/metanorma/standoc/inline.rb +2 -1
  15. data/lib/metanorma/standoc/isodoc.rng +16 -0
  16. data/lib/metanorma/standoc/lists.rb +8 -3
  17. data/lib/metanorma/standoc/macros.rb +31 -4
  18. data/lib/metanorma/standoc/macros_form.rb +1 -1
  19. data/lib/metanorma/standoc/macros_note.rb +1 -6
  20. data/lib/metanorma/standoc/ref_sect.rb +2 -1
  21. data/lib/metanorma/standoc/reqt.rb +5 -3
  22. data/lib/metanorma/standoc/section.rb +1 -1
  23. data/lib/metanorma/standoc/version.rb +1 -1
  24. data/metanorma-standoc.gemspec +2 -2
  25. data/spec/metanorma/base_spec.rb +41 -5
  26. data/spec/metanorma/blocks_spec.rb +53 -1
  27. data/spec/metanorma/cleanup_sections_spec.rb +5 -5
  28. data/spec/metanorma/cleanup_spec.rb +6 -6
  29. data/spec/metanorma/cleanup_terms_spec.rb +1 -1
  30. data/spec/metanorma/inline_spec.rb +3 -3
  31. data/spec/metanorma/lists_spec.rb +10 -4
  32. data/spec/metanorma/macros_spec.rb +21 -12
  33. data/spec/metanorma/refs_spec.rb +112 -118
  34. data/spec/metanorma/table_spec.rb +24 -6
  35. data/spec/spec_helper.rb +1 -1
  36. data/spec/vcr_cassettes/bsi16341.yml +69 -69
  37. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +89 -89
  38. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +12 -12
  39. data/spec/vcr_cassettes/hide_refs.yml +55 -55
  40. data/spec/vcr_cassettes/isobib_get_123.yml +14 -14
  41. data/spec/vcr_cassettes/isobib_get_123_1.yml +28 -28
  42. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +35 -35
  43. data/spec/vcr_cassettes/isobib_get_123_2001.yml +14 -14
  44. data/spec/vcr_cassettes/isobib_get_124.yml +12 -12
  45. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +228 -52
  46. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +56 -58
  47. data/spec/vcr_cassettes/std-link.yml +17 -17
  48. metadata +9 -10
  49. data/docs/quickstart.adoc +0 -375
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
5
+ uri: https://raw.githubusercontent.com/ietf-ribose/relaton-data-rfcs/main/data/RFC8341.yaml
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Connection:
24
24
  - keep-alive
25
25
  Content-Length:
26
- - '606'
26
+ - '786'
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/"917849434ef8ee04a3bcadf9ae049ece388743c0c3d6cc3be9719aa90d0c2aa3"
34
+ - W/"d06272fbf6b2fbdea1ac21ee1bcd6ba52a388ea4d4fe8543a1ab2a431fc9c7fb"
35
35
  Strict-Transport-Security:
36
36
  - max-age=31536000
37
37
  X-Content-Type-Options:
@@ -41,52 +41,140 @@ http_interactions:
41
41
  X-Xss-Protection:
42
42
  - 1; mode=block
43
43
  X-Github-Request-Id:
44
- - 13A4:0621:13A70D:1A1D60:626AA2C5
44
+ - B4C2:7441:35D8:65EC:62A702EA
45
45
  Accept-Ranges:
46
46
  - bytes
47
47
  Date:
48
- - Thu, 28 Apr 2022 14:20:54 GMT
48
+ - Mon, 13 Jun 2022 09:27:06 GMT
49
49
  Via:
50
50
  - 1.1 varnish
51
51
  X-Served-By:
52
- - cache-mel11220-MEL
52
+ - cache-mel11268-MEL
53
53
  X-Cache:
54
- - MISS
54
+ - HIT
55
55
  X-Cache-Hits:
56
- - '0'
56
+ - '1'
57
57
  X-Timer:
58
- - S1651155654.656895,VS0,VE460
58
+ - S1655112426.375181,VS0,VE327
59
59
  Vary:
60
60
  - Authorization,Accept-Encoding,Origin
61
61
  Access-Control-Allow-Origin:
62
62
  - "*"
63
63
  X-Fastly-Request-Id:
64
- - 9d9d7ed25260798a8cfd21f9f57e7e6507244354
64
+ - 3cd9f423ce09126a57456fdf28fc9e94f022cc8c
65
65
  Expires:
66
- - Thu, 28 Apr 2022 14:25:54 GMT
66
+ - Mon, 13 Jun 2022 09:32:06 GMT
67
67
  Source-Age:
68
68
  - '0'
69
69
  body:
70
70
  encoding: ASCII-8BIT
71
71
  string: |
72
- <?xml version='1.0' encoding='UTF-8'?>
73
-
74
- <reference anchor='RFC8341' target='https://www.rfc-editor.org/info/rfc8341'>
75
- <front>
76
- <title>Network Configuration Access Control Model</title>
77
- <author initials='A.' surname='Bierman' fullname='A. Bierman'><organization /></author>
78
- <author initials='M.' surname='Bjorklund' fullname='M. Bjorklund'><organization /></author>
79
- <date year='2018' month='March' />
80
- <abstract><t>The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.</t><t>This document obsoletes RFC 6536.</t></abstract>
81
- </front>
82
- <seriesInfo name='STD' value='91'/>
83
- <seriesInfo name='RFC' value='8341'/>
84
- <seriesInfo name='DOI' value='10.17487/RFC8341'/>
85
- </reference>
86
- recorded_at: Thu, 28 Apr 2022 14:20:54 GMT
72
+ ---
73
+ id: RFC8341
74
+ title:
75
+ - type: main
76
+ content: Network Configuration Access Control Model
77
+ format: text/plain
78
+ link:
79
+ - content: https://www.rfc-editor.org/info/rfc8341
80
+ type: src
81
+ type: standard
82
+ docid:
83
+ - id: RFC 8341
84
+ type: IETF
85
+ primary: true
86
+ - id: RFC8341
87
+ type: IETF
88
+ scope: anchor
89
+ - id: 10.17487/RFC8341
90
+ type: DOI
91
+ docnumber: RFC8341
92
+ date:
93
+ - type: published
94
+ value: 2018-03
95
+ contributor:
96
+ - person:
97
+ name:
98
+ initial:
99
+ - content: A
100
+ language:
101
+ - en
102
+ script:
103
+ - Latn
104
+ surname:
105
+ content: Bierman
106
+ language:
107
+ - en
108
+ script:
109
+ - Latn
110
+ completename:
111
+ content: A. Bierman
112
+ language:
113
+ - en
114
+ script:
115
+ - Latn
116
+ role:
117
+ - author
118
+ - person:
119
+ name:
120
+ initial:
121
+ - content: M
122
+ language:
123
+ - en
124
+ script:
125
+ - Latn
126
+ surname:
127
+ content: Bjorklund
128
+ language:
129
+ - en
130
+ script:
131
+ - Latn
132
+ completename:
133
+ content: M. Bjorklund
134
+ language:
135
+ - en
136
+ script:
137
+ - Latn
138
+ role:
139
+ - author
140
+ revdate: 2018-03
141
+ language:
142
+ - en
143
+ script:
144
+ - Latn
145
+ abstract:
146
+ - content: "<p>The standardization of network configuration interfaces for use with
147
+ the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires
148
+ a structured and secure operating environment that promotes human usability and
149
+ multi-vendor interoperability. There is a need for standard mechanisms to restrict
150
+ NETCONF or RESTCONF protocol access for particular users to a preconfigured subset
151
+ of all available NETCONF or RESTCONF protocol operations and content. This document
152
+ defines such an access control model.</p><p>This document obsoletes RFC 6536.</p>"
153
+ language:
154
+ - en
155
+ script:
156
+ - Latn
157
+ format: text/html
158
+ series:
159
+ - title:
160
+ content: STD
161
+ format: text/plain
162
+ number: '91'
163
+ - title:
164
+ content: RFC
165
+ format: text/plain
166
+ number: '8341'
167
+ fetched: '2022-06-12'
168
+ keyword:
169
+ - NETCONF RESTCONF
170
+ - YANG
171
+ - XML
172
+ editorialgroup:
173
+ - name: netconf
174
+ recorded_at: Mon, 13 Jun 2022 09:27:06 GMT
87
175
  - request:
88
176
  method: get
89
- uri: https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
177
+ uri: https://raw.githubusercontent.com/ietf-ribose/relaton-data-rfcs/main/data/RFC8341.yaml
90
178
  body:
91
179
  encoding: US-ASCII
92
180
  string: ''
@@ -107,7 +195,7 @@ http_interactions:
107
195
  Connection:
108
196
  - keep-alive
109
197
  Content-Length:
110
- - '606'
198
+ - '786'
111
199
  Cache-Control:
112
200
  - max-age=300
113
201
  Content-Security-Policy:
@@ -115,7 +203,7 @@ http_interactions:
115
203
  Content-Type:
116
204
  - text/plain; charset=utf-8
117
205
  Etag:
118
- - W/"917849434ef8ee04a3bcadf9ae049ece388743c0c3d6cc3be9719aa90d0c2aa3"
206
+ - W/"d06272fbf6b2fbdea1ac21ee1bcd6ba52a388ea4d4fe8543a1ab2a431fc9c7fb"
119
207
  Strict-Transport-Security:
120
208
  - max-age=31536000
121
209
  X-Content-Type-Options:
@@ -125,47 +213,135 @@ http_interactions:
125
213
  X-Xss-Protection:
126
214
  - 1; mode=block
127
215
  X-Github-Request-Id:
128
- - 13A4:0621:13A70D:1A1D60:626AA2C5
216
+ - B4C2:7441:35D8:65EC:62A702EA
129
217
  Accept-Ranges:
130
218
  - bytes
131
219
  Date:
132
- - Thu, 28 Apr 2022 14:20:54 GMT
220
+ - Mon, 13 Jun 2022 09:27:06 GMT
133
221
  Via:
134
222
  - 1.1 varnish
135
223
  X-Served-By:
136
- - cache-mel11223-MEL
224
+ - cache-mel11224-MEL
137
225
  X-Cache:
138
- - HIT
226
+ - MISS
139
227
  X-Cache-Hits:
140
- - '1'
228
+ - '0'
141
229
  X-Timer:
142
- - S1651155654.656669,VS0,VE460
230
+ - S1655112426.371907,VS0,VE331
143
231
  Vary:
144
232
  - Authorization,Accept-Encoding,Origin
145
233
  Access-Control-Allow-Origin:
146
234
  - "*"
147
235
  X-Fastly-Request-Id:
148
- - e4c5f7f9bb15de30eeb686e1cf38db2ce483a09e
236
+ - 798a3117670f57bca446fc678c091744e928afa8
149
237
  Expires:
150
- - Thu, 28 Apr 2022 14:25:54 GMT
238
+ - Mon, 13 Jun 2022 09:32:06 GMT
151
239
  Source-Age:
152
240
  - '0'
153
241
  body:
154
242
  encoding: ASCII-8BIT
155
243
  string: |
156
- <?xml version='1.0' encoding='UTF-8'?>
157
-
158
- <reference anchor='RFC8341' target='https://www.rfc-editor.org/info/rfc8341'>
159
- <front>
160
- <title>Network Configuration Access Control Model</title>
161
- <author initials='A.' surname='Bierman' fullname='A. Bierman'><organization /></author>
162
- <author initials='M.' surname='Bjorklund' fullname='M. Bjorklund'><organization /></author>
163
- <date year='2018' month='March' />
164
- <abstract><t>The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.</t><t>This document obsoletes RFC 6536.</t></abstract>
165
- </front>
166
- <seriesInfo name='STD' value='91'/>
167
- <seriesInfo name='RFC' value='8341'/>
168
- <seriesInfo name='DOI' value='10.17487/RFC8341'/>
169
- </reference>
170
- recorded_at: Thu, 28 Apr 2022 14:20:54 GMT
244
+ ---
245
+ id: RFC8341
246
+ title:
247
+ - type: main
248
+ content: Network Configuration Access Control Model
249
+ format: text/plain
250
+ link:
251
+ - content: https://www.rfc-editor.org/info/rfc8341
252
+ type: src
253
+ type: standard
254
+ docid:
255
+ - id: RFC 8341
256
+ type: IETF
257
+ primary: true
258
+ - id: RFC8341
259
+ type: IETF
260
+ scope: anchor
261
+ - id: 10.17487/RFC8341
262
+ type: DOI
263
+ docnumber: RFC8341
264
+ date:
265
+ - type: published
266
+ value: 2018-03
267
+ contributor:
268
+ - person:
269
+ name:
270
+ initial:
271
+ - content: A
272
+ language:
273
+ - en
274
+ script:
275
+ - Latn
276
+ surname:
277
+ content: Bierman
278
+ language:
279
+ - en
280
+ script:
281
+ - Latn
282
+ completename:
283
+ content: A. Bierman
284
+ language:
285
+ - en
286
+ script:
287
+ - Latn
288
+ role:
289
+ - author
290
+ - person:
291
+ name:
292
+ initial:
293
+ - content: M
294
+ language:
295
+ - en
296
+ script:
297
+ - Latn
298
+ surname:
299
+ content: Bjorklund
300
+ language:
301
+ - en
302
+ script:
303
+ - Latn
304
+ completename:
305
+ content: M. Bjorklund
306
+ language:
307
+ - en
308
+ script:
309
+ - Latn
310
+ role:
311
+ - author
312
+ revdate: 2018-03
313
+ language:
314
+ - en
315
+ script:
316
+ - Latn
317
+ abstract:
318
+ - content: "<p>The standardization of network configuration interfaces for use with
319
+ the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires
320
+ a structured and secure operating environment that promotes human usability and
321
+ multi-vendor interoperability. There is a need for standard mechanisms to restrict
322
+ NETCONF or RESTCONF protocol access for particular users to a preconfigured subset
323
+ of all available NETCONF or RESTCONF protocol operations and content. This document
324
+ defines such an access control model.</p><p>This document obsoletes RFC 6536.</p>"
325
+ language:
326
+ - en
327
+ script:
328
+ - Latn
329
+ format: text/html
330
+ series:
331
+ - title:
332
+ content: STD
333
+ format: text/plain
334
+ number: '91'
335
+ - title:
336
+ content: RFC
337
+ format: text/plain
338
+ number: '8341'
339
+ fetched: '2022-06-12'
340
+ keyword:
341
+ - NETCONF RESTCONF
342
+ - YANG
343
+ - XML
344
+ editorialgroup:
345
+ - name: netconf
346
+ recorded_at: Mon, 13 Jun 2022 09:27:06 GMT
171
347
  recorded_with: VCR 6.1.0