bugsnag 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bugsnag.gemspec +1 -1
  3. data/lib/bugsnag/resque.rb +11 -4
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.9
1
+ 1.0.10
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bugsnag"
8
- s.version = "1.0.9"
8
+ s.version = "1.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Smith"]
@@ -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 = self
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} (resque)",
29
+ :context => "resque: #{queue}",
23
30
  :meta_data => {
24
31
  :payload => payload
25
32
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 9
10
- version: 1.0.9
9
+ - 10
10
+ version: 1.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Smith