metanorma-iso 2.0.0 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/isodoc/iso/html/html_iso_titlepage.html +1 -1
  4. data/lib/isodoc/iso/html/isodoc.css +1 -2
  5. data/lib/isodoc/iso/html/isodoc.scss +0 -1
  6. data/lib/isodoc/iso/html/style-human.css +19 -14
  7. data/lib/isodoc/iso/html/style-human.scss +8 -2
  8. data/lib/isodoc/iso/html/style-iso.css +21 -15
  9. data/lib/isodoc/iso/html/style-iso.scss +9 -2
  10. data/lib/isodoc/iso/html/word_iso_titlepage.html +1 -1
  11. data/lib/isodoc/iso/i18n-en.yaml +22 -0
  12. data/lib/isodoc/iso/i18n-fr.yaml +22 -1
  13. data/lib/isodoc/iso/i18n-ru.yaml +42 -0
  14. data/lib/isodoc/iso/i18n-zh-Hans.yaml +21 -1
  15. data/lib/isodoc/iso/i18n.rb +1 -0
  16. data/lib/isodoc/iso/iso.amendment.xsl +2479 -1631
  17. data/lib/isodoc/iso/iso.international-standard.xsl +2479 -1631
  18. data/lib/isodoc/iso/metadata.rb +12 -2
  19. data/lib/isodoc/iso/word_convert.rb +2 -0
  20. data/lib/metanorma/iso/basicdoc.rng +5 -3
  21. data/lib/metanorma/iso/biblio.rng +7 -5
  22. data/lib/metanorma/iso/boilerplate-fr.xml +3 -3
  23. data/lib/metanorma/iso/boilerplate-ru.xml +39 -0
  24. data/lib/metanorma/iso/boilerplate.xml +3 -3
  25. data/lib/metanorma/iso/cleanup.rb +5 -1
  26. data/lib/metanorma/iso/front.rb +1 -1
  27. data/lib/metanorma/iso/front_id.rb +1 -0
  28. data/lib/metanorma/iso/isodoc.rng +142 -4
  29. data/lib/metanorma/iso/validate.rb +1 -1
  30. data/lib/metanorma/iso/validate_section.rb +3 -2
  31. data/lib/metanorma/iso/version.rb +1 -1
  32. data/spec/isodoc/amd_spec.rb +10 -5
  33. data/spec/isodoc/i18n_spec.rb +350 -9
  34. data/spec/isodoc/metadata_spec.rb +153 -3
  35. data/spec/isodoc/postproc_spec.rb +1 -0
  36. data/spec/isodoc/section_spec.rb +1 -0
  37. data/spec/isodoc/xref_spec.rb +18 -18
  38. data/spec/metanorma/base_spec.rb +439 -370
  39. data/spec/metanorma/refs_spec.rb +1 -4
  40. data/spec/metanorma/validate_spec.rb +27 -2
  41. metadata +4 -4
  42. data/spec/vcr_cassettes/docrels.yml +0 -393
  43. data/spec/vcr_cassettes/sortrefs.yml +0 -599
@@ -364,10 +364,7 @@ RSpec.describe Metanorma::ISO do
364
364
 
365
365
  def mock_fdis
366
366
  expect(RelatonIso::IsoBibliography).to receive(:get)
367
- .with("ISO/FDIS 17664-1", nil, code: "ISO/FDIS 17664-1",
368
- lang: "en", match: anything, ord: anything,
369
- process: 1, year: nil,
370
- title: "Title", usrlbl: nil) do
367
+ .with("ISO/FDIS 17664-1", nil, anything) do
371
368
  RelatonIsoBib::XMLParser.from_xml(<<~"OUTPUT")
372
369
  <bibitem id="x" type="standard">
373
370
  <fetched>#{Date.today}</fetched>
@@ -812,8 +812,7 @@ RSpec.describe Metanorma::ISO do
812
812
  INPUT
813
813
  expect(File.read("test.err"))
814
814
  .not_to include "Symbols and Abbreviated Terms can only contain "\
815
- "a definition list"
816
-
815
+ "a definition list"
817
816
  end
818
817
 
819
818
  it "Warning if missing foreword" do
@@ -1204,6 +1203,32 @@ RSpec.describe Metanorma::ISO do
1204
1203
  .to include "Only annexes and references can follow terms and clauses"
1205
1204
  end
1206
1205
 
1206
+ it "No warning if there are two Symbols sections in a Vocabulary document" do
1207
+ Asciidoctor.convert(<<~"INPUT", *OPTIONS)
1208
+ = Document title
1209
+ Author
1210
+ :docfile: test.adoc
1211
+ :nodoc:
1212
+ :no-isobib:
1213
+ :docsubtype: vocabulary
1214
+
1215
+ == Scope
1216
+
1217
+ == Terms and definitions
1218
+
1219
+ == A Clause
1220
+
1221
+ [heading=symbols and abbreviated terms]
1222
+ == Terms related to clinical psychology
1223
+
1224
+ [heading=symbols and abbreviated terms]
1225
+ == Symbols related to clinical psychology
1226
+
1227
+ INPUT
1228
+ expect(File.read("test.err"))
1229
+ .not_to include "Only one Symbols and Abbreviated Terms section "\
1230
+ "in the standard"
1231
+ end
1207
1232
 
1208
1233
  it "Warning if final section is not named Bibliography" do
1209
1234
  Asciidoctor.convert(<<~"INPUT", *OPTIONS)
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.0.0
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -325,6 +325,7 @@ files:
325
325
  - lib/isodoc/iso/html_convert.rb
326
326
  - lib/isodoc/iso/i18n-en.yaml
327
327
  - lib/isodoc/iso/i18n-fr.yaml
328
+ - lib/isodoc/iso/i18n-ru.yaml
328
329
  - lib/isodoc/iso/i18n-zh-Hans.yaml
329
330
  - lib/isodoc/iso/i18n.rb
330
331
  - lib/isodoc/iso/index.rb
@@ -346,6 +347,7 @@ files:
346
347
  - lib/metanorma/iso/basicdoc.rng
347
348
  - lib/metanorma/iso/biblio.rng
348
349
  - lib/metanorma/iso/boilerplate-fr.xml
350
+ - lib/metanorma/iso/boilerplate-ru.xml
349
351
  - lib/metanorma/iso/boilerplate.xml
350
352
  - lib/metanorma/iso/cleanup.rb
351
353
  - lib/metanorma/iso/converter.rb
@@ -420,8 +422,6 @@ files:
420
422
  - spec/metanorma/table_spec.rb
421
423
  - spec/metanorma/validate_spec.rb
422
424
  - spec/spec_helper.rb
423
- - spec/vcr_cassettes/docrels.yml
424
- - spec/vcr_cassettes/sortrefs.yml
425
425
  homepage: https://github.com/metanorma/metanorma-iso
426
426
  licenses:
427
427
  - BSD-2-Clause