metanorma-generic 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d63bf1d87c09663880e45e6331afa0a2364d49820bb245018c3c96694177713
4
- data.tar.gz: d3e942091b59f89c572911e6174822f8c730760fafd2d5e259a132c38bb533ba
3
+ metadata.gz: e47c1e0506d6b40cb425824d37f34a4c48610c5a92a301305425dbca76c9952e
4
+ data.tar.gz: f2505fc678139eaba373f08ae1d058e34d32e4016981536cb4f5a5a984e75ab1
5
5
  SHA512:
6
- metadata.gz: 8ff667157f85378d802293fea0c04f423006b7275ff4d5432adfda56d4690f0db7377207716779c50f5a89244402a714764d02e970058e545ffcbde13e8766b5
7
- data.tar.gz: d01432c7ea3fa4c73bd3087afa78b734af835bf9946d2c2788c36ac145985e68c927a1ed1c9b32ee357bb27e538d3ccaad909356994536a231a150b67a91bf1a
6
+ metadata.gz: 2d708f224849accec31667209d80442776b64b7a8df211c765e51943095aa8184dfb490530465327f5b315233d54d122fb946ab2c8bf667774101c9b77e6bfbe
7
+ data.tar.gz: e84fc5a09ba497091c5f415ce72336af38a274459f7f0729d0a44bf7e77e8bd873db0a308f59eda53413b79a0fcdfc17cfc8429ee1f50f4ba4c4b42c838c2e2d
@@ -7,8 +7,8 @@ require_relative "utils"
7
7
  module IsoDoc
8
8
  module Generic
9
9
  module Init
10
- def metadata_init(lang, script, i18n)
11
- @meta = Metadata.new(lang, script, i18n)
10
+ def metadata_init(lang, script, locale, i18n)
11
+ @meta = Metadata.new(lang, script, locale, i18n)
12
12
  end
13
13
 
14
14
  def xref_init(lang, script, _klass, i18n, options)
@@ -16,11 +16,11 @@ module IsoDoc
16
16
  @xrefs = Xref.new(lang, script, html, i18n, options)
17
17
  end
18
18
 
19
- def i18n_init(lang, script, i18nyaml = nil)
19
+ def i18n_init(lang, script, locale, i18nyaml = nil)
20
20
  f = Metanorma::Generic.configuration.i18nyaml
21
21
  f = nil unless f.is_a? String
22
22
  @i18n = I18n.new(
23
- lang, script, i18nyaml: i18nyaml || f || @i18nyaml)
23
+ lang, script, locale: locale, i18nyaml: i18nyaml || f || @i18nyaml)
24
24
  end
25
25
 
26
26
  include Utils
@@ -28,7 +28,7 @@ end
28
28
  module IsoDoc
29
29
  module Generic
30
30
  class Metadata < IsoDoc::Metadata
31
- def initialize(lang, script, labels)
31
+ def initialize(lang, script, locale, labels)
32
32
  super
33
33
  here = File.dirname(__FILE__)
34
34
  default_logo_path =
@@ -73,8 +73,14 @@
73
73
  <text/>
74
74
  </element>
75
75
  </define>
76
- <define name="script">
76
+ <define name="locale">
77
77
  <a:documentation>ISO-639</a:documentation>
78
+ <element name="locale">
79
+ <text/>
80
+ </element>
81
+ </define>
82
+ <define name="script">
83
+ <a:documentation>ISO-3166</a:documentation>
78
84
  <element name="script">
79
85
  <text/>
80
86
  </element>
@@ -93,6 +99,9 @@
93
99
  <!-- multiple languages and scripts possible: comma delimit them if so -->
94
100
  <attribute name="language"/>
95
101
  </optional>
102
+ <optional>
103
+ <attribute name="locale"/>
104
+ </optional>
96
105
  <optional>
97
106
  <attribute name="script"/>
98
107
  </optional>
@@ -136,6 +145,9 @@
136
145
  <!-- multiple languages and scripts possible: comma delimit them if so -->
137
146
  <attribute name="language"/>
138
147
  </optional>
148
+ <optional>
149
+ <attribute name="locale"/>
150
+ </optional>
139
151
  <optional>
140
152
  <attribute name="script"/>
141
153
  </optional>
@@ -650,6 +662,9 @@
650
662
  <zeroOrMore>
651
663
  <ref name="language"/>
652
664
  </zeroOrMore>
665
+ <zeroOrMore>
666
+ <ref name="locale"/>
667
+ </zeroOrMore>
653
668
  <zeroOrMore>
654
669
  <ref name="script"/>
655
670
  </zeroOrMore>
@@ -741,6 +756,9 @@
741
756
  <zeroOrMore>
742
757
  <ref name="language"/>
743
758
  </zeroOrMore>
759
+ <zeroOrMore>
760
+ <ref name="locale"/>
761
+ </zeroOrMore>
744
762
  <zeroOrMore>
745
763
  <ref name="script"/>
746
764
  </zeroOrMore>
@@ -854,6 +872,15 @@
854
872
  <optional>
855
873
  <attribute name="type"/>
856
874
  </optional>
875
+ <optional>
876
+ <attribute name="language"/>
877
+ </optional>
878
+ <optional>
879
+ <attribute name="locale"/>
880
+ </optional>
881
+ <optional>
882
+ <attribute name="script"/>
883
+ </optional>
857
884
  <data type="anyURI"/>
858
885
  </define>
859
886
  <define name="DateType">
@@ -882,6 +909,7 @@
882
909
  <value>vote-started</value>
883
910
  <value>vote-ended</value>
884
911
  <value>announced</value>
912
+ <value>stable-until</value>
885
913
  </choice>
886
914
  </define>
887
915
  <define name="bdate">
@@ -930,6 +958,9 @@
930
958
  <optional>
931
959
  <attribute name="language"/>
932
960
  </optional>
961
+ <optional>
962
+ <attribute name="locale"/>
963
+ </optional>
933
964
  <optional>
934
965
  <attribute name="script"/>
935
966
  </optional>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Generic
3
- VERSION = "2.2.1".freeze
3
+ VERSION = "2.2.2".freeze
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Metanorma template gem for customisation."
12
12
  spec.description = <<~DESCRIPTION
13
13
  Metanorma template gem for customisation. This gem is meant to be customised for any downstream use.
14
- #{' '}
14
+
15
15
  Formerly known as metanorma-acme
16
16
  DESCRIPTION
17
17
 
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
28
28
 
29
29
  spec.add_dependency "htmlentities", "~> 4.3.4"
30
- spec.add_dependency "metanorma-standoc", "~> 2.2.2"
30
+ spec.add_dependency "metanorma-standoc", "~> 2.2.4"
31
31
  spec.add_dependency "ruby-jing"
32
32
 
33
33
  spec.add_development_dependency "debug"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-generic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.2
33
+ version: 2.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.2
40
+ version: 2.2.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-jing
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -192,8 +192,10 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0.9'
195
- description: " Metanorma template gem for customisation. This gem is meant to be
196
- customised for any downstream use.\n \n Formerly known as metanorma-acme\n"
195
+ description: |
196
+ Metanorma template gem for customisation. This gem is meant to be customised for any downstream use.
197
+
198
+ Formerly known as metanorma-acme
197
199
  email:
198
200
  - open.source@ribose.com
199
201
  executables: []