instructure_registrar 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: a33560eb329209c813a1b9774d0296e7f05b9fcc
4
- data.tar.gz: b340f952c4ea4b0126d824e740445301c811e79a
3
+ metadata.gz: d8d966a02f606b48b0c108707709a8dc983e4e7c
4
+ data.tar.gz: 4484c684c7f10b26a8dc764f57c422efd77bbb14
5
5
  SHA512:
6
- metadata.gz: 07943ccc3417ecb53822afad883c21d123468374122a6b552a5cf3e7a6a407b2e8b8a673c68a7cc289deccc1fc216bce4a0276088ee062b9331f11507b5d8461
7
- data.tar.gz: afdf84595760a2ac9824f66df168896b32f764f6c4db02f130f0b86bf664b3e43ed702d793c86933bfb93087c9798d4a773dd85b0732ed9168da75e1da863e57
6
+ metadata.gz: 571b83a9c91bcaf49c02e9c9a2f445788f418a59baccc2c0167a973f5592ec4cd965e8c00dea550b569e7b5ea3215d56c72ed8cd7f189d692d62a80fcac5e5b8
7
+ data.tar.gz: 0ac1ca86547d61a857546ccd031228f703879bda0dc0042349ea2f33da6d1674830ffdfd90b3c48347a27316d876eb14dcadd3f5e0284660314ba973ab971a39
@@ -4,7 +4,11 @@ module InstructureRegistrar
4
4
  require 'etcd'
5
5
 
6
6
  def lookup(service_name)
7
- client.get("/#{service_name}").value || "unknown"
7
+ begin
8
+ client.get("/#{service_name}").value
9
+ rescue Etcd::KeyNotFound
10
+ "unknown"
11
+ end
8
12
  end
9
13
 
10
14
  def register
@@ -1,3 +1,3 @@
1
1
  module InstructureRegistrar
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instructure_registrar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CoralineAda