relaton-ietf 1.13.7 → 1.13.9
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/ietf_bibliographic_item.rb +4 -4
- data/lib/relaton_ietf/rfc_entry.rb +9 -2
- 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: 7b96fa3f82bb19b36855beef798e71eb2a0177d1880f828e30aaced44f52bf71
|
4
|
+
data.tar.gz: 72a784ca4abb5360acf0e1fb691a936357af69925b868fc28969afaf4c2114a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1f9a23b72a1055b393fe2ff90b82a8ff56b44d3d24adce776f5f46d3097faf1d87b48f889b616c3f51763e2068b95a97b343e415b88dff426e58bc21a2a8ad
|
7
|
+
data.tar.gz: 93290a6ded08f86fb1a46465161a45c378569d645cbca6082331ed49ffb3ff526f03e7dfe60a704bc2267ac431d4d0dfddbdb60656d4ad4cf7b9f3a8d97a381d
|
@@ -40,10 +40,10 @@ module RelatonIetf
|
|
40
40
|
#
|
41
41
|
# @param [Nokogiri::XML::Builder] builder xml builder
|
42
42
|
#
|
43
|
-
|
44
|
-
|
43
|
+
def render_date(builder)
|
44
|
+
return if docidentifier.detect { |i| i.type == "IANA" }
|
45
45
|
|
46
|
-
|
47
|
-
|
46
|
+
super
|
47
|
+
end
|
48
48
|
end
|
49
49
|
end
|
@@ -149,8 +149,8 @@ module RelatonIetf
|
|
149
149
|
#
|
150
150
|
# @return [Array<RelatonBib::ContributionInfo>] document contributors
|
151
151
|
#
|
152
|
-
def parse_contributor
|
153
|
-
@doc.xpath("./xmlns:author").map do |contrib|
|
152
|
+
def parse_contributor # rubocop:disable Metrics/MethodLength
|
153
|
+
contribs = @doc.xpath("./xmlns:author").map do |contrib|
|
154
154
|
name = contrib.at("./xmlns:name").text
|
155
155
|
entity = BibXMLParser.full_name_org name
|
156
156
|
unless entity
|
@@ -159,6 +159,13 @@ module RelatonIetf
|
|
159
159
|
end
|
160
160
|
RelatonBib::ContributionInfo.new(entity: entity, role: parse_role(contrib))
|
161
161
|
end
|
162
|
+
contribs << create_org_contrib("RFC Publisher", "publisher")
|
163
|
+
contribs << create_org_contrib("RFC Series", "authorizer")
|
164
|
+
end
|
165
|
+
|
166
|
+
def create_org_contrib(org_name, role_type)
|
167
|
+
org = RelatonBib::Organization.new name: org_name
|
168
|
+
RelatonBib::ContributionInfo.new entity: org, role: [{ type: role_type }]
|
162
169
|
end
|
163
170
|
|
164
171
|
#
|
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.13.
|
4
|
+
version: 1.13.9
|
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-
|
11
|
+
date: 2022-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|