metanorma-iso 1.10.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +3 -33
  3. data/.github/workflows/ubuntu.yml +1 -1
  4. data/.gitignore +26 -0
  5. data/Gemfile +1 -1
  6. data/Makefile +1 -1
  7. data/lib/asciidoctor/iso/base.rb +2 -69
  8. data/lib/asciidoctor/iso/cleanup.rb +2 -175
  9. data/lib/asciidoctor/iso/converter.rb +2 -17
  10. data/lib/asciidoctor/iso/deprecated.rb +5 -0
  11. data/lib/asciidoctor/iso/front.rb +2 -156
  12. data/lib/asciidoctor/iso/front_id.rb +2 -221
  13. data/lib/asciidoctor/iso/section.rb +2 -48
  14. data/lib/asciidoctor/iso/validate.rb +2 -171
  15. data/lib/asciidoctor/iso/validate_image.rb +2 -96
  16. data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
  17. data/lib/asciidoctor/iso/validate_section.rb +2 -246
  18. data/lib/asciidoctor/iso/validate_style.rb +2 -169
  19. data/lib/asciidoctor/iso/validate_title.rb +2 -104
  20. data/lib/isodoc/iso/base_convert.rb +14 -31
  21. data/lib/isodoc/iso/html/style-human.css +40 -8
  22. data/lib/isodoc/iso/html/style-human.scss +36 -8
  23. data/lib/isodoc/iso/html/style-iso.css +35 -5
  24. data/lib/isodoc/iso/html/style-iso.scss +31 -5
  25. data/lib/isodoc/iso/html/wordstyle.css +10 -8
  26. data/lib/isodoc/iso/html/wordstyle.scss +10 -8
  27. data/lib/isodoc/iso/html_convert.rb +83 -22
  28. data/lib/isodoc/iso/index.rb +53 -45
  29. data/lib/isodoc/iso/iso.amendment.xsl +477 -264
  30. data/lib/isodoc/iso/iso.international-standard.xsl +477 -264
  31. data/lib/isodoc/iso/metadata.rb +27 -22
  32. data/lib/isodoc/iso/presentation_xml_convert.rb +42 -17
  33. data/lib/isodoc/iso/sts_convert.rb +2 -4
  34. data/lib/isodoc/iso/word_convert.rb +0 -2
  35. data/lib/metanorma/iso/base.rb +70 -0
  36. data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +0 -0
  37. data/lib/{asciidoctor → metanorma}/iso/biblio.rng +0 -0
  38. data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
  39. data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
  40. data/lib/metanorma/iso/cleanup.rb +176 -0
  41. data/lib/metanorma/iso/converter.rb +18 -0
  42. data/lib/metanorma/iso/front.rb +170 -0
  43. data/lib/metanorma/iso/front_id.rb +225 -0
  44. data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +49 -2
  45. data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
  46. data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
  47. data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +14 -0
  48. data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
  49. data/lib/metanorma/iso/section.rb +49 -0
  50. data/lib/metanorma/iso/validate.rb +172 -0
  51. data/lib/metanorma/iso/validate_image.rb +97 -0
  52. data/lib/metanorma/iso/validate_requirements.rb +111 -0
  53. data/lib/metanorma/iso/validate_section.rb +247 -0
  54. data/lib/metanorma/iso/validate_style.rb +170 -0
  55. data/lib/metanorma/iso/validate_title.rb +105 -0
  56. data/lib/metanorma/iso/version.rb +1 -1
  57. data/lib/metanorma-iso.rb +1 -1
  58. data/metanorma-iso.gemspec +2 -2
  59. data/spec/isodoc/amd_spec.rb +261 -250
  60. data/spec/isodoc/inline_spec.rb +238 -212
  61. data/spec/isodoc/iso_spec.rb +3 -1
  62. data/spec/isodoc/postproc_spec.rb +111 -28
  63. data/spec/isodoc/ref_spec.rb +4 -2
  64. data/spec/isodoc/section_spec.rb +1 -1
  65. data/spec/isodoc/terms_spec.rb +17 -24
  66. data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
  67. data/spec/metanorma/base_spec.rb +1185 -0
  68. data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
  69. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  70. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  71. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  72. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  73. data/spec/metanorma/processor_spec.rb +1 -1
  74. data/spec/{asciidoctor → metanorma}/refs_spec.rb +1 -1
  75. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  76. data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
  77. data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
  78. data/spec/spec_helper.rb +1 -1
  79. data/spec/vcr_cassettes/docrels.yml +35 -425
  80. metadata +40 -27
  81. data/spec/asciidoctor/base_spec.rb +0 -1333
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: 1.10.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.11.0
19
+ version: 2.0.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: 1.11.0
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mnconvert
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '1.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-jing
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -294,19 +294,11 @@ files:
294
294
  - docs/navigation.adoc
295
295
  - docs/quickstart.adoc
296
296
  - lib/asciidoctor/iso/base.rb
297
- - lib/asciidoctor/iso/basicdoc.rng
298
- - lib/asciidoctor/iso/biblio.rng
299
- - lib/asciidoctor/iso/boilerplate-fr.xml
300
- - lib/asciidoctor/iso/boilerplate.xml
301
297
  - lib/asciidoctor/iso/cleanup.rb
302
298
  - lib/asciidoctor/iso/converter.rb
299
+ - lib/asciidoctor/iso/deprecated.rb
303
300
  - lib/asciidoctor/iso/front.rb
304
301
  - lib/asciidoctor/iso/front_id.rb
305
- - lib/asciidoctor/iso/isodoc.rng
306
- - lib/asciidoctor/iso/isostandard-amd.rng
307
- - lib/asciidoctor/iso/isostandard.rnc
308
- - lib/asciidoctor/iso/isostandard.rng
309
- - lib/asciidoctor/iso/reqt.rng
310
302
  - lib/asciidoctor/iso/section.rb
311
303
  - lib/asciidoctor/iso/validate.rb
312
304
  - lib/asciidoctor/iso/validate_image.rb
@@ -350,20 +342,30 @@ files:
350
342
  - lib/isodoc/iso/xref.rb
351
343
  - lib/metanorma-iso.rb
352
344
  - lib/metanorma/iso.rb
345
+ - lib/metanorma/iso/base.rb
346
+ - lib/metanorma/iso/basicdoc.rng
347
+ - lib/metanorma/iso/biblio.rng
348
+ - lib/metanorma/iso/boilerplate-fr.xml
349
+ - lib/metanorma/iso/boilerplate.xml
350
+ - lib/metanorma/iso/cleanup.rb
351
+ - lib/metanorma/iso/converter.rb
352
+ - lib/metanorma/iso/front.rb
353
+ - lib/metanorma/iso/front_id.rb
354
+ - lib/metanorma/iso/isodoc.rng
355
+ - lib/metanorma/iso/isostandard-amd.rng
356
+ - lib/metanorma/iso/isostandard.rnc
357
+ - lib/metanorma/iso/isostandard.rng
353
358
  - lib/metanorma/iso/processor.rb
359
+ - lib/metanorma/iso/reqt.rng
360
+ - lib/metanorma/iso/section.rb
361
+ - lib/metanorma/iso/validate.rb
362
+ - lib/metanorma/iso/validate_image.rb
363
+ - lib/metanorma/iso/validate_requirements.rb
364
+ - lib/metanorma/iso/validate_section.rb
365
+ - lib/metanorma/iso/validate_style.rb
366
+ - lib/metanorma/iso/validate_title.rb
354
367
  - lib/metanorma/iso/version.rb
355
368
  - metanorma-iso.gemspec
356
- - spec/asciidoctor/amd_spec.rb
357
- - spec/asciidoctor/base_spec.rb
358
- - spec/asciidoctor/blank_spec.rb
359
- - spec/asciidoctor/blocks_spec.rb
360
- - spec/asciidoctor/cleanup_spec.rb
361
- - spec/asciidoctor/inline_spec.rb
362
- - spec/asciidoctor/lists_spec.rb
363
- - spec/asciidoctor/refs_spec.rb
364
- - spec/asciidoctor/section_spec.rb
365
- - spec/asciidoctor/table_spec.rb
366
- - spec/asciidoctor/validate_spec.rb
367
369
  - spec/assets/header.html
368
370
  - spec/assets/html.css
369
371
  - spec/assets/htmlcover.html
@@ -405,7 +407,18 @@ files:
405
407
  - spec/isodoc/table_spec.rb
406
408
  - spec/isodoc/terms_spec.rb
407
409
  - spec/isodoc/xref_spec.rb
410
+ - spec/metanorma/amd_spec.rb
411
+ - spec/metanorma/base_spec.rb
412
+ - spec/metanorma/blank_spec.rb
413
+ - spec/metanorma/blocks_spec.rb
414
+ - spec/metanorma/cleanup_spec.rb
415
+ - spec/metanorma/inline_spec.rb
416
+ - spec/metanorma/lists_spec.rb
408
417
  - spec/metanorma/processor_spec.rb
418
+ - spec/metanorma/refs_spec.rb
419
+ - spec/metanorma/section_spec.rb
420
+ - spec/metanorma/table_spec.rb
421
+ - spec/metanorma/validate_spec.rb
409
422
  - spec/spec_helper.rb
410
423
  - spec/vcr_cassettes/docrels.yml
411
424
  - spec/vcr_cassettes/sortrefs.yml
@@ -428,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
428
441
  - !ruby/object:Gem::Version
429
442
  version: '0'
430
443
  requirements: []
431
- rubygems_version: 3.2.22
444
+ rubygems_version: 3.2.32
432
445
  signing_key:
433
446
  specification_version: 4
434
447
  summary: metanorma-iso lets you write ISO standards in AsciiDoc.