relaton-omg 1.11.1 → 1.11.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_omg/scrapper.rb +1 -1
- data/lib/relaton_omg/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: a9123661919e1997f9de01973768d2917658fffd128101550d4610a09bb4a2ba
|
4
|
+
data.tar.gz: b6c37ef10b2369fe8cf404ea3b1235deda5ffe4425fa4727f156745318b96e48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 349b1a17c8d0edeffea739781d4a883836e83e7cd8f166d27a2778d1b2f2d8dc25cba78e6ecd0e44845ebe9633d454396d2584897d8b62536dbde67994881d71
|
7
|
+
data.tar.gz: a4598a213af30fa78df50993170ae40e15427197d86e54fd61b5a0741b517ea8a7e05f11f73a1c436e1657b2bee998b01885226f32821f81f72e2d1f9a872d81
|
data/lib/relaton_omg/scrapper.rb
CHANGED
@@ -13,7 +13,7 @@ module RelatonOmg
|
|
13
13
|
url += "/#{version}" if version
|
14
14
|
doc = Nokogiri::HTML OpenURI.open_uri(url, open_timeout: 10)
|
15
15
|
OmgBibliographicItem.new(**item(doc, acronym))
|
16
|
-
rescue OpenURI::HTTPError, URI::InvalidURIError => e
|
16
|
+
rescue OpenURI::HTTPError, URI::InvalidURIError, Net::OpenTimeout => e
|
17
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
|
data/lib/relaton_omg/version.rb
CHANGED