fraggle 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fraggle/client.rb +8 -7
  2. metadata +2 -2
@@ -266,18 +266,19 @@ module Fraggle
266
266
  end
267
267
  else
268
268
  get 0, "/doozer/info/#{e.value}/public-addr" do |a|
269
- if @shun.has_key?(a.value)
270
- if (n = Time.now - @shun[a.value]) > 3
271
- info "pardoning #{a.value} after #{n} secs"
272
- @shun.delete(a.value)
269
+ addr = a.value.to_s
270
+ if @shun.has_key?(addr)
271
+ if (n = Time.now - @shun[addr]) > 3
272
+ info "pardoning #{addr} after #{n} secs"
273
+ @shun.delete(addr)
273
274
  else
274
- info "ignoring shunned addr #{a.value}"
275
+ info "ignoring shunned addr #{addr}"
275
276
  next
276
277
  end
277
278
  end
278
279
  # TODO: Be defensive and check the addr value is valid
279
- @addrs[e.path] = a.value
280
- info("added #{e.path} addr #{a.value}")
280
+ @addrs[e.path] = addr
281
+ info("added #{e.path} addr #{addr}")
281
282
  end
282
283
  end
283
284
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Blake Mizerany