etcd-discovery 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/etcd-discovery/host.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 158fa408277adbe364a0d56f256e13e8b1fda697
4
- data.tar.gz: 9ee6b467fea198e8bf1e365c8fc11f1e4d4a898d
3
+ metadata.gz: 8dc8602877ee8e5839d2bf7e884d297b81a6a3a0
4
+ data.tar.gz: 25970b96822152e47e5cd65ae041849c257d9f15
5
5
  SHA512:
6
- metadata.gz: 49dff776f9b3bf8d5eaadd5812b01a906420e3f54d700cb402b01d91c24fca06ae623442bfd2cca9c5af613b2bd4331a8ba1b725902a78016dd387278448c21d
7
- data.tar.gz: bad8339b724e93564424d91702be5e165fcdd45fac0d88210dd7fd531a4fd38ec1af93cd94c7ba0455d02d2f80b496fb103a70cea8b870038260029e19c47302
6
+ metadata.gz: 4037f9383960585589d04fac8510baf937ce9627856bc2bcbf7a8b90b5f3a2f7c250044444bad9a0a9abe7741b91d4c298f941f757928af43b14968e7eeb77b2
7
+ data.tar.gz: 79a9cff17c8d9fa91d7697511a553f05a86debbe3156b51effb21d165ac9164b56341a33868fd3a475d59de4a00546902de5bc5aad4e3cecae0968e0b0cd2e0e
@@ -16,9 +16,9 @@ module EtcdDiscovery
16
16
  if !attributes.has_key? 'name' or !attributes.has_key? 'port'
17
17
  raise InvalidHost, "attributes 'name' and 'port' should be defined"
18
18
  end
19
- @user = params['user'] || ""
20
- @password = params['password'] || ""
21
- @scheme = params['scheme'] || "http"
19
+ attributes['user'] = "" if attributes['user'].nil?
20
+ attributes['password'] = "" if attributes['password'].nil?
21
+ attributes['scheme'] = "http" if attributes['scheme'].nil?
22
22
  end
23
23
 
24
24
  def to_json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etcd-discovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Léo Unbekandt