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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31cdb85057c6ea3503bdc6dfa5b8b38f00d6bd6c
4
- data.tar.gz: d5e696a46f34de63cc27c28c6f607ad44b075b77
3
+ metadata.gz: 093cafac338ae5b0c8b1c904a165ea70fb7b9c51
4
+ data.tar.gz: e2a11b4fb385a9c378cbc34f306187cb43bcef7e
5
5
  SHA512:
6
- metadata.gz: 4a1b52c405eb89d2b933f64ca9bdbe8b7d4a11943d4d004f484972ea6b1c3f281c6bd92b062611c6d22b3d082f0655833974e06fdafd0f8ef9f8ac9b3aeed0fe
7
- data.tar.gz: e854d367746c8903c4cdc7aabe4dd8bbff0b815e3a91b383fa5348aa374741942cbfd18ca8571927ee174bf6b0ed4a750849cf803786c331947eafed5fa64fb3
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
@@ -1,4 +1,4 @@
1
1
  # This file specifies the current version of the gem.
2
2
  module DispatchRider
3
- VERSION = "0.1.1.1"
3
+ VERSION = "0.1.2"
4
4
  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.1.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-10-25 00:00:00.000000000 Z
11
+ date: 2013-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport