relaton-iso 0.12.0 → 0.12.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: 2334ffda7e49dc483b780f97c78e6e8100fdfbf25f7939cd7f2c4a453c5703c6
4
- data.tar.gz: 0c12c9fd413d9f5e6d45b2ea8ac0eaa475b8c3fb9e16dd7e7e2efb7a4b4a7889
3
+ metadata.gz: 76afab1e7aec77da82dfd35844eb94b49a1e12fb0eced2eb0be0d2390bb2fd5c
4
+ data.tar.gz: d84310d0876f06620dc64b32f24192ab894f481e0e52811fe6b867755bd08358
5
5
  SHA512:
6
- metadata.gz: 63da30578ae34e3ead33586a4e1ad2c8e5821202b5f1de2e201f6f9f80a69288bef0cf148d665a6f5afb3e29cbce26bcff7ab26ccd79a25bf882f278d70b3391
7
- data.tar.gz: a6289b3d1bbd8c355b1d4f73ba0f80d14988db803cb6af96296197103e5c7928fb8c40f99defbef6502cf5385709e391d683d79a4ceffa32f18dc2cf6a3bf51f
6
+ metadata.gz: 440055c8a86e3c0cafbdf1f466dfbe1472e102b97837d30b29523648c0825a9a2fdee04fb93473c7cee0f6c531826c1b5abbdbe0a3567c9b6664a9d319b91cd2
7
+ data.tar.gz: 0433f3b9c4a4c98dca0cc7ecec5158415d73acc6299bc176550c39049df413a2731ec2d74408e457e819afca575b2dc7a45ebb89f4dc43255155bda1202cdd0c
@@ -32,7 +32,7 @@ module RelatonIso
32
32
  # @param lang [String, NilClass]
33
33
  # @return [RelatonIsoBib::IsoBibliographicItem]
34
34
  def to_all_parts(lang = nil)
35
- parts = @array.select { |h| !h.hit["docPart"].empty? }
35
+ parts = @array.reject { |h| h.hit["docPart"]&.empty? }
36
36
  hit = parts.min_by { |h| h.hit["docPart"].to_i }
37
37
  return @array.first.fetch lang unless hit
38
38
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIso
4
- VERSION = "0.12.0"
4
+ VERSION = "0.12.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.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: 2020-03-30 00:00:00.000000000 Z
11
+ date: 2020-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug