bugsnag 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bugsnag.gemspec +1 -1
- data/lib/bugsnag/resque.rb +11 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.10
|
data/bugsnag.gemspec
CHANGED
data/lib/bugsnag/resque.rb
CHANGED
@@ -5,9 +5,16 @@
|
|
5
5
|
# Resque::Failure.backend = Resque::Failure::Multiple
|
6
6
|
#
|
7
7
|
module Bugsnag
|
8
|
-
class Resque < Resque::Failure::Base
|
9
|
-
def self.configure
|
10
|
-
Resque::Failure.backend
|
8
|
+
class Resque < ::Resque::Failure::Base
|
9
|
+
def self.configure(&block)
|
10
|
+
unless ::Resque::Failure.backend < ::Resque::Failure::Multiple
|
11
|
+
original_backend = ::Resque::Failure.backend
|
12
|
+
::Resque::Failure.backend = ::Resque::Failure::Multiple
|
13
|
+
::Resque::Failure.backend.classes ||= []
|
14
|
+
::Resque::Failure.backend.classes << original_backend
|
15
|
+
end
|
16
|
+
|
17
|
+
::Resque::Failure.backend.classes << self
|
11
18
|
::Bugsnag.configure(&block)
|
12
19
|
end
|
13
20
|
|
@@ -19,7 +26,7 @@ module Bugsnag
|
|
19
26
|
def bugsnag_job_data
|
20
27
|
{
|
21
28
|
:user_id => nil, # TODO: How to infer a user id in resque?
|
22
|
-
:context => "#{queue}
|
29
|
+
:context => "resque: #{queue}",
|
23
30
|
:meta_data => {
|
24
31
|
:payload => payload
|
25
32
|
}
|
metadata
CHANGED