resque-rollbar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/resque/failure/rollbar.rb +1 -4
- data/lib/{resque-rollbar → resque/rollbar}/version.rb +1 -1
- data/lib/{resque-rollbar.rb → resque/rollbar.rb} +0 -0
- data/resque-rollbar.gemspec +1 -1
- data/spec/resque/failure/rollbar_spec.rb +1 -5
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -22,7 +22,7 @@ In your resque's config:
|
|
22
22
|
|
23
23
|
```ruby
|
24
24
|
require 'resque/failure/multiple'
|
25
|
-
require 'resque
|
25
|
+
require 'resque/rollbar'
|
26
26
|
|
27
27
|
Resque::Failure::Multiple.classes = [ Resque::Failure::Redis, Resque::Failure::Rollbar ]
|
28
28
|
Resque::Failure.backend = Resque::Failure::Multiple
|
@@ -5,10 +5,7 @@ module Resque
|
|
5
5
|
module Failure
|
6
6
|
class Rollbar < Base
|
7
7
|
def save
|
8
|
-
::Rollbar.notify_exception
|
9
|
-
:payload_class => payload['class'].to_s,
|
10
|
-
:payload_args => payload['args'].inspect
|
11
|
-
}
|
8
|
+
::Rollbar.notify_exception(exception, payload)
|
12
9
|
end
|
13
10
|
end
|
14
11
|
end
|
File without changes
|
data/resque-rollbar.gemspec
CHANGED
@@ -7,11 +7,7 @@ describe Resque::Failure::Rollbar do
|
|
7
7
|
queue = 'test'
|
8
8
|
payload = { 'class' => Object, 'args' => 89 }
|
9
9
|
|
10
|
-
Rollbar.should_receive(:notify_exception).with
|
11
|
-
:payload_class => 'Object',
|
12
|
-
:payload_args => '89'
|
13
|
-
}
|
14
|
-
|
10
|
+
Rollbar.should_receive(:notify_exception).with(exception, payload)
|
15
11
|
backend = Resque::Failure::Rollbar.new(exception, worker, queue, payload)
|
16
12
|
backend.save
|
17
13
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require 'rspec'
|
2
|
-
require 'resque
|
2
|
+
require 'resque/rollbar'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -121,9 +121,9 @@ files:
|
|
121
121
|
- LICENSE.txt
|
122
122
|
- README.md
|
123
123
|
- Rakefile
|
124
|
-
- lib/resque-rollbar.rb
|
125
|
-
- lib/resque-rollbar/version.rb
|
126
124
|
- lib/resque/failure/rollbar.rb
|
125
|
+
- lib/resque/rollbar.rb
|
126
|
+
- lib/resque/rollbar/version.rb
|
127
127
|
- resque-rollbar.gemspec
|
128
128
|
- spec/resque/failure/rollbar_spec.rb
|
129
129
|
- spec/spec_helper.rb
|