leveret 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/leveret/job.rb +1 -1
- data/lib/leveret/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: 3ae4cf9c9235692a5e6db6cca5207cf66bed135e
|
4
|
+
data.tar.gz: fce119a83493fcf6da93b56cfaa5f2fc1ae7d379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67115f963e00f086452dd6e31bc6eb938f95d563dc5f422c29198689b0edb83210ea02e4329233e848a738e69f5921824c55c8578d2ea3ee26d217bcbb528d04
|
7
|
+
data.tar.gz: c329e5873ecb87468cd67c9df9bc950afd8fe13e221cc240c1833c52b6a44e0e03d386742915ead87703aae46bffcba375dfbb9da6e6cdd7883c96260598de06
|
data/README.md
CHANGED
@@ -183,8 +183,9 @@ error handler to log to Sentry the following would be necessary:
|
|
183
183
|
|
184
184
|
```ruby
|
185
185
|
Leveret.configure do |config|
|
186
|
-
config.error_handler = proc do |exception|
|
187
|
-
|
186
|
+
config.error_handler = proc do |exception, job|
|
187
|
+
job_name = job.class.name
|
188
|
+
Raven.capture_exception(exception, tags: {component: job_name})
|
188
189
|
end
|
189
190
|
end
|
190
191
|
```
|
data/lib/leveret/job.rb
CHANGED
@@ -72,7 +72,7 @@ module Leveret
|
|
72
72
|
:reject
|
73
73
|
rescue StandardError => e
|
74
74
|
Leveret.log.error "#{e.message} when processing #{self.class.name} with #{params}"
|
75
|
-
Leveret.configuration.error_handler.call(e)
|
75
|
+
Leveret.configuration.error_handler.call(e, self)
|
76
76
|
:reject
|
77
77
|
end
|
78
78
|
|
data/lib/leveret/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leveret
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Wentworth
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|