resque-sentry 1.1.1 → 1.2.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.
- checksums.yaml +4 -4
- data/lib/resque/failure/sentry.rb +4 -0
- data/resque-sentry.gemspec +1 -1
- data/spec/sentry_spec.rb +15 -4
- 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: 2fa21dd27925c53fdcefdda80e12e432482fba21
|
4
|
+
data.tar.gz: 5716b8abe0ccb69ae5b84bdcc5aa8422acbec95f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c625204a417bb1e973c4ba6afcc42b520390a6e1df2046cb41bfc775a21447cf969d6181febec89988ce77bddd0b19a272ae586cdb6791273a75f508e3208e2
|
7
|
+
data.tar.gz: 1069bd9ec9fdb4ec6d329d05e734d6a40c677886e00a691f2bdc92f7c7cc771c4a517da7b152ef8a2791b573d1ee4bbc1978ce117b5e88c11f2776633f66f6e7
|
data/resque-sentry.gemspec
CHANGED
data/spec/sentry_spec.rb
CHANGED
@@ -2,11 +2,16 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Resque::Failure::Sentry do
|
4
4
|
it "sends errors to Sentry" do
|
5
|
-
sentry_options = {
|
5
|
+
sentry_options = {
|
6
|
+
:extra => {
|
7
|
+
"Object" => Object,
|
8
|
+
"Arguments" => [ 1, "foo" ]
|
9
|
+
}
|
10
|
+
}
|
6
11
|
exception = StandardError.new("Test Error")
|
7
12
|
worker = Resque::Worker.new(:test)
|
8
13
|
queue = "test"
|
9
|
-
payload = {'class' => Object, 'args' => 1}
|
14
|
+
payload = {'class' => Object, 'args' => [ 1, "foo" ]}
|
10
15
|
|
11
16
|
event = mock
|
12
17
|
Raven.expects(:capture_exception).with(exception, sentry_options)
|
@@ -17,11 +22,17 @@ describe Resque::Failure::Sentry do
|
|
17
22
|
|
18
23
|
it "will use the configured Sentry logger" do
|
19
24
|
Resque::Failure::Sentry.logger = "resque"
|
20
|
-
sentry_options = {
|
25
|
+
sentry_options = {
|
26
|
+
:logger => "resque",
|
27
|
+
:extra => {
|
28
|
+
"Object" => Object,
|
29
|
+
"Arguments" => [ 1, "foo" ]
|
30
|
+
}
|
31
|
+
}
|
21
32
|
exception = StandardError.new("Test Error")
|
22
33
|
worker = Resque::Worker.new(:test)
|
23
34
|
queue = "test"
|
24
|
-
payload = {'class' => Object, 'args' => 1}
|
35
|
+
payload = {'class' => Object, 'args' => [ 1, "foo" ]}
|
25
36
|
|
26
37
|
Raven.expects(:capture_exception).with(exception, sentry_options)
|
27
38
|
backend = Resque::Failure::Sentry.new(exception, worker, queue, payload)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-sentry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Marr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: resque
|