Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 26, 2022
1 parent 673f0c4 commit f5bf608
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/isodoc/ribose/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
module IsoDoc
module Ribose
module Init
def metadata_init(lang, script, labels)
@meta = Metadata.new(lang, script, labels)
def metadata_init(lang, script, locale, labels)
@meta = Metadata.new(lang, script, locale, labels)
end

def xref_init(lang, script, _klass, labels, options)
html = HtmlConvert.new(language: lang, script: script)
@xrefs = Xref.new(lang, script, html, labels, options)
end

def i18n_init(lang, script, i18nyaml = nil)
def i18n_init(lang, script, locale, i18nyaml = nil)
@i18n = I18n.new(
lang, script, i18nyaml: i18nyaml ||
lang, script, locale: locale, i18nyaml: i18nyaml ||
Metanorma::Ribose.configuration.i18nyaml || @i18nyaml
)
end
Expand Down
33 changes: 32 additions & 1 deletion lib/metanorma/ribose/biblio.rng
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,14 @@
<text/>
</element>
</define>
<define name="script">
<define name="locale">
<a:documentation>ISO-639</a:documentation>
<element name="locale">
<text/>
</element>
</define>
<define name="script">
<a:documentation>ISO-3166</a:documentation>
<element name="script">
<text/>
</element>
Expand All @@ -93,6 +99,9 @@
<!-- multiple languages and scripts possible: comma delimit them if so -->
<attribute name="language"/>
</optional>
<optional>
<attribute name="locale"/>
</optional>
<optional>
<attribute name="script"/>
</optional>
Expand Down Expand Up @@ -136,6 +145,9 @@
<!-- multiple languages and scripts possible: comma delimit them if so -->
<attribute name="language"/>
</optional>
<optional>
<attribute name="locale"/>
</optional>
<optional>
<attribute name="script"/>
</optional>
Expand Down Expand Up @@ -650,6 +662,9 @@
<zeroOrMore>
<ref name="language"/>
</zeroOrMore>
<zeroOrMore>
<ref name="locale"/>
</zeroOrMore>
<zeroOrMore>
<ref name="script"/>
</zeroOrMore>
Expand Down Expand Up @@ -741,6 +756,9 @@
<zeroOrMore>
<ref name="language"/>
</zeroOrMore>
<zeroOrMore>
<ref name="locale"/>
</zeroOrMore>
<zeroOrMore>
<ref name="script"/>
</zeroOrMore>
Expand Down Expand Up @@ -854,6 +872,15 @@
<optional>
<attribute name="type"/>
</optional>
<optional>
<attribute name="language"/>
</optional>
<optional>
<attribute name="locale"/>
</optional>
<optional>
<attribute name="script"/>
</optional>
<data type="anyURI"/>
</define>
<define name="DateType">
Expand Down Expand Up @@ -882,6 +909,7 @@
<value>vote-started</value>
<value>vote-ended</value>
<value>announced</value>
<value>stable-until</value>
</choice>
</define>
<define name="bdate">
Expand Down Expand Up @@ -930,6 +958,9 @@
<optional>
<attribute name="language"/>
</optional>
<optional>
<attribute name="locale"/>
</optional>
<optional>
<attribute name="script"/>
</optional>
Expand Down
2 changes: 1 addition & 1 deletion lib/metanorma/ribose/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Metanorma
module Ribose
VERSION = "2.1.8.1".freeze
VERSION = "2.1.9".freeze
end
end
2 changes: 1 addition & 1 deletion metanorma-ribose.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")

spec.add_dependency "metanorma-generic", "~> 2.2.0"
spec.add_dependency "metanorma-generic", "~> 2.2.2"

spec.add_development_dependency "debug"
spec.add_development_dependency "equivalent-xml", "~> 0.6"
Expand Down

0 comments on commit f5bf608

Please sign in to comment.