relaton-ietf 1.14.0 → 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: f634b1d5711babffa718bd79a24ea0c6f63ff7213165e9c21fd5c80937f95d05
4
- data.tar.gz: 5e0e4c0f11353d9fa17f8aaebec14a3ff60b82d030a8dac51d601f1737b07917
3
+ metadata.gz: aeb4af4144610491bf2bea9e39dc33eb0df67f8a64c67302b2a503a07d3e8fc8
4
+ data.tar.gz: 9e3ec1c20c3c987449cc438c88045b445c1a4196a53aee5a0e5b00b6a038aef4
5
5
  SHA512:
6
- metadata.gz: a25a04b4baa551c0c70e1289b2ee26dfdcf2fba6d2cedef99be4269d3f16a80fe0b223cd1f9bd6a174c6ed222fb43b492980b71b847a9b4fa35c7b53590058b4
7
- data.tar.gz: 0525bd899197f8236a14391a1433182e6387e9ea62b4ebb0474ac29015ce162a925c3b3f5aa94789b0a7d23b8af4cc539ddc4a09dc7bc81052cf8ed3a1622906
6
+ metadata.gz: d24d58dae25d535ce8fde08676e244e8435ab9d20fbbd5d9eb6b6f6c620e377686cf3436f49df145d7016a16a3713a6bc65955f1e8d8062ac84953d6cc67796e
7
+ data.tar.gz: 056caff1d268d56dc15049714784edb13ff25339fded08b8b2833ec95d843ccfe82855ebeece50f1f126c30c6bc9461af9d937451f9856bd53547b486434ae21
@@ -53,6 +53,8 @@ module RelatonIetf
53
53
  end
54
54
 
55
55
  def person(author, reference)
56
+ return unless author[:fullname] && author[:fullname] != "None"
57
+
56
58
  full_name_org(author[:fullname]) || super
57
59
  end
58
60
 
@@ -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.0".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.0
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-04 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