bugs_bunny 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/bbunny +1 -1
- data/bugs_bunny.gemspec +1 -1
- data/lib/bugs_bunny/record.rb +3 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/bin/bbunny
CHANGED
data/bugs_bunny.gemspec
CHANGED
data/lib/bugs_bunny/record.rb
CHANGED
@@ -19,7 +19,8 @@ module BugsBunny
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def initialize(*params)
|
22
|
-
@name, d, a,_,_
|
22
|
+
@name, d, a,_,_,ready,_,all,@users, @transactions, @mem = *params
|
23
|
+
@msgs = ready.to_i + all.to_i
|
23
24
|
@durable = eval(d) if d #ugly
|
24
25
|
@auto_delete = eval(a) if a #more ugly
|
25
26
|
@mq = MQ.queue(@name, :passive => true)
|
@@ -40,7 +41,7 @@ module BugsBunny
|
|
40
41
|
|
41
42
|
def inspect
|
42
43
|
puts ""
|
43
|
-
@mq.subscribe(:ack => true) do |h, body| #, :nowait => false
|
44
|
+
@mq.bind(MQ.fanout(@name)).subscribe(:ack => true) do |h, body| #, :nowait => false
|
44
45
|
puts "-------\n"
|
45
46
|
print "QUEUE #{h.delivery_tag} (#{h.content_type}): "
|
46
47
|
print "Redelivered " if h.redelivered
|