dispatch-rider 0.1.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/lib/dispatch-rider/error_handlers.rb +1 -1
- data/lib/dispatch-rider/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: 093cafac338ae5b0c8b1c904a165ea70fb7b9c51
|
4
|
+
data.tar.gz: e2a11b4fb385a9c378cbc34f306187cb43bcef7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8927e40c071aa98fc1bc00821d65ebb2be8ae7a6c903f95a474806596c068f9aaadc620d1979ee2023e936b8d090824e8319bc02a96515c29651cff234871397
|
7
|
+
data.tar.gz: 5fed12410bb43754a04c578dca723e5f5dca29132f7f3e451660d54784a5d4b9df73f215c594a86a54629c6a29f5f6c232f5f26d726f7796f7a5eb1393c7660a
|
data/README.md
CHANGED
@@ -187,7 +187,7 @@ DispatchRider.config do |config|
|
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
190
|
-
config.error_handler = DefaultErrorHandler # an object that responds to .call(message, exception)
|
190
|
+
config.error_handler = DispatchRider::DefaultErrorHandler # an object that responds to .call(message, exception)
|
191
191
|
|
192
192
|
config.queue_kind = :sqs
|
193
193
|
config.queue_info = { name: "queue-production" }
|
@@ -271,10 +271,18 @@ subscriber.setup_demultiplexer(kind, error_handler)
|
|
271
271
|
Airbrake is supported out of the box. All you need to do is:
|
272
272
|
|
273
273
|
1. Install and configure the [airbrake gem](https://github.com/airbrake/airbrake).
|
274
|
-
2. Use the `AirbrakeErrorHandler`.
|
274
|
+
2. Use the `DispatchRider::AirbrakeErrorHandler`.
|
275
275
|
|
276
276
|
```ruby
|
277
|
-
subscriber.setup_demultiplexer(kind, AirbrakeErrorHandler)
|
277
|
+
subscriber.setup_demultiplexer(kind, DispatchRider::AirbrakeErrorHandler)
|
278
|
+
```
|
279
|
+
|
280
|
+
or set it up in the config ...
|
281
|
+
|
282
|
+
```ruby
|
283
|
+
DispatchRider.config do |config|
|
284
|
+
config.error_handler = DispatchRider::AirbrakeErrorHandler
|
285
|
+
end
|
278
286
|
```
|
279
287
|
|
280
288
|
## Contributing
|
@@ -12,7 +12,7 @@ module DispatchRider
|
|
12
12
|
# sending the mesage and environment details.
|
13
13
|
module AirbrakeErrorHandler
|
14
14
|
def self.call(message, exception)
|
15
|
-
Airbrake.notify(exception, controller: "DispatchRider", action: message.subject, parameters: message.attributes, cgi_data: ENV)
|
15
|
+
Airbrake.notify(exception, controller: "DispatchRider", action: message.subject, parameters: message.attributes, cgi_data: ENV.to_hash)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dispatch-rider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suman Mukherjee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|