metanorma-standoc 2.2.4 → 2.2.6
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.
- checksums.yaml +4 -4
- data/.github/workflows/automerge.yml +31 -0
- data/lib/isodoc/html/htmlstyle.css +1 -1
- data/lib/metanorma/standoc/base.rb +1 -0
- data/lib/metanorma/standoc/basicdoc.rng +0 -27
- data/lib/metanorma/standoc/biblio-standoc.rng +164 -0
- data/lib/metanorma/standoc/biblio.rng +45 -18
- data/lib/metanorma/standoc/blocks.rb +2 -1
- data/lib/metanorma/standoc/cleanup.rb +1 -0
- data/lib/metanorma/standoc/cleanup_asciibib.rb +110 -0
- data/lib/metanorma/standoc/cleanup_biblio.rb +5 -111
- data/lib/metanorma/standoc/cleanup_block.rb +7 -6
- data/lib/metanorma/standoc/cleanup_boilerplate.rb +6 -6
- data/lib/metanorma/standoc/cleanup_inline.rb +2 -2
- data/lib/metanorma/standoc/cleanup_text.rb +10 -3
- data/lib/metanorma/standoc/inline.rb +3 -1
- data/lib/metanorma/standoc/isodoc-compile.rng +7 -0
- data/lib/metanorma/standoc/isodoc.rng +32 -195
- data/lib/metanorma/standoc/macros_plantuml.rb +23 -10
- data/lib/metanorma/standoc/validate.rb +8 -8
- data/lib/metanorma/standoc/version.rb +1 -1
- data/metanorma-standoc.gemspec +0 -1
- data/spec/metanorma/biblio_spec.rb +152 -144
- data/spec/metanorma/blocks_spec.rb +2 -2
- data/spec/metanorma/cleanup_sections_spec.rb +1 -2
- data/spec/metanorma/cleanup_spec.rb +11 -0
- data/spec/metanorma/inline_spec.rb +70 -8
- data/spec/metanorma/isobib_cache_spec.rb +2 -2
- data/spec/metanorma/macros_plantuml_spec.rb +4 -4
- data/spec/metanorma/macros_spec.rb +2 -2
- data/spec/metanorma/refs_spec.rb +25 -25
- data/spec/support/shared_examples/structured_data_2_text_preprocessor.rb +3 -3
- data/spec/vcr_cassettes/bsi16341.yml +70 -72
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +82 -82
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml +12 -12
- data/spec/vcr_cassettes/hide_refs.yml +58 -58
- data/spec/vcr_cassettes/isobib_get_123.yml +13 -13
- data/spec/vcr_cassettes/isobib_get_123_1.yml +22 -22
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +33 -33
- data/spec/vcr_cassettes/isobib_get_123_2.yml +25 -25
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -12
- data/spec/vcr_cassettes/isobib_get_124.yml +12 -12
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +37 -21
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +45 -45
- data/spec/vcr_cassettes/std-link.yml +12 -12
- metadata +6 -16
| @@ -23,7 +23,7 @@ http_interactions: | |
| 23 23 | 
             
                  Connection:
         | 
| 24 24 | 
             
                  - keep-alive
         | 
| 25 25 | 
             
                  Content-Length:
         | 
| 26 | 
            -
                  - ' | 
| 26 | 
            +
                  - '802'
         | 
| 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/" | 
| 34 | 
            +
                  - W/"8aca43afba1b5d6651d55189852eee9b1ba4a6c6150a1dbe6f7efbd43919a662"
         | 
| 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 | 
            -
                  -  | 
| 44 | 
            +
                  - BFAC:0566:2FB00:75316:635669DB
         | 
| 45 45 | 
             
                  Accept-Ranges:
         | 
| 46 46 | 
             
                  - bytes
         | 
| 47 47 | 
             
                  Date:
         | 
| 48 | 
            -
                  - Mon,  | 
| 48 | 
            +
                  - Mon, 24 Oct 2022 10:32:59 GMT
         | 
| 49 49 | 
             
                  Via:
         | 
| 50 50 | 
             
                  - 1.1 varnish
         | 
| 51 51 | 
             
                  X-Served-By:
         | 
| 52 | 
            -
                  - cache- | 
| 52 | 
            +
                  - cache-mel11266-MEL
         | 
| 53 53 | 
             
                  X-Cache:
         | 
| 54 | 
            -
                  -  | 
| 54 | 
            +
                  - MISS
         | 
| 55 55 | 
             
                  X-Cache-Hits:
         | 
| 56 56 | 
             
                  - '1'
         | 
| 57 57 | 
             
                  X-Timer:
         | 
| 58 | 
            -
                  -  | 
| 58 | 
            +
                  - S1666607580.566504,VS0,VE215
         | 
| 59 59 | 
             
                  Vary:
         | 
| 60 60 | 
             
                  - Authorization,Accept-Encoding,Origin
         | 
| 61 61 | 
             
                  Access-Control-Allow-Origin:
         | 
| 62 62 | 
             
                  - "*"
         | 
| 63 63 | 
             
                  X-Fastly-Request-Id:
         | 
| 64 | 
            -
                  -  | 
| 64 | 
            +
                  - 28263a6b9fd8e8f12787b35586402e801f685270
         | 
| 65 65 | 
             
                  Expires:
         | 
| 66 | 
            -
                  - Mon,  | 
| 66 | 
            +
                  - Mon, 24 Oct 2022 10:37:59 GMT
         | 
| 67 67 | 
             
                  Source-Age:
         | 
| 68 68 | 
             
                  - '0'
         | 
| 69 69 | 
             
                body:
         | 
| @@ -101,6 +101,10 @@ http_interactions: | |
| 101 101 | 
             
                              initial: A
         | 
| 102 102 | 
             
                            formatted_initials:
         | 
| 103 103 | 
             
                              content: A.
         | 
| 104 | 
            +
                              language:
         | 
| 105 | 
            +
                              - en
         | 
| 106 | 
            +
                              script:
         | 
| 107 | 
            +
                              - Latn
         | 
| 104 108 | 
             
                          surname:
         | 
| 105 109 | 
             
                            content: Bierman
         | 
| 106 110 | 
             
                            language:
         | 
| @@ -126,6 +130,10 @@ http_interactions: | |
| 126 130 | 
             
                              initial: M
         | 
| 127 131 | 
             
                            formatted_initials:
         | 
| 128 132 | 
             
                              content: M.
         | 
| 133 | 
            +
                              language:
         | 
| 134 | 
            +
                              - en
         | 
| 135 | 
            +
                              script:
         | 
| 136 | 
            +
                              - Latn
         | 
| 129 137 | 
             
                          surname:
         | 
| 130 138 | 
             
                            content: Bjorklund
         | 
| 131 139 | 
             
                            language:
         | 
| @@ -173,7 +181,7 @@ http_interactions: | |
| 173 181 | 
             
                    - content: XML
         | 
| 174 182 | 
             
                    editorialgroup:
         | 
| 175 183 | 
             
                    - name: netconf
         | 
| 176 | 
            -
              recorded_at: Mon,  | 
| 184 | 
            +
              recorded_at: Mon, 24 Oct 2022 10:32:59 GMT
         | 
| 177 185 | 
             
            - request:
         | 
| 178 186 | 
             
                method: get
         | 
| 179 187 | 
             
                uri: https://raw.githubusercontent.com/relaton/relaton-data-rfcs/main/data/RFC8341.yaml
         | 
| @@ -197,7 +205,7 @@ http_interactions: | |
| 197 205 | 
             
                  Connection:
         | 
| 198 206 | 
             
                  - keep-alive
         | 
| 199 207 | 
             
                  Content-Length:
         | 
| 200 | 
            -
                  - ' | 
| 208 | 
            +
                  - '802'
         | 
| 201 209 | 
             
                  Cache-Control:
         | 
| 202 210 | 
             
                  - max-age=300
         | 
| 203 211 | 
             
                  Content-Security-Policy:
         | 
| @@ -205,7 +213,7 @@ http_interactions: | |
| 205 213 | 
             
                  Content-Type:
         | 
| 206 214 | 
             
                  - text/plain; charset=utf-8
         | 
| 207 215 | 
             
                  Etag:
         | 
| 208 | 
            -
                  - W/" | 
| 216 | 
            +
                  - W/"8aca43afba1b5d6651d55189852eee9b1ba4a6c6150a1dbe6f7efbd43919a662"
         | 
| 209 217 | 
             
                  Strict-Transport-Security:
         | 
| 210 218 | 
             
                  - max-age=31536000
         | 
| 211 219 | 
             
                  X-Content-Type-Options:
         | 
| @@ -215,29 +223,29 @@ http_interactions: | |
| 215 223 | 
             
                  X-Xss-Protection:
         | 
| 216 224 | 
             
                  - 1; mode=block
         | 
| 217 225 | 
             
                  X-Github-Request-Id:
         | 
| 218 | 
            -
                  -  | 
| 226 | 
            +
                  - BFAC:0566:2FB00:75316:635669DB
         | 
| 219 227 | 
             
                  Accept-Ranges:
         | 
| 220 228 | 
             
                  - bytes
         | 
| 221 229 | 
             
                  Date:
         | 
| 222 | 
            -
                  - Mon,  | 
| 230 | 
            +
                  - Mon, 24 Oct 2022 10:32:59 GMT
         | 
| 223 231 | 
             
                  Via:
         | 
| 224 232 | 
             
                  - 1.1 varnish
         | 
| 225 233 | 
             
                  X-Served-By:
         | 
| 226 | 
            -
                  - cache- | 
| 234 | 
            +
                  - cache-mel11248-MEL
         | 
| 227 235 | 
             
                  X-Cache:
         | 
| 228 | 
            -
                  -  | 
| 236 | 
            +
                  - HIT
         | 
| 229 237 | 
             
                  X-Cache-Hits:
         | 
| 230 | 
            -
                  - ' | 
| 238 | 
            +
                  - '1'
         | 
| 231 239 | 
             
                  X-Timer:
         | 
| 232 | 
            -
                  -  | 
| 240 | 
            +
                  - S1666607580.567014,VS0,VE215
         | 
| 233 241 | 
             
                  Vary:
         | 
| 234 242 | 
             
                  - Authorization,Accept-Encoding,Origin
         | 
| 235 243 | 
             
                  Access-Control-Allow-Origin:
         | 
| 236 244 | 
             
                  - "*"
         | 
| 237 245 | 
             
                  X-Fastly-Request-Id:
         | 
| 238 | 
            -
                  -  | 
| 246 | 
            +
                  - 90c846a407be798331027ae9ab55baccb0262c68
         | 
| 239 247 | 
             
                  Expires:
         | 
| 240 | 
            -
                  - Mon,  | 
| 248 | 
            +
                  - Mon, 24 Oct 2022 10:37:59 GMT
         | 
| 241 249 | 
             
                  Source-Age:
         | 
| 242 250 | 
             
                  - '0'
         | 
| 243 251 | 
             
                body:
         | 
| @@ -275,6 +283,10 @@ http_interactions: | |
| 275 283 | 
             
                              initial: A
         | 
| 276 284 | 
             
                            formatted_initials:
         | 
| 277 285 | 
             
                              content: A.
         | 
| 286 | 
            +
                              language:
         | 
| 287 | 
            +
                              - en
         | 
| 288 | 
            +
                              script:
         | 
| 289 | 
            +
                              - Latn
         | 
| 278 290 | 
             
                          surname:
         | 
| 279 291 | 
             
                            content: Bierman
         | 
| 280 292 | 
             
                            language:
         | 
| @@ -300,6 +312,10 @@ http_interactions: | |
| 300 312 | 
             
                              initial: M
         | 
| 301 313 | 
             
                            formatted_initials:
         | 
| 302 314 | 
             
                              content: M.
         | 
| 315 | 
            +
                              language:
         | 
| 316 | 
            +
                              - en
         | 
| 317 | 
            +
                              script:
         | 
| 318 | 
            +
                              - Latn
         | 
| 303 319 | 
             
                          surname:
         | 
| 304 320 | 
             
                            content: Bjorklund
         | 
| 305 321 | 
             
                            language:
         | 
| @@ -347,5 +363,5 @@ http_interactions: | |
| 347 363 | 
             
                    - content: XML
         | 
| 348 364 | 
             
                    editorialgroup:
         | 
| 349 365 | 
             
                    - name: netconf
         | 
| 350 | 
            -
              recorded_at: Mon,  | 
| 366 | 
            +
              recorded_at: Mon, 24 Oct 2022 10:32:59 GMT
         | 
| 351 367 | 
             
            recorded_with: VCR 6.1.0
         |