rabbit_jobs 0.8.19 → 0.8.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb001224d39c5685a57028e31c78f213ed0ac533
4
- data.tar.gz: 5f7689323e545cbec16bbd7735f70a667eadea34
3
+ metadata.gz: 6ae8280cb0507c08c0bd8603349ca504b389d986
4
+ data.tar.gz: 277bd310798482e364287b14530a029d6888bc13
5
5
  SHA512:
6
- metadata.gz: cc6a6b38911802991eb7b7472c0aeb41f32954ba2976dcb30423a25ae65280efa62d7b7cb3bf27f5306a4eb16112cefa65b88236901ab26b1382a1fc001ceb99
7
- data.tar.gz: 802458f8496dcf9fbc3b080d246f91d5c659b0db340b8e6cbb2ad9c47620dfe4e066391abc0a937a923d2c05a57e08db47865cf23a44353108245837b2c332a8
6
+ metadata.gz: 6569f377bce44b954ed3de7485547294a52e246c7acda1019b23b06fa82236450106f3c0a73e5b4c425747029c3750e23a6a80f143bd23e5ae584121ce83df93
7
+ data.tar.gz: f8f8872fb78f74014d7767d48d169e5637bf967573c5dc3857b708c3c214da49994c56f9c11578c6217c22c7ed1994e43f7ce2b0401cd53e76c698a188b1c626
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.8.19"
4
+ VERSION = "0.8.20"
5
5
  end
@@ -94,13 +94,13 @@ module RabbitJobs
94
94
  private
95
95
 
96
96
  def consume_message(delivery_info, properties, payload)
97
- if RJ.run_before_process_message_callbacks
97
+ if (RJ.run_before_process_message_callbacks rescue nil)
98
98
  begin
99
99
  @consumer.process_message(delivery_info, properties, payload)
100
100
  @processed_count += 1
101
101
  rescue
102
- RabbitJobs.logger.error(short_message: "Message process error",
103
- _error: $!.message, _exception: $!.class, full_message: _cleanup_backtrace($!.backtrace).join("\r\n"))
102
+ RabbitJobs.logger.error(short_message: $!.message,
103
+ _payload: payload, _exception: $!.class, full_message: _cleanup_backtrace($!.backtrace).join("\r\n"))
104
104
  end
105
105
  true
106
106
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.19
4
+ version: 0.8.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Lazureykis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2013-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.0.3
135
+ rubygems_version: 2.0.14
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Background jobs on RabbitMQ