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.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -33
- data/.gitignore +26 -0
- data/Makefile +1 -1
- data/lib/asciidoctor/iso/base.rb +2 -69
- data/lib/asciidoctor/iso/cleanup.rb +2 -175
- data/lib/asciidoctor/iso/converter.rb +2 -17
- data/lib/asciidoctor/iso/deprecated.rb +5 -0
- data/lib/asciidoctor/iso/front.rb +2 -169
- data/lib/asciidoctor/iso/front_id.rb +2 -224
- data/lib/asciidoctor/iso/section.rb +2 -48
- data/lib/asciidoctor/iso/validate.rb +2 -171
- data/lib/asciidoctor/iso/validate_image.rb +2 -96
- data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
- data/lib/asciidoctor/iso/validate_section.rb +2 -246
- data/lib/asciidoctor/iso/validate_style.rb +2 -169
- data/lib/asciidoctor/iso/validate_title.rb +2 -104
- data/lib/isodoc/iso/html/style-human.css +19 -14
- data/lib/isodoc/iso/html/style-human.scss +8 -2
- data/lib/isodoc/iso/html/style-iso.css +21 -15
- data/lib/isodoc/iso/html/style-iso.scss +9 -2
- data/lib/isodoc/iso/html_convert.rb +6 -4
- data/lib/isodoc/iso/iso.amendment.xsl +1449 -1222
- data/lib/isodoc/iso/iso.international-standard.xsl +1449 -1222
- data/lib/isodoc/iso/word_convert.rb +2 -0
- data/lib/metanorma/iso/base.rb +70 -0
- data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/biblio.rng +2 -2
- data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
- data/lib/metanorma/iso/cleanup.rb +176 -0
- data/lib/metanorma/iso/converter.rb +18 -0
- data/lib/metanorma/iso/front.rb +170 -0
- data/lib/metanorma/iso/front_id.rb +225 -0
- data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +98 -1
- data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
- data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
- data/lib/metanorma/iso/section.rb +49 -0
- data/lib/metanorma/iso/validate.rb +172 -0
- data/lib/metanorma/iso/validate_image.rb +97 -0
- data/lib/metanorma/iso/validate_requirements.rb +111 -0
- data/lib/metanorma/iso/validate_section.rb +247 -0
- data/lib/metanorma/iso/validate_style.rb +170 -0
- data/lib/metanorma/iso/validate_title.rb +105 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/lib/metanorma-iso.rb +1 -1
- data/metanorma-iso.gemspec +2 -2
- data/spec/isodoc/ref_spec.rb +4 -2
- data/spec/isodoc/section_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/base_spec.rb +141 -130
- data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
- data/spec/metanorma/processor_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/refs_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/vcr_cassettes/docrels.yml +21 -216
- metadata +39 -26
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
RSpec.describe
|
3
|
+
RSpec.describe Metanorma::ISO do
|
4
4
|
it "has a version number" do
|
5
5
|
expect(Metanorma::ISO::VERSION).not_to be nil
|
6
6
|
end
|
@@ -641,7 +641,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
641
641
|
<substage>60</substage>
|
642
642
|
</status>
|
643
643
|
<copyright>
|
644
|
-
<from
|
644
|
+
<from>#{Time.new.year}</from>
|
645
645
|
<owner>
|
646
646
|
<organization>
|
647
647
|
<name>International Organization for Standardization</name>
|
@@ -675,7 +675,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
675
675
|
:docfile: test.adoc
|
676
676
|
:nodoc:
|
677
677
|
:novalid:
|
678
|
-
:amends: ISO 123;ISO
|
678
|
+
:amends: ISO 123;ISO 125
|
679
679
|
:obsoletes: ABC 1
|
680
680
|
:successor-of: ABC 2
|
681
681
|
:manifestation-of: ABC 3
|
@@ -718,7 +718,7 @@ RSpec.describe Asciidoctor::ISO do
|
|
718
718
|
<substage>60</substage>
|
719
719
|
</status>
|
720
720
|
<copyright>
|
721
|
-
<from
|
721
|
+
<from>#{Time.new.year}</from>
|
722
722
|
<owner>
|
723
723
|
<organization>
|
724
724
|
<name>International Organization for Standardization</name>
|
@@ -744,16 +744,16 @@ RSpec.describe Asciidoctor::ISO do
|
|
744
744
|
<docidentifier>ABC 3</docidentifier>
|
745
745
|
</bibitem>
|
746
746
|
</relation>
|
747
|
-
<relation type='
|
747
|
+
<relation type='related'>
|
748
748
|
<bibitem>
|
749
749
|
<title>--</title>
|
750
|
-
<docidentifier>ABC
|
750
|
+
<docidentifier>ABC 4</docidentifier>
|
751
751
|
</bibitem>
|
752
752
|
</relation>
|
753
|
-
<relation type='
|
753
|
+
<relation type='annotationOf'>
|
754
754
|
<bibitem>
|
755
755
|
<title>--</title>
|
756
|
-
<docidentifier>ABC
|
756
|
+
<docidentifier>ABC 3a</docidentifier>
|
757
757
|
</bibitem>
|
758
758
|
</relation>
|
759
759
|
<relation type='updates'>
|
@@ -872,128 +872,139 @@ RSpec.describe Asciidoctor::ISO do
|
|
872
872
|
<place>Geneva</place>
|
873
873
|
</bibitem>
|
874
874
|
</relation>
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
875
|
+
<relation type='updates'>
|
876
|
+
<description>amends</description>
|
877
|
+
<bibitem type='standard'>
|
878
|
+
<fetched/>
|
879
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Natural rubber latex concentrate</title>
|
880
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Determination of alkalinity</title>
|
881
|
+
<title type='main' format='text/plain' language='en' script='Latn'>
|
882
|
+
Natural rubber latex concentrate — Determination of
|
883
|
+
alkalinity
|
884
|
+
</title>
|
885
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentré de caoutchouc naturel</title>
|
886
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Détermination de l’alcalinité</title>
|
887
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>
|
888
|
+
Latex concentré de caoutchouc
|
889
|
+
naturel — Détermination de
|
890
|
+
l’alcalinité
|
891
|
+
</title>
|
892
|
+
<uri type='src'>https://www.iso.org/standard/72849.html</uri>
|
893
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
|
894
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
|
895
|
+
<docidentifier type='ISO'>ISO 125</docidentifier>
|
896
|
+
<docidentifier type='URN'>urn:iso:std:iso:125:stage-60.60:ed-7:en,fr</docidentifier>
|
897
|
+
<docnumber>125</docnumber>
|
898
|
+
<contributor>
|
899
|
+
<role type='publisher'/>
|
900
|
+
<organization>
|
901
|
+
<name>International Organization for Standardization</name>
|
902
|
+
<abbreviation>ISO</abbreviation>
|
903
|
+
<uri>www.iso.org</uri>
|
904
|
+
</organization>
|
905
|
+
</contributor>
|
906
|
+
<edition>7</edition>
|
907
|
+
<language>en</language>
|
908
|
+
<language>fr</language>
|
909
|
+
<script>Latn</script>
|
910
|
+
<status>
|
911
|
+
<stage>60</stage>
|
912
|
+
<substage>60</substage>
|
913
|
+
</status>
|
914
|
+
<copyright>
|
915
|
+
<from>2020</from>
|
916
|
+
<owner>
|
917
|
+
<organization>
|
918
|
+
<name>ISO</name>
|
919
|
+
</organization>
|
920
|
+
</owner>
|
921
|
+
</copyright>
|
922
|
+
<relation type='obsoletes'>
|
923
|
+
<bibitem type='standard'>
|
924
|
+
<formattedref format='text/plain'>ISO 125:2011</formattedref>
|
925
|
+
</bibitem>
|
926
|
+
</relation>
|
927
|
+
<relation type='instance'>
|
928
|
+
<bibitem type='standard'>
|
929
|
+
<fetched/>
|
930
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Natural rubber latex concentrate</title>
|
931
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Determination of alkalinity</title>
|
932
|
+
<title type='main' format='text/plain' language='en' script='Latn'>
|
933
|
+
Natural rubber latex concentrate — Determination
|
934
|
+
of alkalinity
|
935
|
+
</title>
|
936
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex concentré de caoutchouc naturel</title>
|
937
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Détermination de l’alcalinité</title>
|
938
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>
|
939
|
+
Latex concentré de caoutchouc
|
940
|
+
naturel — Détermination de
|
941
|
+
l’alcalinité
|
942
|
+
</title>
|
943
|
+
<uri type='src'>https://www.iso.org/standard/72849.html</uri>
|
944
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:72849:en</uri>
|
945
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/07/28/72849.detail.rss</uri>
|
946
|
+
<docidentifier type='ISO'>ISO 125:2020</docidentifier>
|
947
|
+
<docidentifier type='URN'>urn:iso:std:iso:125:stage-60.60:ed-7:en,fr</docidentifier>
|
948
|
+
<docnumber>125</docnumber>
|
949
|
+
<date type='published'>
|
950
|
+
<on>2020-02</on>
|
951
|
+
</date>
|
952
|
+
<contributor>
|
953
|
+
<role type='publisher'/>
|
954
|
+
<organization>
|
955
|
+
<name>International Organization for Standardization</name>
|
956
|
+
<abbreviation>ISO</abbreviation>
|
957
|
+
<uri>www.iso.org</uri>
|
958
|
+
</organization>
|
959
|
+
</contributor>
|
960
|
+
<edition>7</edition>
|
961
|
+
<language>en</language>
|
962
|
+
<language>fr</language>
|
963
|
+
<script>Latn</script>
|
964
|
+
<abstract format='text/plain' language='en' script='Latn'>
|
965
|
+
This document specifies a method for the determination of the
|
966
|
+
alkalinity of natural rubber latex concentrate. The method is not
|
967
|
+
necessarily suitable for latices from natural sources other than
|
968
|
+
Hevea brasiliensis or for synthetic rubber latices, compounded
|
969
|
+
latex, vulcanized latex or artificial dispersions of rubber. NOTE
|
970
|
+
A method for the determination of the alkalinity of
|
971
|
+
polychloroprene latex is specified in ISO 13773.
|
972
|
+
</abstract>
|
973
|
+
<abstract format='text/plain' language='fr' script='Latn'>
|
974
|
+
Le présent document spécifie une méthode de
|
975
|
+
détermination de l’alcalinité du latex
|
976
|
+
concentré de caoutchouc naturel. La méthode ne convient
|
977
|
+
pas nécessairement aux latex d’origine naturelle autres
|
978
|
+
que l’Hevea brasiliensis ou aux latex de caoutchouc de
|
979
|
+
synthèse, aux latex formulés, aux latex vulcanisés
|
980
|
+
ou aux dispersions artificielles de caoutchouc. NOTE Une
|
981
|
+
méthode de détermination de l’alcalinité du
|
982
|
+
latex de polychloroprène est spécifiée dans
|
983
|
+
l’ISO 13773.
|
984
|
+
</abstract>
|
985
|
+
<status>
|
986
|
+
<stage>60</stage>
|
987
|
+
<substage>60</substage>
|
988
|
+
</status>
|
989
|
+
<copyright>
|
990
|
+
<from>2020</from>
|
991
|
+
<owner>
|
992
|
+
<organization>
|
993
|
+
<name>ISO</name>
|
994
|
+
</organization>
|
995
|
+
</owner>
|
996
|
+
</copyright>
|
997
|
+
<relation type='obsoletes'>
|
998
|
+
<bibitem type='standard'>
|
999
|
+
<formattedref format='text/plain'>ISO 125:2011</formattedref>
|
1000
|
+
</bibitem>
|
1001
|
+
</relation>
|
1002
|
+
<place>Geneva</place>
|
1003
|
+
</bibitem>
|
1004
|
+
</relation>
|
1005
|
+
<place>Geneva</place>
|
1006
|
+
</bibitem>
|
1007
|
+
</relation>
|
997
1008
|
<relation type='obsoletes'>
|
998
1009
|
<description>replaces</description>
|
999
1010
|
<bibitem>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
RSpec.describe
|
3
|
+
RSpec.describe Metanorma::ISO do
|
4
4
|
it "processes inline_quoted formatting" do
|
5
5
|
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
6
6
|
#{ASCIIDOC_BLANK_HDR}
|
data/spec/spec_helper.rb
CHANGED
@@ -132,7 +132,7 @@ VALIDATING_BLANK_HDR = <<~"HDR".freeze
|
|
132
132
|
HDR
|
133
133
|
|
134
134
|
ASCIIDOCTOR_ISO_DIR = Pathname
|
135
|
-
.new(File.dirname(__FILE__)) / "../lib/
|
135
|
+
.new(File.dirname(__FILE__)) / "../lib/metanorma/iso"
|
136
136
|
|
137
137
|
BOILERPLATE =
|
138
138
|
HTMLEntities.new.decode(
|