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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fa818a1ffcc9bc99f240661a7f4d6b8fac47ce4
4
- data.tar.gz: 4eff94051e933d7fb226a21a7026755459bc14cc
3
+ metadata.gz: 3ae4cf9c9235692a5e6db6cca5207cf66bed135e
4
+ data.tar.gz: fce119a83493fcf6da93b56cfaa5f2fc1ae7d379
5
5
  SHA512:
6
- metadata.gz: 8d3a79bede854e7fc939c5d01208a0d79463b9d2e8f6212ff9721e947d4a14c48e0bdef30bbc8b52269de7ccee0aa98437ef1f200eb98767c9dc2cf674cc4727
7
- data.tar.gz: b93bfe1b96cae3dd7923dc005fa31a2da00d7582d80df9ba57f66fa041d318aa91516f6882c6a6251e756330ee09ac167e3427b92a360ec955a9f0c3702eedeb
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
- Raven.capture_exception(exception, tags: {component: 'leveret'})
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
 
@@ -1,3 +1,3 @@
1
1
  module Leveret
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".freeze
3
3
  end
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.2
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-07-27 00:00:00.000000000 Z
11
+ date: 2016-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny