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 +4 -4
- data/lib/relaton_omg/scrapper.rb +2 -2
- data/lib/relaton_omg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3b0a5ffff840bd561fa694ef65b560833675404aebbbbf5b1fe2aede4d78f9c
|
4
|
+
data.tar.gz: 0010cb2fca5d9d2652d8a12336e385dcc4cfff8b228af356c95eef531ab6ce99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bff9107061019e111fd8e9fb20cea4b172c01977db25acf46a585c20bfcd67b166df4ffe0205b5889e7b45a9c639e2e58efa326a79e89c8a8a7bca2f9309949
|
7
|
+
data.tar.gz: e8b9e613d354cc0fca62e48d655f9c8dc81bd2e409fbdfea79f430c0433b416fb967162b6fb9d13dbd2211b25ba46e8910d2637ae0216dfc27293adff51b8c88
|
data/lib/relaton_omg/scrapper.rb
CHANGED
@@ -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
|
data/lib/relaton_omg/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|