diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-13 00:43:08 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-13 00:43:08 +0200 |
commit | ba108de1be22fbcbf5d34bab4aec337120bba60d (patch) | |
tree | 4d02ce96ab98b5d2583e5819eaf4d0548da1a4a0 | |
parent | 820be8a21f9d5d80f33903783a8067d5cf49904c (diff) | |
download | edoors-ruby-ba108de1be22fbcbf5d34bab4aec337120bba60d.zip edoors-ruby-ba108de1be22fbcbf5d34bab4aec337120bba60d.tar.gz |
Spin: send_ -> post_
-rw-r--r-- | lib/evendoors/room.rb | 4 | ||||
-rw-r--r-- | lib/evendoors/spin.rb | 4 | ||||
-rw-r--r-- | spec/spin_spec.rb | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb index aa1e7d1..6497f02 100644 --- a/lib/evendoors/room.rb +++ b/lib/evendoors/room.rb @@ -148,7 +148,7 @@ module EvenDoors p.error! EvenDoors::ERROR_ROUTE_NDNL end puts " -> #{p.dst.path}#{EvenDoors::ACT_SEP}#{p.action}" if @spin.debug_routing - @spin.send_p p + @spin.post_p p end # def send_sys_p p @@ -164,7 +164,7 @@ module EvenDoors p.error! EvenDoors::ERROR_ROUTE_SND end puts " -> #{p.dst.path}#{EvenDoors::ACT_SEP}#{p.action}" if @spin.debug_routing - @spin.send_sys_p p + @spin.post_sys_p p end # def process_sys_p p diff --git a/lib/evendoors/spin.rb b/lib/evendoors/spin.rb index da340d3..88af3bc 100644 --- a/lib/evendoors/spin.rb +++ b/lib/evendoors/spin.rb @@ -93,11 +93,11 @@ module EvenDoors p end # - def send_p p + def post_p p @app_fifo << p end # - def send_sys_p p + def post_sys_p p @sys_fifo << p end # diff --git a/spec/spin_spec.rb b/spec/spin_spec.rb index 3797bc5..f8cdc60 100644 --- a/spec/spin_spec.rb +++ b/spec/spin_spec.rb @@ -57,15 +57,15 @@ describe EvenDoors::Spin do (p2==p1).should be_false end # - it "send_p send_sys_p spin!" do + it "post_p post_sys_p spin!" do spin = EvenDoors::Spin.new 'dom0' f = Fake.new 'fake', spin p0 = spin.require_p EvenDoors::Particle p0.dst_routed! f p1 = spin.require_p EvenDoors::Particle p1.dst_routed! f - spin.send_p p0 - spin.send_sys_p p1 + spin.post_p p0 + spin.post_sys_p p1 spin.run = true spin.spin! f.p.should be p0 @@ -95,9 +95,9 @@ describe EvenDoors::Spin do p0 = spin.require_p EvenDoors::Particle p1 = spin.require_p EvenDoors::Particle p2 = spin.require_p EvenDoors::Particle - spin.send_p p0 - spin.send_p p1 - spin.send_sys_p p2 + spin.post_p p0 + spin.post_p p1 + spin.post_sys_p p2 json = JSON.generate spin dom0 = EvenDoors::Spin.json_create( JSON.load( json ) ) json.should eql JSON.generate(dom0) |