resque-rollbar 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-rollbar'
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 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
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Rollbar
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
File without changes
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'resque-rollbar/version'
4
+ require 'resque/rollbar/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = 'resque-rollbar'
@@ -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 exception, {
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-rollbar'
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.1
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