relaton-omg 1.7.2 → 1.7.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: 4c7e08c4add6f0f5150556bf793d3d961a331c80503b8f41a7726121b0fea786
4
- data.tar.gz: 4e066aec7d3c4080aeccf1ee1135149111aa278ee52f93f57c7d25ef4de18601
3
+ metadata.gz: a3b0a5ffff840bd561fa694ef65b560833675404aebbbbf5b1fe2aede4d78f9c
4
+ data.tar.gz: 0010cb2fca5d9d2652d8a12336e385dcc4cfff8b228af356c95eef531ab6ce99
5
5
  SHA512:
6
- metadata.gz: 411fd23fcc561c99b2dfecbc9856beb998ec93aeb1bb6b44f6126cd91badf2c327e12280e65c61cfb4ece06d26c26bef225fcdbc6fe27249ef07ac92d7648de3
7
- data.tar.gz: 7f6b7c64a593c1e736dd8593a2dae66a932ec248dba59bd8a6cc6a5c3de8bbaed49c2dea75601ba98722a7c90094944a25040ec300c28fb1ebc941ae3a77261b
6
+ metadata.gz: 0bff9107061019e111fd8e9fb20cea4b172c01977db25acf46a585c20bfcd67b166df4ffe0205b5889e7b45a9c639e2e58efa326a79e89c8a8a7bca2f9309949
7
+ data.tar.gz: e8b9e613d354cc0fca62e48d655f9c8dc81bd2e409fbdfea79f430c0433b416fb967162b6fb9d13dbd2211b25ba46e8910d2637ae0216dfc27293adff51b8c88
@@ -13,8 +13,8 @@ module RelatonOmg
13
13
  url += "/" + version if version
14
14
  doc = Nokogiri::HTML OpenURI.open_uri(URI(url))
15
15
  OmgBibliographicItem.new **item(doc, acronym)
16
- rescue OpenURI::HTTPError => e
17
- if e.io.status[0] == "404"
16
+ rescue OpenURI::HTTPError, URI::InvalidURIError => e
17
+ if e.is_a?(URI::InvalidURIError) || e.io.status[0] == "404"
18
18
  warn %{[relaton-omg] no document found for "#{ref}" reference.}
19
19
  return
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonOmg
2
- VERSION = "1.7.2".freeze
2
+ VERSION = "1.7.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-omg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.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: 2021-04-21 00:00:00.000000000 Z
11
+ date: 2021-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug