relaton-ietf 1.10.1 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_ietf/bibxml_parser.rb +10 -5
- data/lib/relaton_ietf/rfc_entry.rb +5 -3
- data/lib/relaton_ietf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aea00f6f466ab9780b8fbb93cd69ea04e7bd099ab8793be0edd6be843143a3f6
|
4
|
+
data.tar.gz: a9259ce6290b92dc98679aded761e2563d4771118f4a44434142cd26b3248c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d4cf8fc6b8ce6483732b0c8f350596a41cd76ac35001e0257f683ebf854646cb473f08d293e40b8fc84cee61527ab421bd6178ba5a2f14ec32a29c4c2ac97c0
|
7
|
+
data.tar.gz: c8016eb29a720c92dc25c4e364a5877d31fa1aa0cffa6bb5acae164ec9a169c0022e4c6eb6cc5b3b05963ae74b5a922cb036e0c196d205fe85907cd9d22cd79c
|
@@ -8,7 +8,7 @@ module RelatonIetf
|
|
8
8
|
def bib_item(**attrs)
|
9
9
|
unless attrs.delete(:is_relation)
|
10
10
|
attrs[:fetched] = Date.today.to_s
|
11
|
-
attrs[:place] = ["Fremont, CA"]
|
11
|
+
# attrs[:place] = ["Fremont, CA"]
|
12
12
|
end
|
13
13
|
RelatonIetf::IetfBibliographicItem.new(**attrs)
|
14
14
|
end
|
@@ -24,6 +24,7 @@ module RelatonIetf
|
|
24
24
|
type = super
|
25
25
|
case type
|
26
26
|
when "BCP", "FYI", "STD", "RFC" then "RFC"
|
27
|
+
when "Internet-Draft" then type
|
27
28
|
else "IETF"
|
28
29
|
end
|
29
30
|
end
|
@@ -37,10 +38,14 @@ module RelatonIetf
|
|
37
38
|
# @param reference [Nokogiri::XML::Element]
|
38
39
|
# @return [Array<Hash>]
|
39
40
|
def contributors(reference)
|
40
|
-
[
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
contribs = []
|
42
|
+
unless reference[:anchor]&.match?(/^I-D/)
|
43
|
+
contribs << {
|
44
|
+
entity: new_org("Internet Engineering Task Force", "IETF"),
|
45
|
+
role: [type: "publisher"],
|
46
|
+
}
|
47
|
+
end
|
48
|
+
contribs + super
|
44
49
|
# persons(reference) + organizations(reference)
|
45
50
|
end
|
46
51
|
end
|
@@ -256,11 +256,13 @@ module RelatonIetf
|
|
256
256
|
# @return [RelatonBib::EditorialGroup] document editorial group
|
257
257
|
#
|
258
258
|
def parse_editorialgroup
|
259
|
-
tc = @doc.xpath("./xmlns:wg_acronym").
|
259
|
+
tc = @doc.xpath("./xmlns:wg_acronym").each_with_object([]) do |wg, arr|
|
260
|
+
next if wg.text == "NON WORKING GROUP"
|
261
|
+
|
260
262
|
wg = RelatonBib::WorkGroup.new(name: wg.text)
|
261
|
-
RelatonBib::TechnicalCommittee.new(wg)
|
263
|
+
arr << RelatonBib::TechnicalCommittee.new(wg)
|
262
264
|
end
|
263
|
-
RelatonBib::EditorialGroup.new(tc)
|
265
|
+
RelatonBib::EditorialGroup.new(tc) if tc.any?
|
264
266
|
end
|
265
267
|
end
|
266
268
|
end
|
data/lib/relaton_ietf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ietf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.4
|
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-
|
11
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|