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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0ba1d2bd6ef268191965baa72e038c60c672253b27f3c3f762bf98d082c409a
4
- data.tar.gz: ea2cfda5f612cda75fc138776368d53f505e93f3952bb784d40afa7c811296a2
3
+ metadata.gz: e6fed6cd142a3168d65cfd06e4e1ff063dfd4e7bb2437ce7c1c332631307d369
4
+ data.tar.gz: 5af1d834979a4f2ae447865fa898da361b01019b37e113e087ce18402f9ba71b
5
5
  SHA512:
6
- metadata.gz: 40bc7dd3ee851346775975bf2c4a563b8f6a0cdc6d72fd287c9f8c62c3c27a8314e08180a2a650087ba3db0820223eb9d42a5ae39dbf31c16467b9dc6c6d54b5
7
- data.tar.gz: 0c34cabd945b85d56741a83a73ef0db6334917f208ea0673566e41615b0dfb9a6a3efcf727470e80aa5efcac2210af8fd8fad6725fad849b5d7027c3cf10bb49
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(completename: name, initial: initials(int), surname: surname)
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::LocalizedString>]
218
+ # @return [Array<RelatonBib::Forename>]
217
219
  #
218
- def initials(int)
220
+ def forename(int)
219
221
  return [] unless int
220
222
 
221
- int.split(/(?<=\.)-?\s?|\s/).map { |i| RelatonBib::LocalizedString.new i, "en", "Latn" }
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
  #
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.13.0".freeze
2
+ VERSION = "1.13.1".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.0
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-21 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml