celldee-bunny 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. data/lib/bunny.rb +8 -0
  2. data/lib/bunny/queue.rb +1 -1
  3. metadata +1 -1
data/lib/bunny.rb CHANGED
@@ -18,6 +18,14 @@ class Bunny
18
18
  @client = AMQP::Client.new(opts)
19
19
  end
20
20
 
21
+ def logging=(bool)
22
+ client.logging = bool
23
+ end
24
+
25
+ def logging
26
+ client.logging
27
+ end
28
+
21
29
  def start
22
30
  client.start_session
23
31
  end
data/lib/bunny/queue.rb CHANGED
@@ -36,7 +36,7 @@
36
36
  raise 'unexpected length' if msg.length < header.size
37
37
 
38
38
  if hdr
39
- [header, msg]
39
+ {:header => header, :payload => msg}
40
40
  else
41
41
  msg
42
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celldee-bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan