relaton-render 0.3.7 → 0.3.8

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: be0824c3523bcd05d90124be3d8c36b496803edd2322b7128e0e47f759309d25
4
- data.tar.gz: 65f3c1fc7900217391a1f291ae57323823e8e1f8559e8b135b1e4e7563a3f19b
3
+ metadata.gz: e0caceaa89011341d8945f3de32ad2dc24c64d9347393beb3674d19b717c783a
4
+ data.tar.gz: 23420990ccd5fc677b1f3a8c5e80b9bfc833d5e7b0aab2989950921ec510e00c
5
5
  SHA512:
6
- metadata.gz: b283ddeb4b4c0045cb8f4da3356093040408949f39e28da7db6c7f6807f3ed21dac4db520631e8db9b61a4cc98dcee4b83bacc06ca489295f2ee10745657f94a
7
- data.tar.gz: 8394b5b4f72f01819cdff6754a46a281e89685b68f869a1615efc53388f751c43c6b36d3c4ff734fded3a7f9e3ad62b6e282d27c0e203aa88110dde7d2526277
6
+ metadata.gz: 86fbfab3364784b1901ea84d41ff973516809c86e1ad7dc5b9521dc13ca9f032be61b884b1984f063ce09e6ceff6c709e686945cc4c43ce086896f8be4ed2732
7
+ data.tar.gz: 5a2dc0337980186fd624c5c227ed1a46573d478a669ee36487e23da4aeb372764d16325884d29fac3a25788d30d02551ad956c02f693f1efd6b041da43a0b603
@@ -115,7 +115,10 @@ module Relaton
115
115
  x = pick_contributor(doc, "publisher")
116
116
  host and x ||= pick_contributor(host, "publisher")
117
117
  x.nil? and return nil
118
- x.map { |c| c.entity.abbreviation&.content }
118
+ x.map do |c|
119
+ c.entity.abbreviation&.content ||
120
+ c.entity.name.first&.content
121
+ end
119
122
  end
120
123
 
121
124
  def distributor(doc, host)
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "0.3.7".freeze
3
+ VERSION = "0.3.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-render
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
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-05-30 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  requirements: []
239
- rubygems_version: 3.3.14
239
+ rubygems_version: 3.3.7
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Rendering of ISO 690 XML