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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f83f06a1729e6bdd28bd55a53e38c3569af02f21688df68237a2c8e57f8ea40
4
- data.tar.gz: 461d3ec1a68a95a78e91448f9975d6973deeb0260e1a1590d1299ab04f1d3d01
3
+ metadata.gz: 000e88f14c8ea63fb6272d0bd2ec08b1c58421d0742c68361207ab046d2a0de4
4
+ data.tar.gz: 4c8d35a3eb5fd824a66e1f21654a9cd6b09d23dd638c883f9bb799fea7b7b580
5
5
  SHA512:
6
- metadata.gz: 5fe87f10e54798f20bb6a51a28911df61170b1593a4b3b915c964586cc74345bffae6c3710762e5c1b8158be520de5b82dcb5ec5b6627f9cd260c54aba00cf9c
7
- data.tar.gz: '08857ab11716d87e77c96909370861a03bf6139aebdc88fa77f8ec4712e62b5a241d87fd53ada0265a692e4d76c67f75947ef950a84c03e7eddfe4bc177e973c'
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIana
4
- VERSION = "1.12.3"
4
+ VERSION = "1.12.4"
5
5
  end
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.3
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-07-11 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml