relaton-iho 1.2.2 → 1.2.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_iho/iho_bibliography.rb +1 -1
- data/lib/relaton_iho/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: 8a71904841f99ee9eab8d284e9834870734dbaa46c2dac616f3fd37a64c1dcfd
|
4
|
+
data.tar.gz: 42ce621872f8df62d1af6faa4eb02237b11f37494b733609b72b80f04e4df54a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3fca909e02416984e999fc122916c143f7a9bcc6fc9d191541983e62b91ddb4212cf28563136b1ba82d53341c8c1465681fe16fd335567fe1ebcd85288c6cc1
|
7
|
+
data.tar.gz: ef010c3146afc90870fe301e641848b0e37fd959b9dcda4c09ff16e556668f4174add4b0412122c450d1d7f553d05efb9a6926bfb5a3cb0e2bdd2d0cf7e0f97b
|
@@ -11,7 +11,7 @@ module RelatonIho
|
|
11
11
|
ref = text.sub(/^IHO\s/, "").downcase
|
12
12
|
uri = URI("#{ENDPOINT}#{ref}.yaml")
|
13
13
|
resp = Net::HTTP.get_response uri
|
14
|
-
|
14
|
+
return unless resp.code == "200"
|
15
15
|
|
16
16
|
hash = HashConverter.hash_to_bib YAML.safe_load(resp.body, [Date])
|
17
17
|
item = IhoBibliographicItem.new hash
|
data/lib/relaton_iho/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|