delayed-plugins-airbrake 1.0.0 → 1.1.0

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.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Delayed::Plugins::Airbrake
2
2
 
3
+ ![Looking for maintainer](https://raw.github.com/benjaminoakes/delayed-plugins-airbrake/master/resources/looking-for-maintainer.png)
4
+
3
5
  `delayed_job` exception notification with Airbrake
4
6
 
5
7
  Originally based on [this gist](https://gist.github.com/granth/2223758) and [this StackOverflow answer](http://stackoverflow.com/questions/12683364/how-to-make-delayed-job-notify-airbrake-when-an-actionmailer-runs-into-an-error).
@@ -6,7 +6,7 @@ require 'delayed-plugins-airbrake/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "delayed-plugins-airbrake"
8
8
  gem.version = Delayed::Plugins::Airbrake::VERSION
9
- gem.authors = ['Benjamin Oakes', 'Romain Champourlier', 'Grant Hollingworth']
9
+ gem.authors = ['Benjamin Oakes', 'Romain Champourlier', 'Grant Hollingworth', 'Nathan Broadbent']
10
10
  gem.email = ['hello@benjaminoakes.com']
11
11
  gem.description = %q(delayed_job exception notification with airbrake)
12
12
  gem.summary = %q(Notify Airbrake on Delayed Job errors, including those on PerformableMethod. Packaged for use from https://gist.github.com/granth/2223758 and http://stackoverflow.com/questions/12683364/how-to-make-delayed-job-notify-airbrake-when-an-actionmailer-runs-into-an-error.)
@@ -7,12 +7,14 @@ require 'delayed-plugins-airbrake/version'
7
7
  module Delayed::Plugins::Airbrake
8
8
  class Plugin < ::Delayed::Plugin
9
9
  module Notify
10
- def error(job, error)
11
- ::Airbrake.notify_or_ignore(
12
- :error_class => error.class.name,
13
- :error_message => "#{error.class.name}: #{error.message}",
10
+ def error(job, exception)
11
+ ::Airbrake.notify(exception,
12
+ :error_class => exception.class.name,
13
+ :error_message => "#{exception.class.name}: #{exception.message}",
14
+ :backtrace => exception.backtrace,
15
+ :component => 'DelayedJob Worker',
14
16
  :parameters => {
15
- :failed_job => job.inspect,
17
+ :failed_job => job.inspect
16
18
  }
17
19
  )
18
20
  super if defined?(super)
@@ -1,7 +1,7 @@
1
1
  module Delayed
2
2
  module Plugins
3
3
  module Airbrake
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,21 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed-plugins-airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Benjamin Oakes
9
9
  - Romain Champourlier
10
10
  - Grant Hollingworth
11
+ - Nathan Broadbent
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2013-03-15 00:00:00.000000000 Z
15
+ date: 2013-12-11 00:00:00.000000000 Z
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
17
18
  name: airbrake
18
- requirement: &13732500 !ruby/object:Gem::Requirement
19
+ requirement: &15124920 !ruby/object:Gem::Requirement
19
20
  none: false
20
21
  requirements:
21
22
  - - ! '>='
@@ -23,10 +24,10 @@ dependencies:
23
24
  version: '0'
24
25
  type: :runtime
25
26
  prerelease: false
26
- version_requirements: *13732500
27
+ version_requirements: *15124920
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: delayed_job
29
- requirement: &13701240 !ruby/object:Gem::Requirement
30
+ requirement: &15088560 !ruby/object:Gem::Requirement
30
31
  none: false
31
32
  requirements:
32
33
  - - ! '>='
@@ -34,10 +35,10 @@ dependencies:
34
35
  version: '0'
35
36
  type: :runtime
36
37
  prerelease: false
37
- version_requirements: *13701240
38
+ version_requirements: *15088560
38
39
  - !ruby/object:Gem::Dependency
39
40
  name: rake
40
- requirement: &13700700 !ruby/object:Gem::Requirement
41
+ requirement: &15087000 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
44
  - - ! '>='
@@ -45,10 +46,10 @@ dependencies:
45
46
  version: '0'
46
47
  type: :development
47
48
  prerelease: false
48
- version_requirements: *13700700
49
+ version_requirements: *15087000
49
50
  - !ruby/object:Gem::Dependency
50
51
  name: rspec
51
- requirement: &13700020 !ruby/object:Gem::Requirement
52
+ requirement: &15085980 !ruby/object:Gem::Requirement
52
53
  none: false
53
54
  requirements:
54
55
  - - ! '>='
@@ -56,7 +57,7 @@ dependencies:
56
57
  version: '0'
57
58
  type: :development
58
59
  prerelease: false
59
- version_requirements: *13700020
60
+ version_requirements: *15085980
60
61
  description: delayed_job exception notification with airbrake
61
62
  email:
62
63
  - hello@benjaminoakes.com
@@ -75,6 +76,7 @@ files:
75
76
  - lib/delayed-plugins-airbrake.rb
76
77
  - lib/delayed-plugins-airbrake/version.rb
77
78
  - provision
79
+ - resources/looking-for-maintainer.png
78
80
  - spec/lib/delayed-plugins-airbrake/bomb_spec.rb
79
81
  - spec/lib/delayed-plugins-airbrake/plugin_spec.rb
80
82
  homepage: ''