metanorma-ietf 3.0.10 → 3.0.11

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: 6c10eeb240c73eb23dc86cb68f2a74f8931b3e350f68ee763a23256a56795bae
4
- data.tar.gz: ee6a1934c755a258adef52e1689eb462297fa34be3a8deb5923ed1da34b945b7
3
+ metadata.gz: a1deb99aa6937a5ecea906469cd404152a74945e6e6fb595262c52358841bc53
4
+ data.tar.gz: 0cd0c817dffcc423b00043479704a63851807d0e1aa0ea77856c80871e6d11df
5
5
  SHA512:
6
- metadata.gz: 89f9bc46f9a5d31116b36402279e8e41db7a23a012368d11acab85c9f87d6e71eb200a327a3f54b3e88e0df2efb997324462eea853996d9a46dc7e78861f09c6
7
- data.tar.gz: fa040fe15ba9e856a3fdb5645c7d06773f288a2dd36414772e04f087ccb2acfc52dc13dfc2564025b7b4e9bc3ad0f8eba3b62c1d8a66fef699b186fd3d1e18fd
6
+ metadata.gz: 5ee37a0a08b9f25e7aea0a381e383e154dadff6fd0bd9196cf375b7a4e3b199f327426e9f210452bf1ae4513220e4a7b6f1790d67aaf6e4a409134772fa1888b
7
+ data.tar.gz: 4d1df87114db20f71ba28f2fea1f254f8bfb47a03db1269b8e6db1d0a10013dcd44f164a493f5c8b3409e0e1f311b2b7eb7d65dfe84401d70da76fbd13bb441d
@@ -11,6 +11,6 @@ on:
11
11
 
12
12
  jobs:
13
13
  rake:
14
- uses: metanorma/metanorma-build-scripts/.github/workflows/xml2rfc-rake.yml@main
14
+ uses: metanorma/ci/.github/workflows/xml2rfc-rake.yml@main
15
15
  secrets:
16
16
  pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -0,0 +1,24 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ name: release
4
+
5
+ on:
6
+ workflow_dispatch:
7
+ inputs:
8
+ next_version:
9
+ description: |
10
+ Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
11
+ required: true
12
+ default: 'skip'
13
+ push:
14
+ tags: [ v* ]
15
+
16
+ jobs:
17
+ release:
18
+ uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
19
+ with:
20
+ next_version: ${{ github.event.inputs.next_version }}
21
+ secrets:
22
+ rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
23
+ pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
24
+
@@ -4,8 +4,9 @@ require_relative "i18n"
4
4
  module IsoDoc
5
5
  module Ietf
6
6
  module Init
7
- def i18n_init(lang, script, i18nyaml = nil)
8
- @i18n = I18n.new(lang, script, i18nyaml: i18nyaml || @i18nyaml)
7
+ def i18n_init(lang, script, locale, i18nyaml = nil)
8
+ @i18n = I18n.new(lang, script, locale: locale,
9
+ i18nyaml: i18nyaml || @i18nyaml)
9
10
  end
10
11
 
11
12
  def fileloc(loc)
@@ -32,7 +32,7 @@ module IsoDoc
32
32
  def document_preprocess(docxml)
33
33
  @isodoc.reqt_models = Metanorma::Requirements
34
34
  .new({ default: "default", lang: @lang, script: @script,
35
- labels: @i18n.get })
35
+ locale: @locale, labels: @i18n.get })
36
36
  info docxml, nil
37
37
  @xrefs.parse docxml
38
38
  @isodoc.xrefs = @xrefs
@@ -43,8 +43,8 @@ module IsoDoc
43
43
  @xrefs.parse docxml
44
44
  end
45
45
 
46
- def metadata_init(lang, script, i18n)
47
- @meta = Metadata.new(lang, script, i18n)
46
+ def metadata_init(lang, script, locale, i18n)
47
+ @meta = Metadata.new(lang, script, locale, i18n)
48
48
  end
49
49
 
50
50
  def xref_init(lang, script, klass, i18n, options)
@@ -105,7 +105,7 @@ module IsoDoc
105
105
  @format = :rfc
106
106
  @suffix = "rfc.xml"
107
107
  @isodoc = IsoDoc::PresentationXMLConvert.new({})
108
- @isodoc.i18n_init("en", "Latn")
108
+ @isodoc.i18n_init("en", "Latn", nil, nil)
109
109
  end
110
110
 
111
111
  include ::IsoDoc::Ietf::Init
@@ -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>
@@ -225,9 +237,9 @@
225
237
  <zeroOrMore>
226
238
  <ref name="forename"/>
227
239
  </zeroOrMore>
228
- <zeroOrMore>
229
- <ref name="initial"/>
230
- </zeroOrMore>
240
+ <optional>
241
+ <ref name="formatted-initials"/>
242
+ </optional>
231
243
  <ref name="surname"/>
232
244
  <zeroOrMore>
233
245
  <ref name="addition"/>
@@ -247,8 +259,8 @@
247
259
  <ref name="LocalizedString"/>
248
260
  </element>
249
261
  </define>
250
- <define name="initial">
251
- <element name="initial">
262
+ <define name="formatted-initials">
263
+ <element name="formatted-initials">
252
264
  <ref name="LocalizedString"/>
253
265
  </element>
254
266
  </define>
@@ -264,6 +276,9 @@
264
276
  </define>
265
277
  <define name="forename">
266
278
  <element name="forename">
279
+ <optional>
280
+ <attribute name="initial"/>
281
+ </optional>
267
282
  <ref name="LocalizedString"/>
268
283
  </element>
269
284
  </define>
@@ -647,6 +662,9 @@
647
662
  <zeroOrMore>
648
663
  <ref name="language"/>
649
664
  </zeroOrMore>
665
+ <zeroOrMore>
666
+ <ref name="locale"/>
667
+ </zeroOrMore>
650
668
  <zeroOrMore>
651
669
  <ref name="script"/>
652
670
  </zeroOrMore>
@@ -738,6 +756,9 @@
738
756
  <zeroOrMore>
739
757
  <ref name="language"/>
740
758
  </zeroOrMore>
759
+ <zeroOrMore>
760
+ <ref name="locale"/>
761
+ </zeroOrMore>
741
762
  <zeroOrMore>
742
763
  <ref name="script"/>
743
764
  </zeroOrMore>
@@ -851,6 +872,15 @@
851
872
  <optional>
852
873
  <attribute name="type"/>
853
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>
854
884
  <data type="anyURI"/>
855
885
  </define>
856
886
  <define name="DateType">
@@ -879,6 +909,7 @@
879
909
  <value>vote-started</value>
880
910
  <value>vote-ended</value>
881
911
  <value>announced</value>
912
+ <value>stable-until</value>
882
913
  </choice>
883
914
  </define>
884
915
  <define name="bdate">
@@ -927,6 +958,9 @@
927
958
  <optional>
928
959
  <attribute name="language"/>
929
960
  </optional>
961
+ <optional>
962
+ <attribute name="locale"/>
963
+ </optional>
930
964
  <optional>
931
965
  <attribute name="script"/>
932
966
  </optional>
@@ -166,10 +166,10 @@ module Metanorma
166
166
  IsoDoc::Ietf::RfcConvert.new(html_extract_attributes(node))
167
167
  end
168
168
 
169
- def isodoc(lang, script, i18nyaml = nil)
169
+ def isodoc(lang, script, locale, i18nyaml = nil)
170
170
  conv = rfc_converter(EmptyAttr.new)
171
- i18n = conv.i18n_init(lang, script, i18nyaml)
172
- conv.metadata_init(lang, script, i18n)
171
+ i18n = conv.i18n_init(lang, script, locale, i18nyaml)
172
+ conv.metadata_init(lang, script, locale, i18n)
173
173
  conv
174
174
  end
175
175
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ietf
3
- VERSION = "3.0.10".freeze
3
+ VERSION = "3.0.11".freeze
4
4
  end
5
5
  end
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
 
38
38
  spec.add_dependency "mathml2asciimath"
39
39
  spec.add_dependency "metanorma-ietf-data"
40
- spec.add_dependency "metanorma-standoc", "~> 2.2.0"
40
+ spec.add_dependency "metanorma-standoc", "~> 2.2.4"
41
41
 
42
42
  spec.add_development_dependency "debug"
43
43
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.10
4
+ version: 3.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-23 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: mathml2asciimath
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.0
47
+ version: 2.2.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.0
54
+ version: 2.2.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: debug
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -224,6 +224,7 @@ extensions: []
224
224
  extra_rdoc_files: []
225
225
  files:
226
226
  - ".github/workflows/rake.yml"
227
+ - ".github/workflows/release.yml"
227
228
  - ".gitignore"
228
229
  - ".hound.yml"
229
230
  - ".oss-guides.rubocop.yml"
@@ -278,7 +279,7 @@ homepage: https://github.com/metanorma/metanorma-ietf
278
279
  licenses:
279
280
  - BSD-2-Clause
280
281
  metadata: {}
281
- post_install_message:
282
+ post_install_message:
282
283
  rdoc_options: []
283
284
  require_paths:
284
285
  - lib
@@ -293,8 +294,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
294
  - !ruby/object:Gem::Version
294
295
  version: '0'
295
296
  requirements: []
296
- rubygems_version: 3.3.16
297
- signing_key:
297
+ rubygems_version: 3.1.6
298
+ signing_key:
298
299
  specification_version: 4
299
300
  summary: metanorma-ietf lets you write IETF documents, such as Internet-Drafts and
300
301
  RFCs, in AsciiDoc.