Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 11, 2024
1 parent 026f8d0 commit c19739d
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 27 deletions.
4 changes: 0 additions & 4 deletions Gemfile.devel

This file was deleted.

14 changes: 13 additions & 1 deletion lib/metanorma/plateau/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -1783,9 +1783,21 @@ that the `number` given for the series applies to the second iteration of number
May be used to differentiate rendering of notes in bibliographies</a:documentation>
</attribute>
</optional>
<ref name="LocalizedMarkedUpString">
<ref name="LocalizedStringAttributes">
<a:documentation>The content of the note</a:documentation>
</ref>
<choice>
<oneOrMore>
<ref name="BasicBlockNoId">
<a:documentation>Multiple blocks of content</a:documentation>
</ref>
</oneOrMore>
<oneOrMore>
<ref name="TextElement">
<a:documentation>Single block of content</a:documentation>
</ref>
</oneOrMore>
</choice>
</element>
</define>
<define name="bibabstract">
Expand Down
12 changes: 6 additions & 6 deletions lib/metanorma/plateau/isodoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
these elements; we just want one namespace for any child grammars
of this.
-->
<!-- VERSION v1.3.4 -->
<!-- VERSION v1.4.0 -->
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<include href="reqt.rng"/>
<include href="basicdoc.rng">
Expand Down Expand Up @@ -326,7 +326,7 @@ normative or informative references, some split references into sections organiz
<a:documentation>Content of note</a:documentation>
<oneOrMore>
<choice>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="ul"/>
<ref name="ol"/>
<ref name="dl"/>
Expand Down Expand Up @@ -412,7 +412,7 @@ normative or informative references, some split references into sections organiz
<element name="note">
<ref name="OptionalId"/>
<oneOrMore>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
</oneOrMore>
</element>
</define>
Expand Down Expand Up @@ -1977,7 +1977,7 @@ used in document amendments</a:documentation>
<oneOrMore>
<choice>
<a:documentation>Content of the verbal representation of the term</a:documentation>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="dl"/>
<ref name="ol"/>
<ref name="ul"/>
Expand Down Expand Up @@ -2015,7 +2015,7 @@ used in document amendments</a:documentation>
<oneOrMore>
<choice>
<a:documentation>Content of the term note</a:documentation>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="ul"/>
<ref name="ol"/>
<ref name="dl"/>
Expand All @@ -2037,7 +2037,7 @@ used in document amendments</a:documentation>
<ref name="dl"/>
<ref name="quote"/>
<ref name="sourcecode"/>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="figure"/>
</choice>
</oneOrMore>
Expand Down
2 changes: 1 addition & 1 deletion lib/metanorma/plateau/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Metanorma
module Plateau
VERSION = "0.1.9".freeze
VERSION = "0.1.10".freeze
end
end
2 changes: 1 addition & 1 deletion metanorma-plateau.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")

spec.add_dependency "metanorma-jis", "~> 0.3.0"
spec.add_dependency "metanorma-jis", "~> 0.4.0"
spec.add_dependency "pubid"

spec.add_development_dependency "debug"
Expand Down
4 changes: 2 additions & 2 deletions spec/isodoc/blocks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<image src="rice_images/rice_image1.png" height="20" width="auto" id="_" mimetype="image/png"/>
<image src="data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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G1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==" height="20" width="auto" id="_" mimetype="application/xml"/>
<fn reference="a">
<fn reference="a)">
<p id="_">
The time
<stem type="AsciiMath">t_90</stem>
Expand Down Expand Up @@ -143,7 +143,7 @@
<img src="rice_images/rice_image1.png" height="20" width="auto"/>
<img src="data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7" height="20" width="auto"/>
<img src="data:application/xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjw/eG1sLXN0eWxlc2hlZXQgdHlwZT0idGV4dC94c2wiIGhyZWY9Ii4uLy4uLy4uL3hzbC9yZXNfZG9jL2ltZ2ZpbGUueHNsIj8+CjwhRE9DVFlQRSBpbWdmaWxlLmNvbnRlbnQgU1lTVEVNICIuLi8uLi8uLi9kdGQvdGV4dC5lbnQiPgo8aW1nZmlsZS5jb250ZW50IG1vZHVsZT0iZnVuZGFtZW50YWxzX29mX3Byb2R1Y3RfZGVzY3JpcHRpb25fYW5kX3N1cHBvcnQiIGZpbGU9ImFjdGlvbl9zY2hlbWFleHBnMS54bWwiPgo8aW1nIHNyYz0iYWN0aW9uX3NjaGVtYWV4cGcxLmdpZiI+CjxpbWcuYXJlYSBzaGFwZT0icmVjdCIgY29vcmRzPSIyMTAsMTg2LDM0MywyMjciIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9iYXNpY19hdHRyaWJ1dGVfc2NoZW1hL2Jhc2ljX2F0dHJpYnV0ZV9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMTAsMTAsOTYsNTEiIGhyZWY9Ii4uLy4uL3Jlc291cmNlcy9hY3Rpb25fc2NoZW1hL2FjdGlvbl9zY2hlbWEueG1sIiAvPgo8aW1nLmFyZWEgc2hhcGU9InJlY3QiIGNvb3Jkcz0iMjEwLDI2NCwzNTgsMzA1IiBocmVmPSIuLi8uLi9yZXNvdXJjZXMvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEvc3VwcG9ydF9yZXNvdXJjZV9zY2hlbWEueG1sIiAvPgo8L2ltZz4KPC9pbWdmaWxlLmNvbnRlbnQ+Cg==" height="20" width="auto"/>
<a href="#_" class="TableFootnoteRef">a</a>
<a href="#_" class="TableFootnoteRef">a)</a>
<aside class="footnote">
<div id="fn:_">
<span>
Expand Down
3 changes: 1 addition & 2 deletions spec/isodoc/metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<sections> </sections>
</jis-standard>
INPUT
output = <<~OUTPUT
output =
{:agency=>"MLIT",
:docnumber=>"1000-1.3:2000",
:docnumber_undated=>"1000-1.3",
Expand Down Expand Up @@ -169,7 +169,6 @@
:tc=>"A 1",
:unpublished=>true,
:wg=>"C 3"}
OUTPUT
expect(metadata(c.info(Nokogiri::XML(input),
nil))).to be_equivalent_to output
end
Expand Down
14 changes: 7 additions & 7 deletions spec/isodoc/table_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@
<td valign="top" align="left">Arborio</td>
<td valign="middle" align="center">
Drago
<fn reference="a">
<fn reference="a)">
<p id="_">Parboiled rice.</p>
</fn>
</td>
<td valign="bottom" align="center">
Balilla
<fn reference="a">
<fn reference="a)">
<p id="_">Parboiled rice.</p>
</fn>
</td>
Expand Down Expand Up @@ -248,7 +248,7 @@
<div id="fn:tableD-11">
<span>
Footnote
<span id="tableD-11" class="TableFootnoteRef">1)</span>
<span id="tableD-11" class="TableFootnoteRef">1</span>
 
</span>
<p>X</p>
Expand All @@ -265,12 +265,12 @@
<td style="text-align:left;vertical-align:top;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">Arborio</td>
<td style="text-align:center;vertical-align:middle;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">
Drago
<a href="#tableD-1a" class="TableFootnoteRef">a</a>
<a href="#tableD-1a)" class="TableFootnoteRef">a)</a>
<aside class="footnote">
<div id="fn:tableD-1a">
<div id="fn:tableD-1a)">
<span>
Footnote
<span id="tableD-1a" class="TableFootnoteRef">a)</span>
<span id="tableD-1a)" class="TableFootnoteRef">a)</span>
 
</span>
<p id="_">Parboiled rice.</p>
Expand All @@ -279,7 +279,7 @@
</td>
<td style="text-align:center;vertical-align:bottom;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">
Balilla
<a href="#tableD-1a" class="TableFootnoteRef">a</a>
<a href="#tableD-1a)" class="TableFootnoteRef">a)</a>
</td>
<td style="text-align:center;border-top:none;border-bottom:solid windowtext 1.5pt;" scope="col">Thaibonnet</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def strip_guid(xml)
xml.gsub(%r{ id="_[^"]+"}, ' id="_"')
.gsub(%r{ target="_[^"]+"}, ' target="_"')
.gsub(%r{ name="_[^"]+"}, ' name="_"')
.gsub(%r( href="#_?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12,13}"), ' href="#_"')
.gsub(%r( id="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{13}"), ' id="_"')
.gsub(%r( href="#_?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12,13}\)?"), ' href="#_"')
.gsub(%r( id="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{13}\)?"), ' id="_"')
.gsub(%r( id="ftn[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{13}"), ' id="ftn_"')
.gsub(%r( id="fn:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{13}"), ' id="fn:_"')
.gsub(%r( id="fn:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{13}\)?"), ' id="fn:_"')
.gsub(%r[ src="([^/]+)/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.], ' src="\\1/_.')
.gsub(%r{<fetched>[^<]+</fetched>}, "<fetched/>")
.gsub(%r{ schema-version="[^"]+"}, "")
Expand Down

0 comments on commit c19739d

Please sign in to comment.