bugsnag 2.0.3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/bugsnag/delayed_job.rb +26 -2
- data/spec/notification_spec.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aeecfdb8779e10d102017b3c790a61a267ec9d5
|
4
|
+
data.tar.gz: f25ba587cd16bbdae435b974af0cea1f304fb72f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d94df43a04e198a7c59be2562653dd6725dcf0a1cd6a61eb4ffb3941edc7c1cb73991af7c849c993ca4fb951e205f1891c8d299fedcc36126304d76913cf5d52
|
7
|
+
data.tar.gz: 680796ec69b78407e88ddd6de482dc6cd9f5a08f28bad3c9579be2f90a2529cf1355dd8aa6dc8956b5113ada3e5c50f4f8951818cfac9cc0257d7e154c412b94
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0
|
1
|
+
2.1.0
|
data/lib/bugsnag/delayed_job.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'delayed_job'
|
2
2
|
|
3
3
|
# See Issue #99
|
4
|
-
unless defined?(Delayed::
|
4
|
+
unless defined?(Delayed::Plugin)
|
5
5
|
raise LoadError, "bugsnag requires delayed_job > 3.x"
|
6
6
|
end
|
7
7
|
|
@@ -13,7 +13,31 @@ unless defined? Delayed::Plugins::Bugsnag
|
|
13
13
|
class Bugsnag < Plugin
|
14
14
|
module Notify
|
15
15
|
def error(job, error)
|
16
|
-
|
16
|
+
overrides = {
|
17
|
+
:job => {
|
18
|
+
:class => job.class.name,
|
19
|
+
:id => job.id,
|
20
|
+
}
|
21
|
+
}
|
22
|
+
if payload = job.payload_object
|
23
|
+
p = {
|
24
|
+
:class => payload.class.name,
|
25
|
+
}
|
26
|
+
p[:id] = payload.id if payload.respond_to?(:id)
|
27
|
+
p[:display_name] = payload.display_name if payload.respond_to?(:display_name)
|
28
|
+
p[:method_name] = payload.method_name if payload.respond_to?(:method_name)
|
29
|
+
p[:args] = payload.args if payload.respond_to?(:args)
|
30
|
+
if payload.is_a?(::Delayed::PerformableMethod) && (object = payload.object)
|
31
|
+
p[:object] = {
|
32
|
+
:class => object.class.name,
|
33
|
+
}
|
34
|
+
p[:object][:id] = object.id if object.respond_to?(:id)
|
35
|
+
end
|
36
|
+
overrides[:job][:payload] = p
|
37
|
+
end
|
38
|
+
|
39
|
+
::Bugsnag.auto_notify(error, overrides)
|
40
|
+
|
17
41
|
super if defined?(super)
|
18
42
|
end
|
19
43
|
end
|
data/spec/notification_spec.rb
CHANGED
@@ -706,7 +706,7 @@ describe Bugsnag::Notification do
|
|
706
706
|
expect(Bugsnag::Notification).to receive(:deliver_exception_payload) do |endpoint, payload|
|
707
707
|
expect(payload[:events][0][:exceptions][0][:errorClass]).to eq('Java::JavaLang::ArrayIndexOutOfBoundsException')
|
708
708
|
expect(payload[:events][0][:exceptions][0][:message]).to eq("2")
|
709
|
-
expect(payload[:events][0][:exceptions][0][:stacktrace].size).to
|
709
|
+
expect(payload[:events][0][:exceptions][0][:stacktrace].size).to be > 0
|
710
710
|
end
|
711
711
|
|
712
712
|
begin
|
metadata
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: httparty
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - <
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.0'
|
34
|
-
- -
|
34
|
+
- - '>='
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '0.6'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - <
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '1.0'
|
44
|
-
- -
|
44
|
+
- - '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0.6'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - '>='
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rspec
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - '>='
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - '>='
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rdoc
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - '>='
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - '>='
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: pry
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - '>='
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - '>='
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
description: Ruby notifier for bugsnag.com
|
@@ -108,10 +108,10 @@ extra_rdoc_files:
|
|
108
108
|
- LICENSE.txt
|
109
109
|
- README.md
|
110
110
|
files:
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
111
|
+
- .document
|
112
|
+
- .gitignore
|
113
|
+
- .rspec
|
114
|
+
- .travis.yml
|
115
115
|
- CHANGELOG.md
|
116
116
|
- Gemfile
|
117
117
|
- LICENSE.txt
|
@@ -166,17 +166,17 @@ require_paths:
|
|
166
166
|
- lib
|
167
167
|
required_ruby_version: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - '>='
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
|
-
- -
|
174
|
+
- - '>='
|
175
175
|
- !ruby/object:Gem::Version
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.0.14
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: Ruby notifier for bugsnag.com
|