metanorma-iso 2.0.5 → 2.0.7

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/iso/base_convert.rb +3 -3
  3. data/lib/isodoc/iso/html/header-dis.html +391 -0
  4. data/lib/isodoc/iso/html/header.html +42 -33
  5. data/lib/isodoc/iso/html/isodoc-dis.css +4524 -0
  6. data/lib/isodoc/iso/html/isodoc-dis.scss +4289 -0
  7. data/lib/isodoc/iso/html/isodoc.css +9 -7
  8. data/lib/isodoc/iso/html/isodoc.scss +7 -5
  9. data/lib/isodoc/iso/html/style-human.css +0 -1
  10. data/lib/isodoc/iso/html/style-human.scss +0 -1
  11. data/lib/isodoc/iso/html/style-iso.css +0 -1
  12. data/lib/isodoc/iso/html/style-iso.scss +0 -1
  13. data/lib/isodoc/iso/html/word_iso_intro-dis.html +7 -0
  14. data/lib/isodoc/iso/html/word_iso_titlepage-dis.html +51 -0
  15. data/lib/isodoc/iso/html/word_iso_titlepage.html +12 -11
  16. data/lib/isodoc/iso/html/wordstyle-dis.css +2160 -0
  17. data/lib/isodoc/iso/html/wordstyle-dis.scss +2011 -0
  18. data/lib/isodoc/iso/html/wordstyle.css +26 -19
  19. data/lib/isodoc/iso/html/wordstyle.scss +32 -25
  20. data/lib/isodoc/iso/i18n-en.yaml +2 -2
  21. data/lib/isodoc/iso/i18n-fr.yaml +2 -2
  22. data/lib/isodoc/iso/i18n-ru.yaml +2 -2
  23. data/lib/isodoc/iso/i18n-zh-Hans.yaml +2 -2
  24. data/lib/isodoc/iso/index.rb +7 -4
  25. data/lib/isodoc/iso/iso.amendment.xsl +111 -28
  26. data/lib/isodoc/iso/iso.international-standard.xsl +111 -28
  27. data/lib/isodoc/iso/metadata.rb +5 -12
  28. data/lib/isodoc/iso/sts_convert.rb +8 -3
  29. data/lib/isodoc/iso/word_convert.rb +12 -0
  30. data/lib/metanorma/iso/boilerplate-fr.xml +5 -6
  31. data/lib/metanorma/iso/boilerplate-ru.xml +4 -6
  32. data/lib/metanorma/iso/boilerplate.xml +5 -6
  33. data/lib/metanorma/iso/cleanup.rb +8 -2
  34. data/lib/metanorma/iso/front_id.rb +1 -0
  35. data/lib/metanorma/iso/validate_list.rb +20 -5
  36. data/lib/metanorma/iso/version.rb +1 -1
  37. data/metanorma-iso.gemspec +1 -1
  38. data/spec/isodoc/ref_spec.rb +11 -7
  39. data/spec/metanorma/amd_spec.rb +6 -7
  40. data/spec/metanorma/base_spec.rb +0 -1
  41. data/spec/metanorma/cleanup_spec.rb +10 -10
  42. data/spec/metanorma/refs_spec.rb +85 -144
  43. data/spec/metanorma/section_spec.rb +15 -18
  44. data/spec/metanorma/validate_spec.rb +46 -25
  45. data/spec/spec_helper.rb +2 -2
  46. data/spec/vcr_cassettes/docrels.yml +37 -45
  47. data/spec/vcr_cassettes/withdrawn_iso.yml +31 -37
  48. metadata +12 -5
@@ -1247,13 +1247,13 @@ RSpec.describe Metanorma::ISO do
1247
1247
  <li>
1248
1248
  <p id='_'>
1249
1249
  ISO Online browsing platform: available at
1250
- <link target='http://www.iso.org/obp'/>.
1250
+ <link target='https://www.iso.org/obp'/>
1251
1251
  </p>
1252
1252
  </li>
1253
1253
  <li>
1254
1254
  <p id='_'>
1255
1255
  IEC Electropedia: available at
1256
- <link target='http://www.electropedia.org'/>.
1256
+ <link target='https://www.electropedia.org'/>
1257
1257
  </p>
1258
1258
  </li>
1259
1259
  </ul>
@@ -1296,13 +1296,13 @@ RSpec.describe Metanorma::ISO do
1296
1296
  <li>
1297
1297
  <p id='_'>
1298
1298
  ISO Online browsing platform: available at
1299
- <link target='http://www.iso.org/obp'/>.
1299
+ <link target='https://www.iso.org/obp'/>
1300
1300
  </p>
1301
1301
  </li>
1302
1302
  <li>
1303
1303
  <p id='_'>
1304
1304
  IEC Electropedia: available at
1305
- <link target='http://www.electropedia.org'/>.
1305
+ <link target='https://www.electropedia.org'/>
1306
1306
  </p>
1307
1307
  </li>
1308
1308
  </ul>
@@ -1360,13 +1360,13 @@ RSpec.describe Metanorma::ISO do
1360
1360
  <li>
1361
1361
  <p id='_'>
1362
1362
  ISO Online browsing platform: available at
1363
- <link target='http://www.iso.org/obp'/>.
1363
+ <link target='https://www.iso.org/obp'/>
1364
1364
  </p>
1365
1365
  </li>
1366
1366
  <li>
1367
1367
  <p id='_'>
1368
1368
  IEC Electropedia: available at
1369
- <link target='http://www.electropedia.org'/>.
1369
+ <link target='https://www.electropedia.org'/>
1370
1370
  </p>
1371
1371
  </li>
1372
1372
  </ul>
@@ -1427,13 +1427,13 @@ RSpec.describe Metanorma::ISO do
1427
1427
  <li>
1428
1428
  <p id='_'>
1429
1429
  ISO Online browsing platform: available at
1430
- <link target='http://www.iso.org/obp'/>.
1430
+ <link target='https://www.iso.org/obp'/>
1431
1431
  </p>
1432
1432
  </li>
1433
1433
  <li>
1434
1434
  <p id='_'>
1435
1435
  IEC Electropedia: available at
1436
- <link target='http://www.electropedia.org'/>.
1436
+ <link target='https://www.electropedia.org'/>
1437
1437
  </p>
1438
1438
  </li>
1439
1439
  </ul>
@@ -1485,13 +1485,13 @@ RSpec.describe Metanorma::ISO do
1485
1485
  <li>
1486
1486
  <p id='_'>
1487
1487
  ISO Online browsing platform: available at
1488
- <link target='http://www.iso.org/obp'/>.
1488
+ <link target='https://www.iso.org/obp'/>
1489
1489
  </p>
1490
1490
  </li>
1491
1491
  <li>
1492
1492
  <p id='_'>
1493
1493
  IEC Electropedia: available at
1494
- <link target='http://www.electropedia.org'/>.
1494
+ <link target='https://www.electropedia.org'/>
1495
1495
  </p>
1496
1496
  </li>
1497
1497
  </ul>
@@ -356,7 +356,7 @@ RSpec.describe Metanorma::ISO do
356
356
  end
357
357
 
358
358
  it "renders withdrawn and cancelled ISO references" do
359
- VCR.use_cassette "withdrawn_iso" do
359
+ VCR.use_cassette "withdrawn_iso", match_requests_on: %i[method uri body] do
360
360
  input = <<~INPUT
361
361
  #{ISOBIB_BLANK_HDR}
362
362
 
@@ -367,7 +367,7 @@ RSpec.describe Metanorma::ISO do
367
367
  == Bibliography
368
368
 
369
369
  * [[[iso1,ISO 683-3:2019]]]
370
- * [[[iso2,ISO/IEC 27005]]]
370
+ * [[[iso2,ISO 31-0]]]
371
371
  INPUT
372
372
  output = <<~OUTPUT
373
373
  #{BLANK_HDR}
@@ -385,7 +385,7 @@ RSpec.describe Metanorma::ISO do
385
385
  <fn reference='1'>
386
386
  <p id='_'>Cancelled and replaced by ISO 683-3:2022.</p>
387
387
  </fn>
388
- <eref type='inline' bibitemid='iso2' citeas='ISO/IEC 27005'>
388
+ <eref type='inline' bibitemid='iso2' citeas='ISO 31-0'>
389
389
  <localityStack>
390
390
  <locality type='clause'>
391
391
  <referenceFrom>1</referenceFrom>
@@ -399,9 +399,90 @@ RSpec.describe Metanorma::ISO do
399
399
  </foreword>
400
400
  </preface>
401
401
  <sections> </sections>
402
- <bibliography>
402
+ <bibliography>
403
403
  <references id='_' normative='false' obligation='informative'>
404
404
  <title>Bibliography</title>
405
+ <bibitem id='iso2' type='standard'>
406
+ <fetched/>
407
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Title missing</title>
408
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Legacy paper document</title>
409
+ <title type='main' format='text/plain' language='en' script='Latn'>Title missing — Legacy paper document</title>
410
+ <uri type='src'>https://www.iso.org/standard/2405.html</uri>
411
+ <uri type='rss'>https://www.iso.org/contents/data/standard/00/24/2405.detail.rss</uri>
412
+ <docidentifier type='ISO' primary='true'>ISO 31-0</docidentifier>
413
+ <docidentifier type='URN'>urn:iso:std:iso:31:-0:stage-95.99:ed-1:en</docidentifier>
414
+ <docnumber>31</docnumber>
415
+ <contributor>
416
+ <role type='publisher'/>
417
+ <organization>
418
+ <name>International Organization for Standardization</name>
419
+ <abbreviation>ISO</abbreviation>
420
+ <uri>www.iso.org</uri>
421
+ </organization>
422
+ </contributor>
423
+ <edition>1</edition>
424
+ <note type='Unpublished-Status'>
425
+ <p id='_'>Withdrawn.</p>
426
+ </note>
427
+ <language>en</language>
428
+ <script>Latn</script>
429
+ <status>
430
+ <stage>95</stage>
431
+ <substage>99</substage>
432
+ </status>
433
+ <copyright>
434
+ <from>1974</from>
435
+ <owner>
436
+ <organization>
437
+ <name>ISO</name>
438
+ </organization>
439
+ </owner>
440
+ </copyright>
441
+ <relation type='instance'>
442
+ <bibitem type='standard'>
443
+ <fetched/>
444
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Title missing</title>
445
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Legacy paper document</title>
446
+ <title type='main' format='text/plain' language='en' script='Latn'>Title missing — Legacy paper document</title>
447
+ <uri type='src'>https://www.iso.org/standard/2405.html</uri>
448
+ <uri type='rss'>https://www.iso.org/contents/data/standard/00/24/2405.detail.rss</uri>
449
+ <docidentifier type='ISO' primary='true'>ISO 31-0:1974</docidentifier>
450
+ <docidentifier type='URN'>urn:iso:std:iso:31:-0:stage-95.99:ed-1:en</docidentifier>
451
+ <docnumber>31</docnumber>
452
+ <date type='published'>
453
+ <on>1974-01</on>
454
+ </date>
455
+ <contributor>
456
+ <role type='publisher'/>
457
+ <organization>
458
+ <name>International Organization for Standardization</name>
459
+ <abbreviation>ISO</abbreviation>
460
+ <uri>www.iso.org</uri>
461
+ </organization>
462
+ </contributor>
463
+ <edition>1</edition>
464
+ <note type='Unpublished-Status'>
465
+ <p id='_'>Withdrawn.</p>
466
+ </note>
467
+ <language>en</language>
468
+ <script>Latn</script>
469
+ <status>
470
+ <stage>95</stage>
471
+ <substage>99</substage>
472
+ </status>
473
+ <copyright>
474
+ <from>1974</from>
475
+ <owner>
476
+ <organization>
477
+ <name>ISO</name>
478
+ </organization>
479
+ </owner>
480
+ </copyright>
481
+ <place>Geneva</place>
482
+ </bibitem>
483
+ </relation>
484
+ <place>Geneva</place>
485
+ </bibitem>
405
486
  <bibitem id='iso1' type='standard'>
406
487
  <fetched/>
407
488
  <title type='title-main' format='text/plain' language='en' script='Latn'>Heat-treatable steels, alloy steels and free-cutting steels</title>
@@ -482,146 +563,6 @@ RSpec.describe Metanorma::ISO do
482
563
  </relation>
483
564
  <place>Geneva</place>
484
565
  </bibitem>
485
- <bibitem id='iso2' type='standard'>
486
- <fetched/>
487
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Information technology</title>
488
- <title type='title-main' format='text/plain' language='en' script='Latn'>Security techniques</title>
489
- <title type='title-part' format='text/plain' language='en' script='Latn'>Information security risk management</title>
490
- <title type='main' format='text/plain' language='en' script='Latn'>
491
- Information technology — Security techniques — Information security
492
- risk management
493
- </title>
494
- <uri type='src'>https://www.iso.org/standard/75281.html</uri>
495
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:75281:en</uri>
496
- <uri type='rss'>https://www.iso.org/contents/data/standard/07/52/75281.detail.rss</uri>
497
- <docidentifier type='ISO' primary='true'>ISO/IEC 27005</docidentifier>
498
- <docidentifier type='URN'>urn:iso:std:iso-iec:27005:stage-90.92:ed-3:en</docidentifier>
499
- <docnumber>27005</docnumber>
500
- <contributor>
501
- <role type='publisher'/>
502
- <organization>
503
- <name>International Organization for Standardization</name>
504
- <abbreviation>ISO</abbreviation>
505
- <uri>www.iso.org</uri>
506
- </organization>
507
- </contributor>
508
- <contributor>
509
- <role type='publisher'/>
510
- <organization>
511
- <name>International Electrotechnical Commission</name>
512
- <abbreviation>IEC</abbreviation>
513
- <uri>www.iec.ch</uri>
514
- </organization>
515
- </contributor>
516
- <edition>3</edition>
517
- <note type='Unpublished-Status'>
518
- <p id='_'>Withdrawn.</p>
519
- </note>
520
- <language>en</language>
521
- <script>Latn</script>
522
- <status>
523
- <stage>90</stage>
524
- <substage>92</substage>
525
- </status>
526
- <copyright>
527
- <from>2018</from>
528
- <owner>
529
- <organization>
530
- <name>ISO/IEC</name>
531
- </organization>
532
- </owner>
533
- </copyright>
534
- <relation type='obsoletes'>
535
- <bibitem type='standard'>
536
- <formattedref format='text/plain'>ISO/IEC 27005:2011</formattedref>
537
- </bibitem>
538
- </relation>
539
- <relation type='obsoletes'>
540
- <bibitem type='standard'>
541
- <formattedref format='text/plain'>ISO/IEC DIS 27005</formattedref>
542
- </bibitem>
543
- </relation>
544
- <relation type='instance'>
545
- <bibitem type='standard'>
546
- <fetched/>
547
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Information technology</title>
548
- <title type='title-main' format='text/plain' language='en' script='Latn'>Security techniques</title>
549
- <title type='title-part' format='text/plain' language='en' script='Latn'>Information security risk management</title>
550
- <title type='main' format='text/plain' language='en' script='Latn'>
551
- Information technology — Security techniques — Information
552
- security risk management
553
- </title>
554
- <uri type='src'>https://www.iso.org/standard/75281.html</uri>
555
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:75281:en</uri>
556
- <uri type='rss'>https://www.iso.org/contents/data/standard/07/52/75281.detail.rss</uri>
557
- <docidentifier type='ISO' primary='true'>ISO/IEC 27005:2018</docidentifier>
558
- <docidentifier type='URN'>urn:iso:std:iso-iec:27005:stage-90.92:ed-3:en</docidentifier>
559
- <docnumber>27005</docnumber>
560
- <date type='published'>
561
- <on>2018-07</on>
562
- </date>
563
- <contributor>
564
- <role type='publisher'/>
565
- <organization>
566
- <name>International Organization for Standardization</name>
567
- <abbreviation>ISO</abbreviation>
568
- <uri>www.iso.org</uri>
569
- </organization>
570
- </contributor>
571
- <contributor>
572
- <role type='publisher'/>
573
- <organization>
574
- <name>International Electrotechnical Commission</name>
575
- <abbreviation>IEC</abbreviation>
576
- <uri>www.iec.ch</uri>
577
- </organization>
578
- </contributor>
579
- <edition>3</edition>
580
- <note type='Unpublished-Status'>
581
- <p id='_'>Withdrawn.</p>
582
- </note>
583
- <language>en</language>
584
- <script>Latn</script>
585
- <abstract format='text/plain' language='en' script='Latn'>
586
- This document provides guidelines for information security risk
587
- management. This document supports the general concepts specified
588
- in ISO/IEC 27001 and is designed to assist the satisfactory
589
- implementation of information security based on a risk management
590
- approach. Knowledge of the concepts, models, processes and
591
- terminologies described in ISO/IEC 27001 and ISO/IEC 27002 is
592
- important for a complete understanding of this document. This
593
- document is applicable to all types of organizations (e.g.
594
- commercial enterprises, government agencies, non-profit
595
- organizations) which intend to manage risks that can compromise
596
- the organization’s information security.
597
- </abstract>
598
- <status>
599
- <stage>90</stage>
600
- <substage>92</substage>
601
- </status>
602
- <copyright>
603
- <from>2018</from>
604
- <owner>
605
- <organization>
606
- <name>ISO/IEC</name>
607
- </organization>
608
- </owner>
609
- </copyright>
610
- <relation type='obsoletes'>
611
- <bibitem type='standard'>
612
- <formattedref format='text/plain'>ISO/IEC 27005:2011</formattedref>
613
- </bibitem>
614
- </relation>
615
- <relation type='obsoletes'>
616
- <bibitem type='standard'>
617
- <formattedref format='text/plain'>ISO/IEC DIS 27005</formattedref>
618
- </bibitem>
619
- </relation>
620
- <place>Geneva</place>
621
- </bibitem>
622
- </relation>
623
- <place>Geneva</place>
624
- </bibitem>
625
566
  </references>
626
567
  </bibliography>
627
568
  </iso-standard>
@@ -85,11 +85,11 @@ RSpec.describe Metanorma::ISO do
85
85
  <ul id="_">
86
86
  <li>
87
87
  <p id="_">ISO Online browsing platform: available at
88
- <link target="http://www.iso.org/obp"/>.</p>
88
+ <link target="https://www.iso.org/obp"/></p>
89
89
  </li>
90
90
  <li>
91
91
  <p id="_">IEC Electropedia: available at
92
- <link target="http://www.electropedia.org"/>.</p>
92
+ <link target="https://www.electropedia.org"/></p>
93
93
  </li>
94
94
  </ul>
95
95
  <term id="term-term1">
@@ -280,11 +280,11 @@ RSpec.describe Metanorma::ISO do
280
280
  <ul id="_">
281
281
  <li>
282
282
  <p id="_">ISO Online browsing platform: available at
283
- <link target="http://www.iso.org/obp"/>.</p>
283
+ <link target="https://www.iso.org/obp"/></p>
284
284
  </li>
285
285
  <li>
286
286
  <p id="_">IEC Electropedia: available at
287
- <link target="http://www.electropedia.org"/>.</p>
287
+ <link target="https://www.electropedia.org"/></p>
288
288
  </li>
289
289
  </ul>
290
290
  <term id="term-term1">
@@ -328,13 +328,13 @@ RSpec.describe Metanorma::ISO do
328
328
  <li>
329
329
  <p id='_'>
330
330
  ISO Online browsing platform: available at
331
- <link target='http://www.iso.org/obp'/>.
331
+ <link target='https://www.iso.org/obp'/>
332
332
  </p>
333
333
  </li>
334
334
  <li>
335
335
  <p id='_'>
336
336
  IEC Electropedia: available at
337
- <link target='http://www.electropedia.org'/>.
337
+ <link target='https://www.electropedia.org'/>
338
338
  </p>
339
339
  </li>
340
340
  </ul>
@@ -377,11 +377,11 @@ RSpec.describe Metanorma::ISO do
377
377
  <ul id="_">
378
378
  <li>
379
379
  <p id="_">ISO Online browsing platform: available at
380
- <link target="http://www.iso.org/obp"/>.</p>
380
+ <link target="https://www.iso.org/obp"/></p>
381
381
  </li>
382
382
  <li>
383
383
  <p id="_">IEC Electropedia: available at
384
- <link target="http://www.electropedia.org"/>.</p>
384
+ <link target="https://www.electropedia.org"/></p>
385
385
  </li>
386
386
  </ul>
387
387
  </terms>
@@ -418,13 +418,13 @@ RSpec.describe Metanorma::ISO do
418
418
  <li>
419
419
  <p id='_'>
420
420
  ISO Online browsing platform: available at
421
- <link target='http://www.iso.org/obp'/>.
421
+ <link target='https://www.iso.org/obp'/>
422
422
  </p>
423
423
  </li>
424
424
  <li>
425
425
  <p id='_'>
426
426
  IEC Electropedia: available at
427
- <link target='http://www.electropedia.org'/>.
427
+ <link target='https://www.electropedia.org'/>
428
428
  </p>
429
429
  </li>
430
430
  </ul>
@@ -461,21 +461,18 @@ RSpec.describe Metanorma::ISO do
461
461
  <terms id='_' obligation='normative'>
462
462
  <title>Terms and Definitions</title>
463
463
  <p id='_'>No terms and definitions are listed in this document.</p>
464
- <p id='_'>
465
- ISO and IEC maintain terminological databases for use in standardization
464
+ <p id='_'>ISO and IEC maintain terminological databases for use in standardization
466
465
  at the following addresses:
467
466
  </p>
468
467
  <ul id='_'>
469
468
  <li>
470
- <p id='_'>
471
- ISO Online browsing platform: available at
472
- <link target='http://www.iso.org/obp'/>.
469
+ <p id='_'>ISO Online browsing platform: available at
470
+ <link target='https://www.iso.org/obp'/>
473
471
  </p>
474
472
  </li>
475
473
  <li>
476
- <p id='_'>
477
- IEC Electropedia: available at
478
- <link target='http://www.electropedia.org'/>.
474
+ <p id='_'>IEC Electropedia: available at
475
+ <link target='https://www.electropedia.org'/>
479
476
  </p>
480
477
  </li>
481
478
  </ul>
@@ -537,7 +537,8 @@ RSpec.describe Metanorma::ISO do
537
537
  "specific elements"
538
538
  end
539
539
 
540
- it "do not warn that undated reference which is a bibliographic reference has locality" do
540
+ it "do not warn that undated reference which is a bibliographic reference "\
541
+ "has locality" do
541
542
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
542
543
  #{VALIDATING_BLANK_HDR}
543
544
 
@@ -640,7 +641,8 @@ RSpec.describe Metanorma::ISO do
640
641
  expect(File.read("test.err")).to include "number not broken up in threes"
641
642
  end
642
643
 
643
- it "gives No style warning if number not broken up in threes is ISO reference" do
644
+ it "gives No style warning if number not broken up in threes is "\
645
+ "ISO reference" do
644
646
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
645
647
  #{VALIDATING_BLANK_HDR}
646
648
 
@@ -857,7 +859,8 @@ RSpec.describe Metanorma::ISO do
857
859
  "in the standard"
858
860
  end
859
861
 
860
- it "Style warning if Symbols and Abbreviated Terms contains extraneous matter" do
862
+ it "Style warning if Symbols and Abbreviated Terms contains "\
863
+ "extraneous matter" do
861
864
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
862
865
  #{VALIDATING_BLANK_HDR}
863
866
 
@@ -1114,7 +1117,8 @@ RSpec.describe Metanorma::ISO do
1114
1117
  .not_to include "Scope must occur before Terms and Definitions"
1115
1118
  end
1116
1119
 
1117
- it "Warning if Symbols and Abbreviated Terms does not occur immediately after Terms and Definitions" do
1120
+ it "Warning if Symbols and Abbreviated Terms does not occur immediately "\
1121
+ "after Terms and Definitions" do
1118
1122
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1119
1123
  #{VALIDATING_BLANK_HDR}
1120
1124
 
@@ -1311,12 +1315,13 @@ RSpec.describe Metanorma::ISO do
1311
1315
 
1312
1316
  INPUT
1313
1317
  expect(File.read("test.err"))
1314
- .to include "Single terms clause in vocabulary document should have normal Terms and definitions heading"
1318
+ .to include "Single terms clause in vocabulary document should have "\
1319
+ "normal Terms and definitions heading"
1315
1320
  expect(File.read("test.err"))
1316
- .not_to include "Multiple terms clauses in vocabulary document should have 'Terms related to' heading"
1321
+ .not_to include "Multiple terms clauses in vocabulary document should "\
1322
+ "have 'Terms related to' heading"
1317
1323
  end
1318
1324
 
1319
-
1320
1325
  it "Warn if vocabulary document contains Symbols section outside annex" do
1321
1326
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1322
1327
  = Document title
@@ -1337,10 +1342,12 @@ RSpec.describe Metanorma::ISO do
1337
1342
 
1338
1343
  INPUT
1339
1344
  expect(File.read("test.err"))
1340
- .to include "In vocabulary documents, Symbols and Abbreviated Terms are only permitted in annexes"
1345
+ .to include "In vocabulary documents, Symbols and Abbreviated Terms are "\
1346
+ "only permitted in annexes"
1341
1347
  end
1342
1348
 
1343
- it "Warning if multiple terms section in vocabulary document not named properly" do
1349
+ it "Warning if multiple terms section in vocabulary document not named "\
1350
+ "properly" do
1344
1351
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1345
1352
  = Document title
1346
1353
  Author
@@ -1356,9 +1363,11 @@ RSpec.describe Metanorma::ISO do
1356
1363
 
1357
1364
  INPUT
1358
1365
  expect(File.read("test.err"))
1359
- .not_to include "Single terms clause in vocabulary document should have normal Terms and definitions heading"
1366
+ .not_to include "Single terms clause in vocabulary document should have "\
1367
+ "normal Terms and definitions heading"
1360
1368
  expect(File.read("test.err"))
1361
- .to include "Multiple terms clauses in vocabulary document should have 'Terms related to' heading"
1369
+ .to include "Multiple terms clauses in vocabulary document should "\
1370
+ "have 'Terms related to' heading"
1362
1371
  end
1363
1372
 
1364
1373
  it "Warning if final section is not named Bibliography" do
@@ -1918,19 +1927,26 @@ RSpec.describe Metanorma::ISO do
1918
1927
  . Sentence.
1919
1928
  INPUT
1920
1929
  expect(File.read("test.err"))
1921
- .to include "List entry of broken up sentence must start with lowercase letter: Sentence."
1930
+ .to include "List entry of broken up sentence must start with "\
1931
+ "lowercase letter: Sentence."
1922
1932
  expect(File.read("test.err"))
1923
- .not_to include "List entry of broken up sentence must start with lowercase letter: another broken up;."
1933
+ .not_to include "List entry of broken up sentence must start with "\
1934
+ "lowercase letter: another broken up;."
1924
1935
  expect(File.read("test.err"))
1925
- .to include "List entry of broken up sentence must end with semicolon: this is"
1936
+ .to include "List entry of broken up sentence must end with semicolon: "\
1937
+ "this is"
1926
1938
  expect(File.read("test.err"))
1927
- .to include "Final list entry of broken up sentence must end with full stop: sentence"
1939
+ .to include "Final list entry of broken up sentence must end with "\
1940
+ "full stop: sentence"
1928
1941
  expect(File.read("test.err"))
1929
- .not_to include "Final list entry of broken up sentence must end with full stop: sentence."
1942
+ .not_to include "Final list entry of broken up sentence must end with "\
1943
+ "full stop: sentence."
1930
1944
  expect(File.read("test.err"))
1931
- .not_to include "List entry of broken up sentence must start with lowercase letter: Another broken up."
1945
+ .not_to include "List entry of broken up sentence must start with "\
1946
+ "lowercase letter: Another broken up."
1932
1947
  expect(File.read("test.err"))
1933
- .not_to include "List entry of broken up sentence must end with semicolon: This is."
1948
+ .not_to include "List entry of broken up sentence must end with "\
1949
+ "semicolon: This is."
1934
1950
  end
1935
1951
 
1936
1952
  it "Warn of list punctuation after full stop" do
@@ -1947,11 +1963,14 @@ RSpec.describe Metanorma::ISO do
1947
1963
 
1948
1964
  INPUT
1949
1965
  expect(File.read("test.err"))
1950
- .to include "List entry of separate sentences must end with full stop: This is;"
1966
+ .to include "List entry of separate sentences must end with full stop: "\
1967
+ "This is;"
1951
1968
  expect(File.read("test.err"))
1952
- .not_to include "List entry of separate sentences must end with full stop: Another broken up."
1969
+ .not_to include "List entry of separate sentences must end with "\
1970
+ "full stop: Another broken up."
1953
1971
  expect(File.read("test.err"))
1954
- .to include "List entry of separate sentences must start with uppercase letter: sentence."
1972
+ .to include "List entry of separate sentences must start with "\
1973
+ "uppercase letter: sentence."
1955
1974
  end
1956
1975
 
1957
1976
  it "Skips punctuation check for short entries in lists" do
@@ -1968,7 +1987,8 @@ RSpec.describe Metanorma::ISO do
1968
1987
 
1969
1988
  INPUT
1970
1989
  expect(File.read("test.err"))
1971
- .not_to include "List entry after full stop must end with full stop: This is"
1990
+ .not_to include "List entry after full stop must end with full stop: "\
1991
+ "This is"
1972
1992
  end
1973
1993
 
1974
1994
  it "Skips punctuation check for lists within tables" do
@@ -1987,7 +2007,8 @@ RSpec.describe Metanorma::ISO do
1987
2007
 
1988
2008
  INPUT
1989
2009
  expect(File.read("test.err"))
1990
- .not_to include "List entry after full stop must end with full stop: This is"
2010
+ .not_to include "List entry after full stop must end with full stop: "\
2011
+ "This is"
1991
2012
  end
1992
2013
 
1993
2014
  it "Warn if more than one ordered lists in a clause" do
@@ -2114,10 +2135,10 @@ RSpec.describe Metanorma::ISO do
2114
2135
  expect(File.read("test.err"))
2115
2136
  .to include "non-terms clauses cannot cross-reference terms clause (c)"
2116
2137
  expect(File.read("test.err"))
2117
- .not_to include "non-terms clauses cannot cross-reference terms clause (b)"
2138
+ .not_to include "non-terms clauses cannot cross-reference terms "\
2139
+ "clause (b)"
2118
2140
  end
2119
2141
 
2120
-
2121
2142
  it "warn if non-term clause crossreferences term reference" do
2122
2143
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
2123
2144
  #{VALIDATING_BLANK_HDR}
data/spec/spec_helper.rb CHANGED
@@ -218,11 +218,11 @@ TERM_BOILERPLATE = <<~TERM.freeze
218
218
  <ul id="_">
219
219
  <li>
220
220
  <p id="_">ISO Online browsing platform: available at
221
- <link target="http://www.iso.org/obp"/>.</p>
221
+ <link target="https://www.iso.org/obp"/></p>
222
222
  </li>
223
223
  <li>
224
224
  <p id="_">IEC Electropedia: available at
225
- <link target="http://www.electropedia.org"/>.
225
+ <link target="https://www.electropedia.org"/>
226
226
  </p>
227
227
  </li>
228
228
  </ul>