rabbithutch 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/worker.rb +3 -2
- data/rabbithutch.gemspec +1 -1
- metadata +1 -1
data/lib/worker.rb
CHANGED
@@ -16,10 +16,11 @@ module RabbitHutch
|
|
16
16
|
@queue_name = config.application['queuename']
|
17
17
|
end
|
18
18
|
|
19
|
+
# begin listening for all topics in publish.#
|
19
20
|
def start
|
20
21
|
@exchange = @channel.topic(@exchange_name, :durable => true, :auto_delete => false, :internal => true)
|
21
|
-
@queue = @channel.queue(@queue_name, :durable => false, :auto_delete =>
|
22
|
-
@queue.bind(@exchange, :routing_key => '
|
22
|
+
@queue = @channel.queue(@queue_name, :durable => false, :auto_delete => false)
|
23
|
+
@queue.bind(@exchange, :routing_key => 'publish.#')
|
23
24
|
@queue.subscribe(&@consumer.method(:handle_message))
|
24
25
|
end
|
25
26
|
|
data/rabbithutch.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = %q{rabbithutch}
|
7
|
-
gem.version = "0.1.
|
7
|
+
gem.version = "0.1.1"
|
8
8
|
gem.authors = ["John Ryan"]
|
9
9
|
gem.email = ["555john@gmail.com"]
|
10
10
|
gem.description = %q{RabbitMq Trace Logger - Listen to multiple RabbitMq instances and log them to a
|