relaton-ietf 1.13.3 → 1.13.4

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: 6fe51d3e7f18e3e3b6c093ee78a24c917cdfd95d88bab7035078c8627a35f0fb
4
- data.tar.gz: 29b83fa09d9a1b403fdeef78ef77297b8911d7ab222a2b4cf47a60ffd5b7a8d6
3
+ metadata.gz: db91bbb481894890a4cbeaa2be2360cdec706ed70032802445be832c563894cb
4
+ data.tar.gz: 46d9f9e438e4dbe4d42f8d12c6236c864677a56940358abf87a314987ac22579
5
5
  SHA512:
6
- metadata.gz: 98e68d59cc3b1c53c6c3ed3a845a05b9f2f2ceca3a60b6f63bb952fc51dcf81cfe8ebe7e62e9fbfaadd30a2268ded0dbf1c947e6c6c3f17e91bf76bd0feb4a70
7
- data.tar.gz: ccf02324637a7da4cb8b960c5ed05363e399dd4da11578f50254dc783662aa82b4da87b4ca031bd8cc9de9c5500bc41741d98e9c63314e29771bd1ef7a62be2c
6
+ metadata.gz: cc5e578aa8f3669bd0a4edea2de81ec2b4413d4c35c569458bf8b30ac4f8d05e777aaf7180d4c2488041cfc8f0963e4730cb7364668e95c0f166bd81f189e84d
7
+ data.tar.gz: 64ff855b716bc70c09c3790bf7bb24fb2d208aee7ef92080d74d72e1a4425183d4ccf0d3ed33530c8a63fe41260cbac589618e82b3f0c12280dfcd4715e2f4fb
@@ -43,7 +43,8 @@ module RelatonIetf
43
43
  type = super
44
44
  case type
45
45
  when "BCP", "FYI", "STD", "RFC" then "RFC"
46
- when "Internet-Draft" then type
46
+ # when "Internet-Draft" then type
47
+ when "I-D" then "Internet-Draft"
47
48
  else "IETF"
48
49
  end
49
50
  end
@@ -92,13 +93,5 @@ module RelatonIetf
92
93
  inits = author[:initials] || regex.match(author[:fullname])&.to_s&.strip
93
94
  [surname, inits]
94
95
  end
95
-
96
- def parse_surname(fullname)
97
- fullname.sub(/(?:[A-Z]{1,2}(?:\.[\s-]?|\s))+/, "").strip
98
- end
99
-
100
- def parse_initials(fullname)
101
- fullname.match(/(?:[A-Z]{1,2}(?:\.[\s-]?|\s))+/).to_s.strip
102
- end
103
96
  end
104
97
  end
@@ -157,14 +157,9 @@ module RelatonIetf
157
157
  entity = RelatonBib::Organization.new(abbrev: n, name: "International Organization for Standardization")
158
158
  when "International Organization for Standardization"
159
159
  entity = RelatonBib::Organization.new(abbrev: "ISO", name: n)
160
- # when "IAB", "IESG", "Internet Architecture Board", "IAB and IESG",
161
- # "IAB Advisory Committee", "Internet Engineering Steering Group"
162
160
  when /#{RelatonBib::BibXMLParser::FULLNAMEORG.join("|")}/
163
161
  abbr = n.upcase == n ? n : n.split.reduce([]) { |a, w| w == w.upcase ? break : a << w[0] }&.join
164
162
  entity = RelatonBib::Organization.new(abbrev: abbr, name: n)
165
- desc = "BibXML author"
166
- # when "IESG"
167
- # entity = RelatonBib::Organization.new(abbrev: n, name: "Internet Engineering Steering Group")
168
163
  when "Federal Networking Council", "Internet Activities Board",
169
164
  "Defense Advanced Research Projects Agency", "National Science Foundation",
170
165
  "National Research Council", "National Bureau of Standards"
@@ -178,14 +173,15 @@ module RelatonIetf
178
173
  "End-to-End Services Task Force", "Network Technical Advisory Group", "Bolt Beranek",
179
174
  "Newman Laboratories", "Gateway Algorithms and Data Structures Task Force",
180
175
  "Network Information Center. Stanford Research Institute", "RFC Editor",
181
- "Information Sciences Institute University of Southern California"
176
+ "Information Sciences Institute University of Southern California",
177
+ "RARE WG-MSG Task Force 88", "KOI8-U Working Group", "The Internet Society"
182
178
  entity = RelatonBib::Organization.new(name: n)
183
179
  when "Internet Assigned Numbers Authority (IANA)"
184
- entity = RelatonBib::Organization.new(abbrev: "IANA", name: "Internet Assigned Numbers Authority")
180
+ entity = RelatonBib::Organization.new(abbrev: "IANA", name: "Internet Assigned Numbers Authority (IANA)")
185
181
  when "ESnet Site Coordinating Comittee (ESCC)"
186
- entity = RelatonBib::Organization.new(abbrev: "ESCC", name: "ESnet Site Coordinating Comittee")
182
+ entity = RelatonBib::Organization.new(abbrev: "ESCC", name: "ESnet Site Coordinating Comittee (ESCC)")
187
183
  when "Energy Sciences Network (ESnet)"
188
- entity = RelatonBib::Organization.new(abbrev: "ESnet", name: "Energy Sciences Network")
184
+ entity = RelatonBib::Organization.new(abbrev: "ESnet", name: "Energy Sciences Network (ESnet)")
189
185
  when "International Telegraph and Telephone Consultative Committee of the International Telecommunication Union"
190
186
  entity = RelatonBib::Organization.new(abbrev: "CCITT", name: n)
191
187
  else
@@ -197,7 +193,7 @@ module RelatonIetf
197
193
  )
198
194
  entity = RelatonBib::Person.new(name: fname)
199
195
  end
200
- RelatonBib::ContributionInfo.new(entity: entity, role: parse_role(contrib, desc))
196
+ RelatonBib::ContributionInfo.new(entity: entity, role: parse_role(contrib))
201
197
  end
202
198
  end
203
199
 
@@ -205,14 +201,12 @@ module RelatonIetf
205
201
  # Parse contributors role
206
202
  #
207
203
  # @param [Nokogiri::XML::Node] contrib contributor
208
- # @param [String, nil] desc contributor description
209
204
  #
210
205
  # @return [Array<Hash>] contributor's role
211
206
  #
212
- def parse_role(contrib, desc = nil)
207
+ def parse_role(contrib)
213
208
  type = contrib.at("./xmlns:title")&.text&.downcase || "author"
214
209
  role = { type: type }
215
- role[:description] = [desc] if desc
216
210
  [role]
217
211
  end
218
212
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.13.3".freeze
2
+ VERSION = "1.13.4".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.13.3
4
+ version: 1.13.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-10-17 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml