relaton-bipm 1.6.0 → 1.6.1

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: 19730867433c276b1ca630f6b6b798327d073f4830397b9de5c06c350b49501c
4
- data.tar.gz: 5e9c3031891be7d9b56ea9d7148821842940d275274c80b479170631b1164310
3
+ metadata.gz: 9d7a5ceebc3dca34d8a3b78bff607bbe9c371228c2daec7573754146115ab954
4
+ data.tar.gz: f3c03e5999e94a7419cc29ec121372bdd84556ceac60baac3d5fb5bc295c9c8d
5
5
  SHA512:
6
- metadata.gz: e2fa67950078fcc727379d0f94ca84852f797ebcfe73eb27c7359641764002e007547f82c75b2de628a35578af5e097842b2ca1f647ad84ef9a018ec3ebe08fd
7
- data.tar.gz: b1bb4caf427c0501d73d3ece30e606e6f44916cc6cd3f5002f235b276447ca1a1f90906476bdeca49892c25d20c0b6844c95240700f073361ffbbabc64c3e1e0
6
+ metadata.gz: 027a41b07adfae1ae37fea8bd0d6c70951f1c6d274e1c343ec3f4dc4506f0b14989cf69ab0f695b08253cb723c05be13e5214a848188781dbe2ca26d2e383494
7
+ data.tar.gz: 74248e6a19fab3d461b9e0eae44b947a63224701a48844ab03f210e480deb4b2403da653a840eeaacc232f0b1f780265c231b5b966e5db5fd9972e729607745c
@@ -10,7 +10,7 @@ module RelatonBipm
10
10
  # @return [RelatonBipm::BipmBibliographicItem]
11
11
  def search(text, _year = nil, _opts = {}) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
12
12
  warn "[relaton-bipm] (\"#{text}\") fetching..."
13
- ref = text.sub(/^BIPM\s/, "").downcase # .sub /^([[:alpha:]]+)(\d+)/, '\1-\2'
13
+ ref = text.sub(/^BIPM\s/, "").downcase.split(" ").join "-"
14
14
  uri = URI("#{ENDPOINT}#{ref}.yaml")
15
15
  resp = Net::HTTP.get_response uri
16
16
  return unless resp.code == "200"
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.6.0".freeze
2
+ VERSION = "1.6.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-13 00:00:00.000000000 Z
11
+ date: 2020-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug