metanorma-iso 1.10.5 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +3 -33
  3. data/.gitignore +26 -0
  4. data/Makefile +1 -1
  5. data/lib/asciidoctor/iso/base.rb +2 -69
  6. data/lib/asciidoctor/iso/cleanup.rb +2 -175
  7. data/lib/asciidoctor/iso/converter.rb +2 -17
  8. data/lib/asciidoctor/iso/deprecated.rb +5 -0
  9. data/lib/asciidoctor/iso/front.rb +2 -169
  10. data/lib/asciidoctor/iso/front_id.rb +2 -224
  11. data/lib/asciidoctor/iso/section.rb +2 -48
  12. data/lib/asciidoctor/iso/validate.rb +2 -171
  13. data/lib/asciidoctor/iso/validate_image.rb +2 -96
  14. data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
  15. data/lib/asciidoctor/iso/validate_section.rb +2 -246
  16. data/lib/asciidoctor/iso/validate_style.rb +2 -169
  17. data/lib/asciidoctor/iso/validate_title.rb +2 -104
  18. data/lib/isodoc/iso/html/style-human.css +19 -14
  19. data/lib/isodoc/iso/html/style-human.scss +8 -2
  20. data/lib/isodoc/iso/html/style-iso.css +21 -15
  21. data/lib/isodoc/iso/html/style-iso.scss +9 -2
  22. data/lib/isodoc/iso/html_convert.rb +6 -4
  23. data/lib/isodoc/iso/iso.amendment.xsl +1449 -1222
  24. data/lib/isodoc/iso/iso.international-standard.xsl +1449 -1222
  25. data/lib/isodoc/iso/word_convert.rb +2 -0
  26. data/lib/metanorma/iso/base.rb +70 -0
  27. data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +0 -0
  28. data/lib/{asciidoctor → metanorma}/iso/biblio.rng +2 -2
  29. data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
  30. data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
  31. data/lib/metanorma/iso/cleanup.rb +176 -0
  32. data/lib/metanorma/iso/converter.rb +18 -0
  33. data/lib/metanorma/iso/front.rb +170 -0
  34. data/lib/metanorma/iso/front_id.rb +225 -0
  35. data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +98 -1
  36. data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
  37. data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
  38. data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +0 -0
  39. data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
  40. data/lib/metanorma/iso/section.rb +49 -0
  41. data/lib/metanorma/iso/validate.rb +172 -0
  42. data/lib/metanorma/iso/validate_image.rb +97 -0
  43. data/lib/metanorma/iso/validate_requirements.rb +111 -0
  44. data/lib/metanorma/iso/validate_section.rb +247 -0
  45. data/lib/metanorma/iso/validate_style.rb +170 -0
  46. data/lib/metanorma/iso/validate_title.rb +105 -0
  47. data/lib/metanorma/iso/version.rb +1 -1
  48. data/lib/metanorma-iso.rb +1 -1
  49. data/metanorma-iso.gemspec +2 -2
  50. data/spec/isodoc/ref_spec.rb +4 -2
  51. data/spec/isodoc/section_spec.rb +1 -1
  52. data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
  53. data/spec/{asciidoctor → metanorma}/base_spec.rb +141 -130
  54. data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
  55. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  56. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  57. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  58. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  59. data/spec/metanorma/processor_spec.rb +1 -1
  60. data/spec/{asciidoctor → metanorma}/refs_spec.rb +1 -1
  61. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  62. data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
  63. data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
  64. data/spec/spec_helper.rb +1 -1
  65. data/spec/vcr_cassettes/docrels.yml +21 -216
  66. metadata +39 -26
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.5
4
+ version: 2.0.2
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-12-27 00:00:00.000000000 Z
11
+ date: 2022-01-22 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