cncflora_commons 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cncflora_commons.rb +3 -3
  2. metadata +1 -1
@@ -186,13 +186,13 @@ def setup!(config)
186
186
  end
187
187
 
188
188
  def onchange(etcd,prefix="")
189
- @last = ""
190
189
  Thread.new do
190
+ last = ""
191
191
  while true do
192
192
  actual = Net::HTTP.get(URI("#{ etcd }/v2/keys/?recursive=true"))
193
- if actual != @last then
193
+ if actual != last then
194
194
  yield etcd2config(etcd,prefix)
195
- @last = actual
195
+ last = actual
196
196
  end
197
197
  sleep 4
198
198
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cncflora_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: