honeybadger 3.0.0.beta5 → 3.0.0.beta6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/honeybadger/plugins/resque.rb +6 -10
- data/lib/honeybadger/version.rb +1 -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: 74dab15a34bc56efff8dc18638e90292ffb3f2fb
|
4
|
+
data.tar.gz: 6039d424a5eb1d9198025dda9a7231a164a8af6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 675a431e9586d5d3e1371248effd2c5f27a7b6d2b14bbc4c099fe30b0ee4484de35ef57f17eb6ce272079143286071a96e38c80367e523cfae4a362f61ff0b4d
|
7
|
+
data.tar.gz: 593e71708e7ea207d9f72ae66f6225333aa05c84cd92d5351098d2ea4e8aae0853724006eebf0435f4753fa4435fa331f6a867bf01a0d505a5749a23e26c4e19
|
@@ -6,26 +6,22 @@ module Honeybadger
|
|
6
6
|
module Resque
|
7
7
|
module Extension
|
8
8
|
def around_perform_with_honeybadger(*args)
|
9
|
-
Honeybadger.flush
|
10
|
-
begin
|
11
|
-
yield
|
12
|
-
rescue Exception => e
|
13
|
-
Honeybadger.notify(e, parameters: { job_arguments: args }) if send_exception?(e, args)
|
14
|
-
raise e
|
15
|
-
end
|
16
|
-
end
|
9
|
+
Honeybadger.flush { yield }
|
17
10
|
ensure
|
18
11
|
Honeybadger.context.clear!
|
19
12
|
end
|
20
13
|
|
21
|
-
def
|
14
|
+
def on_failure_with_honeybadger(e, *args)
|
15
|
+
Honeybadger.notify(e, parameters: { job_arguments: args }) if send_exception_to_honeybadger?(e, args)
|
16
|
+
end
|
17
|
+
|
18
|
+
def send_exception_to_honeybadger?(e, args)
|
22
19
|
return true unless respond_to?(:retry_criteria_valid?)
|
23
20
|
return true if ::Honeybadger.config[:'resque.resque_retry.send_exceptions_when_retrying']
|
24
21
|
|
25
22
|
!retry_criteria_valid?(e)
|
26
23
|
rescue => e
|
27
24
|
Honeybadger.notify(e, parameters: { job_arguments: args })
|
28
|
-
raise e
|
29
25
|
end
|
30
26
|
end
|
31
27
|
|
data/lib/honeybadger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.beta6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Honeybadger Industries LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|