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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 940290660744c08549c90e2f28aa593c809ac0621d312a89047c249630b92da3
4
- data.tar.gz: e22ece93142456284a0419b0ecb9d88fc8b3da64b449a2a8b4b535b407bddb1c
3
+ metadata.gz: cedc24e1c28d603fca983d0583096abcb2494ae9b99ea82a303c0511bcf92327
4
+ data.tar.gz: e04aaa92de968556c6a31476b769030e7f7b1754ff4558647b9c6022589c8e5a
5
5
  SHA512:
6
- metadata.gz: 5be56d9a8af28df3f02489c954c40005beb54424d1410250f23d989ae9b6ef9e64ee8acd33a60e898416407bf9c52f4be108bfa0e9c8a18c04ec5e5360097a34
7
- data.tar.gz: 4940eec0bb2191fcd3de1300b4af177c9d877f1b907897cc106c6d8c83af3d6aa04cdb3cfc22118b21dc2f041695866d96fc483016d8154a18f5207040c2af4a
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).first
20
+ row = index.search(ref).max_by { |r| r[:id] }
21
21
  return unless row
22
22
 
23
23
  uri = URI("#{ENDPOINT}#{row[:file]}")
@@ -1,3 +1,3 @@
1
1
  module RelatonIho
2
- VERSION = "1.14.1".freeze
2
+ VERSION = "1.14.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.