rabbit-wq 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,7 @@ module RabbitWQ
22
22
  debug "PAYLOAD ARRIVED #{payload}"
23
23
 
24
24
  worker = YAML::load( payload )
25
+ info ANSI.yellow { "WORKER [#{worker.object_id}] " + worker.inspect }
25
26
  worker.call
26
27
  channel.ack delivery_info.delivery_tag
27
28
  rescue => e
@@ -1,3 +1,3 @@
1
1
  module RabbitWQ
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -27,5 +27,11 @@ module RabbitWQ
27
27
  self
28
28
  end
29
29
 
30
+ def with_logging
31
+ info "BEGIN #{self.class.name}"
32
+ yield
33
+ info "END #{self.class.name}"
34
+ end
35
+
30
36
  end
31
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit-wq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-16 00:00:00.000000000 Z
12
+ date: 2014-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -181,4 +181,3 @@ signing_key:
181
181
  specification_version: 3
182
182
  summary: A work queue built on RabbitMQ and Celluloid.
183
183
  test_files: []
184
- has_rdoc: