relaton-bib 0.3.0 → 0.3.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
- SHA1:
3
- metadata.gz: ae823658c869e7c4d00aef9221fdf350c392983d
4
- data.tar.gz: 825dc45f0be774a8ab5223cee4228756f0980d43
2
+ SHA256:
3
+ metadata.gz: 6f04fbf9d97bcbdf157f86fcaa56df0898826220df4458dfe19021f45fbf2f49
4
+ data.tar.gz: 3f9430241262b2ce35db7bba082f3ff0657b4ac5144deb6a2885a507013176c0
5
5
  SHA512:
6
- metadata.gz: 24d8041638369f3e86da7e3dbb28f6aae1f399377f301a69d26bfadf0d3099c428517f6910e8563efa470aa5756a29ca4952fe613a4956d5097531930890c9c9
7
- data.tar.gz: 2ca098df8c11661cc0c7a34830528b667e47da674c9afa0a14e0f1e55737adace2533a5a99be67630be7e3269c28bc5c35a789a71c0d3bd9ba9722a7047ec32d
6
+ metadata.gz: b8b3cae293ee147603f2ac2886e29838697b96a95faa9c1ca2e1169d631e165727067f33deedf2dd457c7c01080fe86f373a0af211172ed137a81bcb49e4df03
7
+ data.tar.gz: 4f0acb9683c481e7196551edc1336e1fb1d0caf2e5638447fc460e31a1fde2232f06f4374b6a0dcaf0c5cacf5adf59d07d30299d3d7d0d40705807c36716a2f9
@@ -8,9 +8,11 @@ module RelatonBib
8
8
  return [] unless c[:affiliation]
9
9
  array(c[:affiliation]).map do |a|
10
10
  a[:description] = array(a[:description])&.map do |d|
11
- FormattedString.new(d.nil? ? { content: nil } :
11
+ FormattedString.new(
12
+ d.is_a?(Hash) ?
12
13
  { content: d[:content], language: d[:language],
13
- script: d[:language], format: d[:format] })
14
+ script: d[:script], format: d[:format] } :
15
+ { content: d })
14
16
  end
15
17
  Affilation.new(
16
18
  Organization.new(org_hash_to_bib(a[:organization])), a[:description])
@@ -41,7 +41,7 @@ module RelatonBib
41
41
 
42
42
  def array(a)
43
43
  return [] unless a
44
- return [a] unless a.is_a?(Array)
44
+ return [].push(a) unless a.is_a?(Array)
45
45
  a
46
46
  end
47
47
 
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".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: 0.3.0
4
+ version: 0.3.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: 2019-07-24 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.6.12
222
+ rubygems_version: 2.7.6
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: 'RelatonBib: Ruby XMLDOC impementation.'