summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/spin.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-11 11:47:45 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-12 09:38:01 +0200
commitd2855043c53bd4f84a4ca425947948fd31a93432 (patch)
tree4db9212544efe93fbd1ebadcd642af5607eb3879 /lib/evendoors/spin.rb
parent1985e84383540100d797579f88c6d1ce072e1463 (diff)
downloadedoors-ruby-d2855043c53bd4f84a4ca425947948fd31a93432.zip
edoors-ruby-d2855043c53bd4f84a4ca425947948fd31a93432.tar.gz
Particle relies on spin field to resolve src and dst not parent
Diffstat (limited to 'lib/evendoors/spin.rb')
-rw-r--r--lib/evendoors/spin.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/evendoors/spin.rb b/lib/evendoors/spin.rb
index 69d204d..7fb4218 100644
--- a/lib/evendoors/spin.rb
+++ b/lib/evendoors/spin.rb
@@ -35,15 +35,14 @@ module EvenDoors
@debug_routing = o[:debug_routing]||o['debug_routing']||false
#
if not o.empty?
- p ={'parent'=>self}
o['spots'].each do |name,spot|
- EvenDoors::Room.json_create(spot.merge!(p))
+ EvenDoors::Room.json_create(spot.merge!('parent'=>self))
end if o['spots']
o['app_fifo'].each do |particle|
- @app_fifo << EvenDoors::Particle.json_create(particle.merge!(p))
+ @app_fifo << EvenDoors::Particle.json_create(particle.merge!('spin'=>self))
end if o['app_fifo']
o['sys_fifo'].each do |particle|
- @sys_fifo << EvenDoors::Particle.json_create(particle.merge!(p))
+ @sys_fifo << EvenDoors::Particle.json_create(particle.merge!('spin'=>self))
end if o['sys_fifo']
end
end