relaton-iho 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_iho/iho_bibliography.rb +1 -1
- data/lib/relaton_iho/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cedc24e1c28d603fca983d0583096abcb2494ae9b99ea82a303c0511bcf92327
|
4
|
+
data.tar.gz: e04aaa92de968556c6a31476b769030e7f7b1754ff4558647b9c6022589c8e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6256279250822eca30385189ec19ed0a931133d5a2e30b53b251dc0f01a29e551e16f96c05cdaae1bbb2677bd7669ec731ea45586ff3647bc5101e3856b806c8
|
7
|
+
data.tar.gz: 2cffb976d14dc3490cd1f9fb6dba613142296d45f0b9455e42cc5612c095c2d98864e83a31431d9b4cef4e47b1a031cc2aa1b14e77b2447747e8ed78c249d1c7
|
@@ -17,7 +17,7 @@ module RelatonIho
|
|
17
17
|
warn "[relaton-iho] (\"#{text}\") fetching..."
|
18
18
|
ref = text.sub(/^IHO\s/, "").sub(/^([[:alpha:]]+)(\d+)/, '\1-\2')
|
19
19
|
index = Relaton::Index.find_or_create :IHO, url: "#{ENDPOINT}index.zip"
|
20
|
-
row = index.search(ref).
|
20
|
+
row = index.search(ref).max_by { |r| r[:id] }
|
21
21
|
return unless row
|
22
22
|
|
23
23
|
uri = URI("#{ENDPOINT}#{row[:file]}")
|
data/lib/relaton_iho/version.rb
CHANGED