relaton-iso 1.13.2 → 1.13.3

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: d999763ca36d83d0332129d704f5f8989c1c606c2ae0037a8d07ee466a3e046e
4
- data.tar.gz: 5aa8659bd16f7463f3a4d49f32a748b77c6cdded83dbac7feab12fca2d06c5a5
3
+ metadata.gz: 36560c5f9f49d1ff9855a051c71b562bfddd82fc1c862cf08b35b1129ec69720
4
+ data.tar.gz: 4900a496e3b112b40dda6ab2acc4fe40db02084b01f42545de104a9c12dff922
5
5
  SHA512:
6
- metadata.gz: d5ac24c248308871cfe2cc98f28e09401f1ee6c4eee6a399605a3d25c2cc19baa4cf4fa52b76c2b68ca84d8909355d6cc09a118d6a63dbb4e108b473c506f3a2
7
- data.tar.gz: ece1fa36fe8dd5a8fd9dd2f826ee7c38114ec828f6d1151bd89ceab197623279f8940e33942eb664b6dbc4d44e8aca2d12aa377eb5e5ddcab58ed6d970d0db65
6
+ metadata.gz: 2bcea09926b89d5c6d3017376b75ee79916d9e5ace197592dc6d42cd77d715d4ad67896165c5a17a0b31e7d8ab45c9219f6713aea03f6c08d9dc622792bff074
7
+ data.tar.gz: 883976ba644b4ffae07292c4ad754fda13d195a3b34a6c03ffdc1382f44184bd0b0fd50ad270ae97ad69cf7d4d5c47e4f3d18098ed5bb6fcaa292deeb5c00e17
@@ -92,13 +92,13 @@ module RelatonIso
92
92
 
93
93
  # filter by year
94
94
  hits = hit_collection.select do |hit|
95
- if hit.pubid.year == year
95
+ if hit.pubid.year.to_s == year.to_s
96
96
  true
97
97
  elsif hit.pubid.year.nil? && hit.hit[:year].to_s == year
98
98
  hit.pubid.year = year
99
99
  true
100
100
  else
101
- missed_year = hit.pubid.year || hit.hit[:year].to_s
101
+ missed_year = (hit.pubid.year || hit.hit[:year]).to_s
102
102
  if missed_year && !missed_year.empty? && !missed_years.include?(missed_year)
103
103
  missed_years << missed_year
104
104
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIso
4
- VERSION = "1.13.2"
4
+ VERSION = "1.13.3"
5
5
  end
data/relaton_iso.gemspec CHANGED
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "webmock"
40
40
 
41
41
  spec.add_dependency "algolia"
42
- spec.add_dependency "pubid-iso", "~> 0.1.8"
42
+ spec.add_dependency "pubid-iso", "0.1.10"
43
43
  spec.add_dependency "relaton-iso-bib", "~> 1.13.0"
44
44
  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: 1.13.2
4
+ version: 1.13.3
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-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -182,16 +182,16 @@ dependencies:
182
182
  name: pubid-iso
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - '='
186
186
  - !ruby/object:Gem::Version
187
- version: 0.1.8
187
+ version: 0.1.10
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - '='
193
193
  - !ruby/object:Gem::Version
194
- version: 0.1.8
194
+ version: 0.1.10
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: relaton-iso-bib
197
197
  requirement: !ruby/object:Gem::Requirement