rollbar 2.11.2 → 2.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/rollbar/plugins/delayed_job/job_data.rb +16 -3
- data/lib/rollbar/version.rb +1 -1
- data/spec/rollbar/plugins/delayed_job_spec.rb +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5851703f65adab5176d10107ece8d7c0aea9930
|
4
|
+
data.tar.gz: 27544951ae368273b0a9c43c2d992c0636561197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a33f0936c4f77db669960680feba1f838e90262d033f9d5c5306dc9d74671e748c1aac35536d4ec4e35f3873e60537e130a8dcbdca60af3bc03cd39055997421
|
7
|
+
data.tar.gz: da71d51b05f98ee19d2dd75fdd451474587e16772b3718a77b92f29f3d5a74d7f0d0194ebd3abc4fda7fd5dff979ff78c1af975fec9fe2e9a9496e3e1fbd00fa
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rollbar [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.11.
|
1
|
+
# Rollbar [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.11.3)](https://travis-ci.org/rollbar/rollbar-gem/branches)
|
2
2
|
|
3
3
|
<!-- RemoveNext -->
|
4
4
|
[Rollbar](https://rollbar.com) is an error tracking service for Ruby and other languages. The Rollbar service will alert you of problems with your code and help you understand them in a ways never possible before. We love it and we hope you will too.
|
@@ -7,10 +7,23 @@ class JobData
|
|
7
7
|
|
8
8
|
def to_hash
|
9
9
|
job_data = job.as_json
|
10
|
-
|
11
|
-
|
12
|
-
job_data['handler'] = job.payload_object.as_json
|
10
|
+
handler_parent = job_data['job'] ? job_data['job'] : job_data
|
11
|
+
handler_parent['handler'] = handler_data
|
13
12
|
|
14
13
|
job_data
|
15
14
|
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def handler_data
|
19
|
+
object = job.payload_object.object
|
20
|
+
|
21
|
+
{
|
22
|
+
:method_name => job.payload_object.method_name,
|
23
|
+
:args => job.payload_object.args,
|
24
|
+
:object => object.is_a?(Class) ? object.name : object.to_s
|
25
|
+
}
|
26
|
+
rescue
|
27
|
+
{}
|
28
|
+
end
|
16
29
|
end
|
data/lib/rollbar/version.rb
CHANGED
@@ -69,7 +69,20 @@ describe Rollbar::Delayed, :reconfigure_notifier => true do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
context 'with attempts > configuration.dj_threshold' do
|
72
|
-
let(:
|
72
|
+
let(:object) do
|
73
|
+
double(:to_s => 'foo')
|
74
|
+
end
|
75
|
+
let(:payload_object) do
|
76
|
+
double(:method_name => 'foo',
|
77
|
+
:args => [1, 2],
|
78
|
+
:object => object)
|
79
|
+
end
|
80
|
+
let(:job) do
|
81
|
+
double(
|
82
|
+
:attempts => 6,
|
83
|
+
:job => { :payload_object => payload_object }
|
84
|
+
)
|
85
|
+
end
|
73
86
|
|
74
87
|
it 'returns true' do
|
75
88
|
expect(described_class.skip_report?(job)).to be(false)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rollbar, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|