Skip to content

Commit

Permalink
rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jan 6, 2025
1 parent 6bbc6ba commit 635a5fc
Show file tree
Hide file tree
Showing 26 changed files with 1,370 additions and 953 deletions.
18 changes: 12 additions & 6 deletions lib/metanorma/standoc/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
<a:documentation>An identifier of the person according to an international identifier scheme</a:documentation>
</ref>
</zeroOrMore>
<zeroOrMore>
<optional>
<ref name="contact">
<a:documentation>Contact information for the person, including URI, address, phone number, and email</a:documentation>
</ref>
</zeroOrMore>
</optional>
</element>
</define>
<define name="fullname">
Expand Down Expand Up @@ -454,11 +454,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
<a:documentation>An identifier of the organization according to an international identifier scheme</a:documentation>
</ref>
</zeroOrMore>
<zeroOrMore>
<optional>
<ref name="contact">
<a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
</ref>
</zeroOrMore>
</optional>
<optional>
<ref name="logo">
<a:documentation>A logo for the organization</a:documentation>
Expand Down Expand Up @@ -540,12 +540,18 @@ real names (if the person is named with a pseudonym or user name); previous lega
<!-- TODO may change -->
<define name="contact">
<a:documentation>Contact information for a person or organization</a:documentation>
<choice>
<zeroOrMore>
<ref name="address"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phone"/>
</zeroOrMore>
<zeroOrMore>
<ref name="email"/>
</zeroOrMore>
<zeroOrMore>
<ref name="uri"/>
</choice>
</zeroOrMore>
</define>
<define name="phone">
<a:documentation>The phone number associated with a person or organization</a:documentation>
Expand Down
2 changes: 1 addition & 1 deletion metanorma-standoc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "addressable", "~> 2.8.0"
spec.add_dependency "asciidoctor", "~> 2.0.0"
spec.add_dependency "crass", "~> 1.0.0"
spec.add_dependency "iev", "~> 0.3.0"
spec.add_dependency "iev", "~> 0.3.5"
spec.add_dependency "isodoc", "~> 2.12.4"
spec.add_dependency "metanorma", ">= 1.6.0"
spec.add_dependency "metanorma-plugin-datastruct", "~> 0.3.0"
Expand Down
4 changes: 2 additions & 2 deletions spec/metanorma/cleanup_blocks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1341,9 +1341,9 @@
INPUT
output = <<~OUTPUT
<standard-document xmlns="https://www.metanorma.org/ns/standoc" type="semantic" version="#{Metanorma::Standoc::VERSION}">
<bibdata type="standard">
<bibdata type="standard">
<title language="en" format="text/plain">Document title</title>
<language>en</language><script>Latn</script><status><stage>published</stage></status><copyright><from>2024</from></copyright><ext><doctype>standard</doctype><flavor>standoc</flavor></ext></bibdata><metanorma-extension><presentation-metadata><name>TOC Heading Levels</name><value>2</value></presentation-metadata><presentation-metadata><name>HTML TOC Heading Levels</name><value>2</value></presentation-metadata><presentation-metadata><name>DOC TOC Heading Levels</name><value>2</value></presentation-metadata><presentation-metadata><name>PDF TOC Heading Levels</name><value>2</value></presentation-metadata></metanorma-extension>
<language>en</language><script>Latn</script><status><stage>published</stage></status><copyright><from>2025</from></copyright><ext><doctype>standard</doctype><flavor>standoc</flavor></ext></bibdata><metanorma-extension><presentation-metadata><name>TOC Heading Levels</name><value>2</value></presentation-metadata><presentation-metadata><name>HTML TOC Heading Levels</name><value>2</value></presentation-metadata><presentation-metadata><name>DOC TOC Heading Levels</name><value>2</value></presentation-metadata><presentation-metadata><name>PDF TOC Heading Levels</name><value>2</value></presentation-metadata></metanorma-extension>
<sections><clause id="_scope" type="scope" inline-header="false" obligation="normative">
<title>Scope</title>
<example id="_">
Expand Down
2 changes: 1 addition & 1 deletion spec/metanorma/cleanup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@
<stage>published</stage>
</status>
<copyright>
<from>2024</from>
<from>#{Date.today.year}</from>
</copyright>
<relation type="updatedBy">
<bibitem>
Expand Down
1 change: 1 addition & 0 deletions spec/metanorma/refs_fetch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,7 @@
<fetched/>
<title format="text/plain" language="en" script="Latn">Signes abréviatifs pour les poids et mesures métriques</title>
<uri type="citation" language="en" script="Latn">https://www.bipm.org/en/committees/ci/cipm/4-1879/resolution-</uri>
<uri type="citation" language="fr" script="Latn">https://www.bipm.org/fr/committees/ci/cipm/4-1879/resolution-</uri>
<uri type="src" language="en" script="Latn">https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-en/meeting-4.yml</uri>
<uri type="src" language="fr" script="Latn">https://raw.githubusercontent.com/metanorma/bipm-data-outcomes/main/cipm/meetings-fr/meeting-4.yml</uri>
<uri type="pdf">https://www.bipm.org/documents/20126/17315032/CIPM4.pdf/47e647d4-26c2-d3d6-b367-e749fb22b261</uri>
Expand Down
42 changes: 21 additions & 21 deletions spec/vcr_cassettes/bipm.yml

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions spec/vcr_cassettes/bsi16341.yml

Large diffs are not rendered by default.

194 changes: 97 additions & 97 deletions spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions spec/vcr_cassettes/dated_iso_ref_joint_iso_iec1.yml

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions spec/vcr_cassettes/dated_iso_ref_joint_iso_iec2.yml

Large diffs are not rendered by default.

Loading

0 comments on commit 635a5fc

Please sign in to comment.