relaton-ietf 2.0.0.pre.alpha.2 → 2.0.0.pre.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/grammars/basicdoc.rng +14 -1
- data/grammars/biblio.rng +8 -8
- data/lib/relaton/ietf/data_fetcher.rb +2 -2
- data/lib/relaton/ietf/rfc/entry.rb +6 -6
- data/lib/relaton/ietf/version.rb +1 -1
- data/relaton_ietf.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa9c04a74c8aee3154d05f5031b96f288d45b9b99b8458b1120bbc9a5d86875a
|
|
4
|
+
data.tar.gz: 22da6e8ac8fec26345906ede9a761b67c4de94154133469568aed02525b6d060
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89e40bcaa367a3801dab14988f78fe61764e323c2f9e0c2b7a65f55fa82824c488205801707149f4fed035dc4efc1b6f808785365954f76f53d9e2fc0ce24592
|
|
7
|
+
data.tar.gz: 23f050f82a9d012538dd3775fdae607c2fdb8ae602eec94e74213a74797e593d02394e271d9bb4decd9a69e88c39f0bec73a630186bafc252be902ba2abb2e38
|
data/grammars/basicdoc.rng
CHANGED
|
@@ -187,6 +187,15 @@ Applicable to modify and delete</a:documentation>
|
|
|
187
187
|
<a:documentation>Optional caption of this block</a:documentation>
|
|
188
188
|
</attribute>
|
|
189
189
|
</optional>
|
|
190
|
+
<optional>
|
|
191
|
+
<attribute name="position">
|
|
192
|
+
<a:documentation>For an "add" change, whether the change is added before or after the location</a:documentation>
|
|
193
|
+
<choice>
|
|
194
|
+
<value>before</value>
|
|
195
|
+
<value>after</value>
|
|
196
|
+
</choice>
|
|
197
|
+
</attribute>
|
|
198
|
+
</optional>
|
|
190
199
|
<optional>
|
|
191
200
|
<element name="location">
|
|
192
201
|
<a:documentation>The location(s) in the original document which have undergone the change described in this block</a:documentation>
|
|
@@ -208,11 +217,15 @@ Applicable to modify and delete</a:documentation>
|
|
|
208
217
|
</zeroOrMore>
|
|
209
218
|
<optional>
|
|
210
219
|
<element name="newcontent">
|
|
211
|
-
<a:documentation>New content to be added to the document; applicable to add and modify
|
|
220
|
+
<a:documentation>New content to be added to the document; applicable to add and modify.
|
|
221
|
+
Can be blocks and/or sections</a:documentation>
|
|
212
222
|
<ref name="OptionalId"/>
|
|
213
223
|
<zeroOrMore>
|
|
214
224
|
<ref name="BasicBlock"/>
|
|
215
225
|
</zeroOrMore>
|
|
226
|
+
<zeroOrMore>
|
|
227
|
+
<ref name="section"/>
|
|
228
|
+
</zeroOrMore>
|
|
216
229
|
</element>
|
|
217
230
|
</optional>
|
|
218
231
|
<zeroOrMore>
|
data/grammars/biblio.rng
CHANGED
|
@@ -1142,11 +1142,11 @@ NOTE: This should preferably be encoded as a URI or short identifier, rather th
|
|
|
1142
1142
|
<a:documentation>Information about how long the current description of the bibliographic item is valid for</a:documentation>
|
|
1143
1143
|
</ref>
|
|
1144
1144
|
</optional>
|
|
1145
|
-
<
|
|
1145
|
+
<zeroOrMore>
|
|
1146
1146
|
<ref name="depiction">
|
|
1147
1147
|
<a:documentation>Depiction of the bibliographic item, typically an image</a:documentation>
|
|
1148
1148
|
</ref>
|
|
1149
|
-
</
|
|
1149
|
+
</zeroOrMore>
|
|
1150
1150
|
</define>
|
|
1151
1151
|
<define name="ReducedBibliographicItem">
|
|
1152
1152
|
<a:documentation>Reduced description of a bibliographic resource, without mandatory title and docidentifier, used for document relations
|
|
@@ -1939,10 +1939,10 @@ Detailed in https://www.relaton.org/model/relations/</a:documentation>
|
|
|
1939
1939
|
<value>hasAnnotation</value>
|
|
1940
1940
|
<value>draftOf</value>
|
|
1941
1941
|
<value>hasDraft</value>
|
|
1942
|
-
<value>
|
|
1943
|
-
<value>
|
|
1944
|
-
<value>
|
|
1945
|
-
<value>
|
|
1942
|
+
<value>predecessorDraftOf</value>
|
|
1943
|
+
<value>hasPredecessorDraft</value>
|
|
1944
|
+
<value>successorDraftOf</value>
|
|
1945
|
+
<value>hasSuccessorDraft</value>
|
|
1946
1946
|
<value>editionOf</value>
|
|
1947
1947
|
<value>hasEdition</value>
|
|
1948
1948
|
<value>updates</value>
|
|
@@ -2063,13 +2063,13 @@ provided that it is not the entire bibliographic item that is so related</a:docu
|
|
|
2063
2063
|
<ref name="LocalizedString"/>
|
|
2064
2064
|
</element>
|
|
2065
2065
|
</optional>
|
|
2066
|
-
<
|
|
2066
|
+
<zeroOrMore>
|
|
2067
2067
|
<element name="taxon">
|
|
2068
2068
|
<a:documentation>The keywords as a hierarchical taxonomy. For example, the sequence of `taxon` elements
|
|
2069
2069
|
`pump`, `centrifugal pump`, `line shaft pump` represents a taxonomic classification</a:documentation>
|
|
2070
2070
|
<ref name="LocalizedString"/>
|
|
2071
2071
|
</element>
|
|
2072
|
-
</
|
|
2072
|
+
</zeroOrMore>
|
|
2073
2073
|
<zeroOrMore>
|
|
2074
2074
|
<ref name="vocabid">
|
|
2075
2075
|
<a:documentation>Identifiers for the keyword as a controlled vocabulary</a:documentation>
|
|
@@ -108,7 +108,7 @@ module Relaton
|
|
|
108
108
|
rel = vs.map { |v| version_relation v, "includes" }
|
|
109
109
|
last_v = Item.from_yaml(File.read(file, encoding: "UTF-8"))
|
|
110
110
|
bib = ItemData.new(
|
|
111
|
-
title: last_v.title, abstract: last_v.abstract, formattedref: ref,
|
|
111
|
+
title: last_v.title, abstract: last_v.abstract, formattedref: Bib::Formattedref.new(content: ref),
|
|
112
112
|
docidentifier: [docid], relation: rel
|
|
113
113
|
)
|
|
114
114
|
save_doc bib
|
|
@@ -124,7 +124,7 @@ module Relaton
|
|
|
124
124
|
#
|
|
125
125
|
def version_relation(ver, type)
|
|
126
126
|
docid = Bib::Docidentifier.new(type: "Internet-Draft", content: ver[:ref], primary: true)
|
|
127
|
-
bibitem = ItemData.new(formattedref: ver[:ref], docidentifier: [docid], source: ver[:source])
|
|
127
|
+
bibitem = ItemData.new(formattedref: Bib::Formattedref.new(content: ver[:ref]), docidentifier: [docid], source: ver[:source])
|
|
128
128
|
Bib::Relation.new(type: type, bibitem: bibitem)
|
|
129
129
|
end
|
|
130
130
|
|
|
@@ -204,7 +204,7 @@ module Relaton
|
|
|
204
204
|
end
|
|
205
205
|
|
|
206
206
|
def build_formattedref
|
|
207
|
-
anchor
|
|
207
|
+
Bib::Formattedref.new(content: anchor)
|
|
208
208
|
end
|
|
209
209
|
|
|
210
210
|
def build_relations(rfc_index = nil, wg_names: {})
|
|
@@ -220,7 +220,7 @@ module Relaton
|
|
|
220
220
|
def build_minimal_bibitem(ref)
|
|
221
221
|
id = ref.sub(/^([A-Z]+)0*(\d+)$/, '\1 \2')
|
|
222
222
|
docid = Bib::Docidentifier.new(type: "IETF", content: id, primary: true)
|
|
223
|
-
ItemData.new(formattedref: ref, docidentifier: [docid])
|
|
223
|
+
ItemData.new(formattedref: Bib::Formattedref.new(content: ref), docidentifier: [docid])
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
def build_series
|
|
@@ -310,8 +310,8 @@ module Relaton
|
|
|
310
310
|
|
|
311
311
|
def build_rfc_keyword
|
|
312
312
|
(keywords&.kw || []).map do |kw|
|
|
313
|
-
|
|
314
|
-
Bib::Keyword.new(
|
|
313
|
+
vocab = Bib::LocalizedString.new(content: kw)
|
|
314
|
+
Bib::Keyword.new(vocab: vocab)
|
|
315
315
|
end
|
|
316
316
|
end
|
|
317
317
|
|
|
@@ -319,7 +319,7 @@ module Relaton
|
|
|
319
319
|
return [] unless abstract&.p&.any?
|
|
320
320
|
|
|
321
321
|
content = abstract.p.map { |para| "<p>#{para.strip}</p>" }.join
|
|
322
|
-
[Bib::
|
|
322
|
+
[Bib::Abstract.new(content: content, language: "en", script: "Latn")]
|
|
323
323
|
end
|
|
324
324
|
|
|
325
325
|
def build_rfc_relation
|
|
@@ -339,7 +339,7 @@ module Relaton
|
|
|
339
339
|
|
|
340
340
|
def build_rfc_doc_relation(ref, type)
|
|
341
341
|
docid = Bib::Docidentifier.new(type: "IETF", content: ref, primary: true)
|
|
342
|
-
bibitem = ItemData.new(formattedref: ref, docidentifier: [docid])
|
|
342
|
+
bibitem = ItemData.new(formattedref: Bib::Formattedref.new(content: ref), docidentifier: [docid])
|
|
343
343
|
Bib::Relation.new(type: type, bibitem: bibitem)
|
|
344
344
|
end
|
|
345
345
|
|
data/lib/relaton/ietf/version.rb
CHANGED
data/relaton_ietf.gemspec
CHANGED
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 3.2.0")
|
|
31
31
|
|
|
32
32
|
spec.add_dependency "base64"
|
|
33
|
-
spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.
|
|
34
|
-
spec.add_dependency "relaton-core", "~> 0.0.
|
|
33
|
+
spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.7"
|
|
34
|
+
spec.add_dependency "relaton-core", "~> 0.0.13"
|
|
35
35
|
spec.add_dependency "relaton-index", "~> 0.2.3"
|
|
36
36
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-ietf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0.pre.alpha.
|
|
4
|
+
version: 2.0.0.pre.alpha.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -29,28 +29,28 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 2.0.0.pre.alpha.
|
|
32
|
+
version: 2.0.0.pre.alpha.7
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.0.0.pre.alpha.
|
|
39
|
+
version: 2.0.0.pre.alpha.7
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: relaton-core
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.0.
|
|
46
|
+
version: 0.0.13
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.0.
|
|
53
|
+
version: 0.0.13
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: relaton-index
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|