aide 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 7eef3d5522744f8076dc05b1fab9b6bfd26e6b32
4
- data.tar.gz: c27b21840a2368f2203e2a2458c308491656f085
3
+ metadata.gz: e52cce62dc2b4415eaee74c800c470c0ec5d6f94
4
+ data.tar.gz: 4053d4cb04ba6e3409a14b1d55658945e685b2a5
5
5
  SHA512:
6
- metadata.gz: 84b58d501e9107df905d73be6bc374ff8a0ccd017ae3cbfc6d8df4f64f1b3fc8ea7cc96d9466f037dcfa86e03f982b4928c5530b5b9b786c0bfb478d69a2caf8
7
- data.tar.gz: 1b1507dd493bb07a06de2b3f61c82bc81bea6c1ee7e8ee17350c247ed948efe30cafa61e7808cd1a10d62496c7ae0fb2555b85660f12fac58c932125cd26117f
6
+ metadata.gz: d7204144a00c4c96c371bed31d76622a58fdf99fe49fbf8eb99b99a0936cc33aef9d399fc1f056bbbb7e3f1af60f1d11965c4830ec8f5d3db73c5292f3084420
7
+ data.tar.gz: d5029c009281aa7cf2db7a7ce7e69b48192d8eaeb5cab2b5fbe35be0a601ac01876c7b4e939254814796acd365193f1f4731ae731125e1b6e5a17ad11a316b7e
data/lib/aide/service.rb CHANGED
@@ -9,6 +9,8 @@ module Aide
9
9
  delegate :Address, :ServiceAddress, :ServicePort, to: :service
10
10
 
11
11
  def url
12
+ return if empty?
13
+
12
14
  template = Aide.config.get_service(name: name)[:url]
13
15
  return if template.nil?
14
16
 
@@ -26,6 +28,10 @@ module Aide
26
28
  end
27
29
  end
28
30
 
31
+ def empty?
32
+ service.to_h.empty?
33
+ end
34
+
29
35
  private
30
36
  def service
31
37
  @service ||= Diplomat::Service.get(name)
data/lib/aide/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Aide
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Schlesinger