relaton-bib 1.13.13 → 1.13.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 671f76b734663b36559289a0032f01224de697050deb9d46e151ee5542a8ed86
4
- data.tar.gz: bdf85c3bb18e8e10f88ea50d887af27ed8db08721b2ca4ce070279bbb69ba818
3
+ metadata.gz: d5122f4e42b3a3e786f7d434b131c71ed172cd55491790f121d5dde2a636cecf
4
+ data.tar.gz: 5d61045f7233a6a01a582c563400410851cf79eb4a4aa10235633359d6336a80
5
5
  SHA512:
6
- metadata.gz: 0c3e2181a16ad426ad10fb67cb2e2dbf87ba768866fbc17e7858f6692b1bf412a6b68679bf3803da1c41f9ccc97999d6d731d601a47676826ff4e49ce380aada
7
- data.tar.gz: 3fbbfdad0615432ed971aabb7c2bd61b6cdc3739676aae090453fd2fd3a4674fa773e7a6958b681a65ee853704181f45e5e71746a896cdc95e6f4752a6af29ef
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,
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.13.13".freeze
2
+ VERSION = "1.13.14".freeze
3
3
  end
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.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-05 00:00:00.000000000 Z
11
+ date: 2022-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug