relaton-bib 1.13.13 → 1.13.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_bib/bibxml_parser.rb +2 -4
- data/lib/relaton_bib/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: d5122f4e42b3a3e786f7d434b131c71ed172cd55491790f121d5dde2a636cecf
|
4
|
+
data.tar.gz: 5d61045f7233a6a01a582c563400410851cf79eb4a4aa10235633359d6336a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47467f8527bc4640ab98dfbb2ee832cd03540fec6828b25ff14f0ee99735e502d5bc8dec3f1151ab7983168d9b97e7cb75609d2d36edf3606499ea9cc46242be
|
7
|
+
data.tar.gz: 858d1792c703a3d0f5cf73ec85d5c026a6a746e54254c4510e0a54bd297c00ae19e7caf30d65f76060cb5f31ab60c2c92e1cc75077caecd2719a8ec9a2d75a67
|
@@ -306,7 +306,7 @@ module RelatonBib
|
|
306
306
|
return conts unless addr
|
307
307
|
|
308
308
|
postal = addr.at("./postal")
|
309
|
-
conts << address(postal) if postal
|
309
|
+
conts << address(postal) if postal&.at("./city") && postal&.at("./country")
|
310
310
|
add_contact(conts, "phone", addr.at("./phone"))
|
311
311
|
add_contact(conts, "email", addr.at("./email"))
|
312
312
|
add_contact(conts, "uri", addr.at("./uri"))
|
@@ -316,9 +316,7 @@ module RelatonBib
|
|
316
316
|
# @param postal [Nokogiri::XML::Element]
|
317
317
|
# @rerurn [RelatonBib::Address]
|
318
318
|
def address(postal) # rubocop:disable Metrics/CyclomaticComplexity
|
319
|
-
street = [
|
320
|
-
(postal.at("./postalLine") || postal.at("./street"))&.text,
|
321
|
-
].compact
|
319
|
+
street = [postal.at("./postalLine | ./street")&.text].compact
|
322
320
|
Address.new(
|
323
321
|
street: street,
|
324
322
|
city: postal.at("./city")&.text,
|
data/lib/relaton_bib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.14
|
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-11-
|
11
|
+
date: 2022-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|