Permalink
Browse files

switching defaults to local

  • Loading branch information...
1 parent 1b33a84 commit a324fc5ff9e03510f4e45f2693e42293611ee327 @tenderlove committed Sep 23, 2008
Showing with 7 additions and 9 deletions.
  1. +4 −4 .gitignore
  2. +0 −2 example/local.rb
  3. +1 −1 lib/quail/exchange.rb
  4. +1 −1 lib/quail/queue.rb
  5. +1 −1 test/quail/test_handle.rb
View
8 .gitignore
@@ -3,9 +3,9 @@
*.o
*.bundle
*.log
-vendor/zmq-0.3/
-vendor/bin/
-vendor/include/
-vendor/lib/
+vendor/zmq-0.3
+vendor/bin
+vendor/include
+vendor/lib
ext/quail/Makefile
tags
View
2 example/local.rb
@@ -3,10 +3,8 @@
msg = "hello world"
Quail::Handle.start('localhost') do |handle|
exchange = Quail::Exchange.new(handle, 'EL', Quail::LOCAL)
- queue = Quail::Queue.new(handle, 'QL', Quail::LOCAL)
handle.bind("EL", "QG")
- handle.bind("EG", "QL")
t = Time.now.to_f
1_000_000.times {
View
2 lib/quail/exchange.rb
@@ -4,7 +4,7 @@ class Exchange
def initialize handle,
exchange_name = 'E',
- scope = Quail::GLOBAL,
+ scope = Quail::LOCAL,
address = '127.0.0.1:5555'
raise unless handle.started?
View
2 lib/quail/queue.rb
@@ -4,7 +4,7 @@ class Queue
def initialize handle,
name = 'Q',
- scope = Quail::GLOBAL,
+ scope = Quail::LOCAL,
address = '127.0.0.1:5556'
raise unless handle.started?
View
2 test/quail/test_handle.rb
@@ -12,7 +12,7 @@ def test_bind
Quail::Handle.start('localhost') do |handle|
exchange = Quail::Exchange.new(handle)
queue = Quail::Queue.new(handle)
- handle.bind(exchange, queue)
+ handle.bind(exchange.name, queue.name)
end
end
end

0 comments on commit a324fc5

Please sign in to comment.