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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3887c291726cc5dd7e7132b9f1ae021930a49833fcbfc914bf00de30552b4f7
4
- data.tar.gz: 8507f029ab98cad3f827b0782bc0a9ec9a89feb02ef74f446163033520ed1988
3
+ metadata.gz: b17cfe89413628f312b5d69d1ee7539f55aa7ba4e88c2e0729f1517e1030365b
4
+ data.tar.gz: c83f92105be665ff44fb6b88f4f7d679de8707f07d9b09d2d3a4007de2757169
5
5
  SHA512:
6
- metadata.gz: db1dbb45d53c37a47a6bcfa70fc642453559ed7ae44775b71d0386763f2f91633beadab28eb324bf6c7c08befd25437616e12d8d36577166ef0b4f0901dc261d
7
- data.tar.gz: 6face6ef71a6fa6828f5ba13aa04e6e4294ac63b2c2fb50c29a1a90d2af1162340165be0c09a09c0e478666029ecfe6e32ec54b3aa18c3657a8ee29d1cabd91d
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,:\/]/, "_").upcase
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIana
4
- VERSION = "1.12.1"
4
+ VERSION = "1.12.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.