summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/evendoors/room.rb4
-rw-r--r--lib/evendoors/spin.rb4
-rw-r--r--spec/spin_spec.rb12
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)