relaton-iana 1.12.1 → 1.12.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_iana/iana_bibliography.rb +1 -1
- data/lib/relaton_iana/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: b17cfe89413628f312b5d69d1ee7539f55aa7ba4e88c2e0729f1517e1030365b
|
4
|
+
data.tar.gz: c83f92105be665ff44fb6b88f4f7d679de8707f07d9b09d2d3a4007de2757169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 508171828c519bd0193451cf019b653878c02cef79316406f096c7738b8ccb9bee35ff4089823916544286ad3c2fdf9a2ff8ae06afbb2d09b2fa89848cdafa00
|
7
|
+
data.tar.gz: 03a8be0948cbe9f42d33a22fcce1668c9fe6f850e4cae9593663939686c06064593a259d3cf0b6e4303d9f22f00ca71697e5330d1caeaa6c73b203aa13d9d796
|
@@ -8,7 +8,7 @@ module RelatonIana
|
|
8
8
|
# @param text [String]
|
9
9
|
# @return [RelatonBib::BibliographicItem]
|
10
10
|
def search(text) # rubocop:disable Metrics/MethodLength
|
11
|
-
file = text.sub(/^IANA\s/, "").gsub(/[\s,:\/]/, "_").
|
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
14
|
hash = YAML.safe_load resp.body
|
data/lib/relaton_iana/version.rb
CHANGED