relaton-iana 1.12.3 → 1.12.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_iana/iana_bibliography.rb +2 -0
- data/lib/relaton_iana/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: 000e88f14c8ea63fb6272d0bd2ec08b1c58421d0742c68361207ab046d2a0de4
|
4
|
+
data.tar.gz: 4c8d35a3eb5fd824a66e1f21654a9cd6b09d23dd638c883f9bb799fea7b7b580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b291d8a9ae54560d55f9c68d2310fddbd76c8e0bb547a728379b7217bcbe06b2401d30869987e97f4173668d4b8c4f7da889fc0796ff7b9e46cd37389580ca69
|
7
|
+
data.tar.gz: feece0d34118c64f01562e387a5f892a9c8ba85e1ef778a8a14ace9f2d7eaf88405e1f8c61108dfc954e8b231d030f58d1e5c8180536ff987c5ac486f25c9bda
|
@@ -11,6 +11,8 @@ module RelatonIana
|
|
11
11
|
file = text.sub(/^IANA\s/, "").gsub(/[\s,:\/]/, "_").downcase
|
12
12
|
url = "#{SOURCE}#{file}.yaml"
|
13
13
|
resp = Net::HTTP.get_response URI(url)
|
14
|
+
return unless resp.code == "200"
|
15
|
+
|
14
16
|
hash = YAML.safe_load resp.body
|
15
17
|
RelatonBib::BibliographicItem.from_hash hash
|
16
18
|
rescue SocketError, Timeout::Error, Errno::EINVAL, Errno::ECONNRESET,
|
data/lib/relaton_iana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|