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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4e282983c73210f9ca6bcd6ff4b8fee3eb8cd77063d69d9233e726b6ecc56ff
4
- data.tar.gz: 0c974753123af381e55c5379fa0539c180fe713f864fdf40e5ddb40ce3186dcc
3
+ metadata.gz: aeb4af4144610491bf2bea9e39dc33eb0df67f8a64c67302b2a503a07d3e8fc8
4
+ data.tar.gz: 9e3ec1c20c3c987449cc438c88045b445c1a4196a53aee5a0e5b00b6a038aef4
5
5
  SHA512:
6
- metadata.gz: dc868f1be3c80ca3d0db43fff29bfb743337d76a286934a2ab0fc8a0e4281941e94d94b92d5bd6c15bdfa3fcc9a518a86556fd4e5246908d0a96fe8ef87cf33e
7
- data.tar.gz: be4ca8fb1ee508e50f4c4dc2b123cbe10d8e8724aaf39530faf2a30f3ab263cd171362c7df8e2582083f5ee86d286d18cd93c18571060ee508bf09cfdf2413db
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
- # contribs << create_org_contrib("RFC Publisher", "publisher")
162
+ contribs << create_org_contrib("RFC Publisher", "publisher")
163
163
  contribs << create_org_contrib("RFC Series", "authorizer")
164
164
  end
165
165
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.14.1".freeze
2
+ VERSION = "1.14.2".freeze
3
3
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2022-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml