metanorma-iso 2.1.5 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +3 -1
  3. data/.github/workflows/release.yml +24 -0
  4. data/lib/isodoc/iso/html/html_iso_titlepage.html +2 -2
  5. data/lib/isodoc/iso/html/style-human.scss +39 -1
  6. data/lib/isodoc/iso/html/style-iso.scss +40 -1
  7. data/lib/isodoc/iso/i18n-en.yaml +4 -0
  8. data/lib/isodoc/iso/i18n-fr.yaml +5 -0
  9. data/lib/isodoc/iso/i18n-ru.yaml +4 -0
  10. data/lib/isodoc/iso/i18n-zh-Hans.yaml +5 -0
  11. data/lib/isodoc/iso/init.rb +4 -0
  12. data/lib/isodoc/iso/iso.amendment.xsl +3698 -3060
  13. data/lib/isodoc/iso/iso.international-standard.xsl +3698 -3060
  14. data/lib/isodoc/iso/presentation_xml_convert.rb +22 -6
  15. data/lib/isodoc/iso/word_cleanup.rb +10 -13
  16. data/lib/isodoc/iso/word_dis_convert.rb +1 -1
  17. data/lib/isodoc/iso/xref.rb +35 -4
  18. data/lib/metanorma/iso/base.rb +4 -0
  19. data/lib/metanorma/iso/biblio.rng +8 -5
  20. data/lib/metanorma/iso/boilerplate-fr.xml +1 -1
  21. data/lib/metanorma/iso/boilerplate-ru.xml +1 -1
  22. data/lib/metanorma/iso/boilerplate.xml +1 -1
  23. data/lib/metanorma/iso/cleanup.rb +5 -1
  24. data/lib/metanorma/iso/front_id.rb +64 -11
  25. data/lib/metanorma/iso/isodoc.rng +6 -1
  26. data/lib/metanorma/iso/reqt.rng +1 -1
  27. data/lib/metanorma/iso/section.rb +5 -0
  28. data/lib/metanorma/iso/validate.rb +3 -2
  29. data/lib/metanorma/iso/version.rb +1 -1
  30. data/lib/metanorma/requirements/modspec.rb +60 -0
  31. data/lib/metanorma/requirements/requirements.rb +16 -0
  32. data/lib/metanorma-iso.rb +2 -1
  33. data/metanorma-iso.gemspec +2 -1
  34. data/spec/assets/iso.adoc +10 -0
  35. data/spec/examples/rice_img/1000-1_ed2amd3fig1a.png +0 -0
  36. data/spec/examples/rice_img/1000-1_ed2amd3fig1b.png +0 -0
  37. data/spec/examples/rice_img/1000-1_ed2amd3fig2.png +0 -0
  38. data/spec/examples/rice_img/1000-1_ed2amd3fig3.png +0 -0
  39. data/spec/examples/rice_img/1000-1_ed2amd3fig4.png +0 -0
  40. data/spec/examples/rice_img/1000-1_ed2amd3fig5_f.png +0 -0
  41. data/spec/examples/rice_img/1000-1_ed2amd3figA.png +0 -0
  42. data/spec/examples/rice_img/1000-1_ed2amd3figA1.png +0 -0
  43. data/spec/examples/rice_img/1000-1_ed2amd3figA2.png +0 -0
  44. data/spec/examples/rice_img/1000-1_ed2amd3figTab1.png +0 -0
  45. data/spec/examples/rice_img/1000-1_ed2amd3figTab2.png +0 -0
  46. data/spec/examples/rice_img/1001_ed2amd3fig1.png +0 -0
  47. data/spec/examples/rice_img/ISO_1213_1.png +0 -0
  48. data/spec/examples/rice_img/SL1000-1_ed2amd3fig1.png +0 -0
  49. data/spec/isodoc/postproc_spec.rb +6 -13
  50. data/spec/isodoc/ref_spec.rb +129 -82
  51. data/spec/isodoc/word_dis_spec.rb +9 -13
  52. data/spec/metanorma/amd_spec.rb +0 -10
  53. data/spec/metanorma/base_spec.rb +13 -24
  54. data/spec/metanorma/cleanup_spec.rb +136 -0
  55. data/spec/metanorma/macros_spec.rb +99 -0
  56. data/spec/metanorma/processor_spec.rb +86 -87
  57. data/spec/metanorma/section_spec.rb +2 -2
  58. data/spec/metanorma/validate_spec.rb +41 -40
  59. data/spec/requirements/requirements_spec.rb +1299 -0
  60. data/spec/requirements/xref_spec.rb +1205 -0
  61. data/spec/vcr_cassettes/docrels.yml +385 -0
  62. data/spec/vcr_cassettes/withdrawn_iso.yml +19 -19
  63. metadata +44 -15
  64. data/lib/isodoc/iso/html/htmlstyle.css +0 -47
  65. data/lib/isodoc/iso/html/isodoc-dis.css +0 -4493
  66. data/lib/isodoc/iso/html/isodoc.css +0 -1346
  67. data/lib/isodoc/iso/html/style-human.css +0 -1027
  68. data/lib/isodoc/iso/html/style-iso.css +0 -1053
  69. data/lib/isodoc/iso/html/wordstyle-dis.css +0 -2280
  70. data/lib/isodoc/iso/html/wordstyle.css +0 -1728
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-18 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.0
19
+ version: 2.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.0
26
+ version: 2.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mnconvert
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pubid-iso
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: ruby-jing
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -276,6 +290,7 @@ extra_rdoc_files: []
276
290
  files:
277
291
  - ".gitattributes"
278
292
  - ".github/workflows/rake.yml"
293
+ - ".github/workflows/release.yml"
279
294
  - ".github/workflows/ubuntu.yml"
280
295
  - ".gitignore"
281
296
  - ".hound.yml"
@@ -308,24 +323,17 @@ files:
308
323
  - lib/isodoc/iso/html/header.html
309
324
  - lib/isodoc/iso/html/html_iso_intro.html
310
325
  - lib/isodoc/iso/html/html_iso_titlepage.html
311
- - lib/isodoc/iso/html/htmlstyle.css
312
326
  - lib/isodoc/iso/html/htmlstyle.scss
313
- - lib/isodoc/iso/html/isodoc-dis.css
314
327
  - lib/isodoc/iso/html/isodoc-dis.scss
315
- - lib/isodoc/iso/html/isodoc.css
316
328
  - lib/isodoc/iso/html/isodoc.scss
317
- - lib/isodoc/iso/html/style-human.css
318
329
  - lib/isodoc/iso/html/style-human.scss
319
- - lib/isodoc/iso/html/style-iso.css
320
330
  - lib/isodoc/iso/html/style-iso.scss
321
331
  - lib/isodoc/iso/html/word_iso_intro-dis.html
322
332
  - lib/isodoc/iso/html/word_iso_intro.html
323
333
  - lib/isodoc/iso/html/word_iso_titlepage-dis.html
324
334
  - lib/isodoc/iso/html/word_iso_titlepage-prf.html
325
335
  - lib/isodoc/iso/html/word_iso_titlepage.html
326
- - lib/isodoc/iso/html/wordstyle-dis.css
327
336
  - lib/isodoc/iso/html/wordstyle-dis.scss
328
- - lib/isodoc/iso/html/wordstyle.css
329
337
  - lib/isodoc/iso/html/wordstyle.scss
330
338
  - lib/isodoc/iso/html_convert.rb
331
339
  - lib/isodoc/iso/i18n-en.yaml
@@ -377,6 +385,8 @@ files:
377
385
  - lib/metanorma/iso/validate_style.rb
378
386
  - lib/metanorma/iso/validate_title.rb
379
387
  - lib/metanorma/iso/version.rb
388
+ - lib/metanorma/requirements/modspec.rb
389
+ - lib/metanorma/requirements/requirements.rb
380
390
  - lib/relaton/render/config.yml
381
391
  - lib/relaton/render/general.rb
382
392
  - metanorma-iso.gemspec
@@ -385,6 +395,7 @@ files:
385
395
  - spec/assets/htmlcover.html
386
396
  - spec/assets/htmlintro.html
387
397
  - spec/assets/i18n.yaml
398
+ - spec/assets/iso.adoc
388
399
  - spec/assets/iso.headless.html
389
400
  - spec/assets/iso.xml
390
401
  - spec/assets/rice_image1.png
@@ -404,6 +415,20 @@ files:
404
415
  - spec/examples/rice.adoc
405
416
  - spec/examples/rice.preview.html
406
417
  - spec/examples/rice.sh
418
+ - spec/examples/rice_img/1000-1_ed2amd3fig1a.png
419
+ - spec/examples/rice_img/1000-1_ed2amd3fig1b.png
420
+ - spec/examples/rice_img/1000-1_ed2amd3fig2.png
421
+ - spec/examples/rice_img/1000-1_ed2amd3fig3.png
422
+ - spec/examples/rice_img/1000-1_ed2amd3fig4.png
423
+ - spec/examples/rice_img/1000-1_ed2amd3fig5_f.png
424
+ - spec/examples/rice_img/1000-1_ed2amd3figA.png
425
+ - spec/examples/rice_img/1000-1_ed2amd3figA1.png
426
+ - spec/examples/rice_img/1000-1_ed2amd3figA2.png
427
+ - spec/examples/rice_img/1000-1_ed2amd3figTab1.png
428
+ - spec/examples/rice_img/1000-1_ed2amd3figTab2.png
429
+ - spec/examples/rice_img/1001_ed2amd3fig1.png
430
+ - spec/examples/rice_img/ISO_1213_1.png
431
+ - spec/examples/rice_img/SL1000-1_ed2amd3fig1.png
407
432
  - spec/examples/rice_img/rice_image1.png
408
433
  - spec/examples/rice_img/rice_image2.png
409
434
  - spec/examples/rice_img/rice_image3_1.png
@@ -429,18 +454,22 @@ files:
429
454
  - spec/metanorma/cleanup_spec.rb
430
455
  - spec/metanorma/inline_spec.rb
431
456
  - spec/metanorma/lists_spec.rb
457
+ - spec/metanorma/macros_spec.rb
432
458
  - spec/metanorma/processor_spec.rb
433
459
  - spec/metanorma/refs_spec.rb
434
460
  - spec/metanorma/section_spec.rb
435
461
  - spec/metanorma/table_spec.rb
436
462
  - spec/metanorma/validate_spec.rb
463
+ - spec/requirements/requirements_spec.rb
464
+ - spec/requirements/xref_spec.rb
437
465
  - spec/spec_helper.rb
466
+ - spec/vcr_cassettes/docrels.yml
438
467
  - spec/vcr_cassettes/withdrawn_iso.yml
439
468
  homepage: https://github.com/metanorma/metanorma-iso
440
469
  licenses:
441
470
  - BSD-2-Clause
442
471
  metadata: {}
443
- post_install_message:
472
+ post_install_message:
444
473
  rdoc_options: []
445
474
  require_paths:
446
475
  - lib
@@ -455,8 +484,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
455
484
  - !ruby/object:Gem::Version
456
485
  version: '0'
457
486
  requirements: []
458
- rubygems_version: 3.3.16
459
- signing_key:
487
+ rubygems_version: 3.1.6
488
+ signing_key:
460
489
  specification_version: 4
461
490
  summary: metanorma-iso lets you write ISO standards in AsciiDoc.
462
491
  test_files: []
@@ -1,47 +0,0 @@
1
- p.MsoCommentText, li.MsoCommentText, div.MsoCommentText {
2
- mso-style-noshow: yes;
3
- mso-style-priority: 99;
4
- mso-style-link: "Comment Text Char";
5
- margin-top: 0cm;
6
- margin-right: 0cm;
7
- margin-bottom: 12.0pt;
8
- margin-left: 0cm;
9
- text-align: justify;
10
- line-height: 12.0pt;
11
- mso-pagination: widow-orphan;
12
- tab-stops: 20.15pt;
13
- font-size: {{normalfontsize}};
14
- font-family: {{bodyfont}};
15
- mso-fareast-font-family: Calibri;
16
- mso-bidi-font-family: "Times New Roman";
17
- mso-ansi-language: EN-GB;
18
- mso-fareast-language: EN-US; }
19
-
20
- span.MsoCommentReference {
21
- mso-style-noshow: yes;
22
- mso-style-priority: 99;
23
- mso-style-parent: "";
24
- mso-ansi-font-size: 9.0pt;
25
- mso-bidi-font-size: 9.0pt; }
26
-
27
- p.MsoCommentSubject, li.MsoCommentSubject, div.MsoCommentSubject {
28
- mso-style-noshow: yes;
29
- mso-style-priority: 99;
30
- mso-style-parent: "Comment Text";
31
- mso-style-link: "Comment Subject Char";
32
- mso-style-next: "Comment Text";
33
- margin-top: 0cm;
34
- margin-right: 0cm;
35
- margin-bottom: 12.0pt;
36
- margin-left: 0cm;
37
- text-align: justify;
38
- line-height: 12.0pt;
39
- mso-pagination: widow-orphan;
40
- tab-stops: 20.15pt;
41
- font-size: 10.0pt;
42
- font-family: {{headerfont}};
43
- mso-fareast-font-family: Calibri;
44
- mso-bidi-font-family: "Times New Roman";
45
- mso-ansi-language: EN-GB;
46
- mso-fareast-language: EN-US;
47
- font-weight: bold; }