relaton-ietf 1.14.1 → 1.14.2
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 +20 -1
- data/lib/relaton_ietf/rfc_entry.rb +1 -1
- 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: aeb4af4144610491bf2bea9e39dc33eb0df67f8a64c67302b2a503a07d3e8fc8
|
4
|
+
data.tar.gz: 9e3ec1c20c3c987449cc438c88045b445c1a4196a53aee5a0e5b00b6a038aef4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d24d58dae25d535ce8fde08676e244e8435ab9d20fbbd5d9eb6b6f6c620e377686cf3436f49df145d7016a16a3713a6bc65955f1e8d8062ac84953d6cc67796e
|
7
|
+
data.tar.gz: 056caff1d268d56dc15049714784edb13ff25339fded08b8b2833ec95d843ccfe82855ebeece50f1f126c30c6bc9461af9d937451f9856bd53547b486434ae21
|
@@ -45,7 +45,7 @@ module RelatonIetf
|
|
45
45
|
end
|
46
46
|
|
47
47
|
#
|
48
|
-
# Render date as BibXML
|
48
|
+
# Render date as BibXML. Override to skip IANA docidentifiers
|
49
49
|
#
|
50
50
|
# @param [Nokogiri::XML::Builder] builder xml builder
|
51
51
|
#
|
@@ -54,5 +54,24 @@ module RelatonIetf
|
|
54
54
|
|
55
55
|
super
|
56
56
|
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Render authors as BibXML. Override to skip "RFC Publisher" organization
|
60
|
+
#
|
61
|
+
# @param [Nokogiri::XML::Builder] builder xml builder
|
62
|
+
#
|
63
|
+
def render_authors(builder) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
64
|
+
contributor.each do |c|
|
65
|
+
next if c.entity.is_a?(Organization) && c.entity.name.map(&:content).include?("RFC Publisher")
|
66
|
+
|
67
|
+
builder.author do |xml|
|
68
|
+
xml.parent[:role] = "editor" if c.role.detect { |r| r.type == "editor" }
|
69
|
+
if c.entity.is_a?(Person) then render_person xml, c.entity
|
70
|
+
else render_organization xml, c.entity, c.role
|
71
|
+
end
|
72
|
+
render_address xml, c
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
57
76
|
end
|
58
77
|
end
|
@@ -159,7 +159,7 @@ module RelatonIetf
|
|
159
159
|
end
|
160
160
|
RelatonBib::ContributionInfo.new(entity: entity, role: parse_role(contrib))
|
161
161
|
end
|
162
|
-
|
162
|
+
contribs << create_org_contrib("RFC Publisher", "publisher")
|
163
163
|
contribs << create_org_contrib("RFC Series", "authorizer")
|
164
164
|
end
|
165
165
|
|
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.14.
|
4
|
+
version: 1.14.2
|
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-12-
|
11
|
+
date: 2022-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|