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 +4 -4
- data/.github/workflows/rake.yml +1 -1
- data/.github/workflows/release.yml +24 -0
- data/lib/isodoc/ietf/init.rb +3 -2
- data/lib/isodoc/ietf/rfc_convert.rb +4 -4
- data/lib/metanorma/ietf/biblio.rng +40 -6
- data/lib/metanorma/ietf/converter.rb +3 -3
- data/lib/metanorma/ietf/version.rb +1 -1
- data/metanorma-ietf.gemspec +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1deb99aa6937a5ecea906469cd404152a74945e6e6fb595262c52358841bc53
|
4
|
+
data.tar.gz: 0cd0c817dffcc423b00043479704a63851807d0e1aa0ea77856c80871e6d11df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ee37a0a08b9f25e7aea0a381e383e154dadff6fd0bd9196cf375b7a4e3b199f327426e9f210452bf1ae4513220e4a7b6f1790d67aaf6e4a409134772fa1888b
|
7
|
+
data.tar.gz: 4d1df87114db20f71ba28f2fea1f254f8bfb47a03db1269b8e6db1d0a10013dcd44f164a493f5c8b3409e0e1f311b2b7eb7d65dfe84401d70da76fbd13bb441d
|
data/.github/workflows/rake.yml
CHANGED
@@ -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
|
+
|
data/lib/isodoc/ietf/init.rb
CHANGED
@@ -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,
|
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="
|
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
|
-
<
|
229
|
-
<ref name="
|
230
|
-
</
|
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="
|
251
|
-
<element name="
|
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
|
data/metanorma-ietf.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|