relaton-ietf 1.13.0 → 1.13.1
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/rfc_entry.rb +8 -4
- 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: e6fed6cd142a3168d65cfd06e4e1ff063dfd4e7bb2437ce7c1c332631307d369
|
4
|
+
data.tar.gz: 5af1d834979a4f2ae447865fa898da361b01019b37e113e087ce18402f9ba71b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4051003063ece4084190e58e16b5b5e75cd9d8b38790bbf6d3844e1d57e7a5e6df2bfeba1d346cb777c442ce310dc10f296952099f239652c6d070e845992aef
|
7
|
+
data.tar.gz: 5e4fb7efd0c16218fc675c0a3b1bca4299606fa992608dc3a165108679abf391d24d5d7cdacd38d31752aa96019408ac7e9b4c39ec22244fe1914d4f3c4f50b1
|
@@ -189,7 +189,9 @@ module RelatonIetf
|
|
189
189
|
/^(?:(?<int>(?:\p{Lu}+(?:-\w|\(\w\))?\.{0,2}[-\s]?)+)\s)?(?<snm>[[:alnum:]\s'-.]+)$/ =~ n
|
190
190
|
surname = RelatonBib::LocalizedString.new(snm, "en", "Latn")
|
191
191
|
name = RelatonBib::LocalizedString.new(n, "en", "Latn")
|
192
|
-
fname = RelatonBib::FullName.new(
|
192
|
+
fname = RelatonBib::FullName.new(
|
193
|
+
completename: name, initials: int, forename: forename(int), surname: surname,
|
194
|
+
)
|
193
195
|
entity = RelatonBib::Person.new(name: fname)
|
194
196
|
end
|
195
197
|
RelatonBib::ContributionInfo.new(entity: entity, role: parse_role(contrib))
|
@@ -213,12 +215,14 @@ module RelatonIetf
|
|
213
215
|
#
|
214
216
|
# @param [String] int
|
215
217
|
#
|
216
|
-
# @return [Array<RelatonBib::
|
218
|
+
# @return [Array<RelatonBib::Forename>]
|
217
219
|
#
|
218
|
-
def
|
220
|
+
def forename(int)
|
219
221
|
return [] unless int
|
220
222
|
|
221
|
-
int.split(
|
223
|
+
int.split(/\.-?\s?|\s/).map do |i|
|
224
|
+
RelatonBib::Forename.new initial: i, language: "en", script: "Latn"
|
225
|
+
end
|
222
226
|
end
|
223
227
|
|
224
228
|
#
|
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.1
|
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-08-
|
11
|
+
date: 2022-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|