Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switching defaults to local

  • Loading branch information...
commit a324fc5ff9e03510f4e45f2693e42293611ee327 1 parent 1b33a84
@tenderlove authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.