rollbar 0.13.1 → 0.13.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: 87940d1312d7031a35a8fffa52ce5c8a3a85028a
4
- data.tar.gz: d8cdb363a959a1da8b1262e56ca30b93894dd117
3
+ metadata.gz: b3f1bfea5b0039c34e065755ca4d589cfc5756b8
4
+ data.tar.gz: 2ccff055b8ca9a5e3d5e95f5ba57874de697acc8
5
5
  SHA512:
6
- metadata.gz: a73fb54fe0586c55901fb2164afdc144419a643fb7d8ba05d3f0ec63cb6ac522da1c62ac86d55e223a07d9b4c2f9d89900a8eb62068371544bb92e6a0c5eb621
7
- data.tar.gz: a07997b90331f77dbd91c26d81004dcf66231879c433af9aba912a41f5dced783d53c3c3b1910d70e2d5271b909c7938d69be6b91c23417f5577fe3bd456bf56
6
+ metadata.gz: f6e7fdacbe2ca39f560f4d616a6282413b6d170c8b8aaeca4f616725d84be8beaf55e2318c994aebf1b74028c42824401da745645c553c2671f60867b37be4d0
7
+ data.tar.gz: a3ba21e9df754a5f47381a5f83f6aa90e4554ab4720af6e543e15d6124450600825f64e9e0271f2c08e6cf87edc9262373aa88e173a3c8b739ad7247526f58df
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ **0.13.2**
4
+ - Sidekiq payload is no longer mutated when Rollbar reports a Sidekiq job exception
5
+ - Fix sucker_punch async reporting when using a forking application server such as Unicorn (`preload_app true`). Jobs are now instantiated for every report instead of a reused global job instance
6
+
3
7
  **0.13.1**
4
8
  - Silence warning when using project_gems= with regexp [#120](https://github.com/rollbar/rollbar-gem/pull/120)
5
9
 
@@ -87,7 +87,7 @@ module Rollbar
87
87
  def use_sucker_punch
88
88
  require 'rollbar/delay/sucker_punch' if defined?(SuckerPunch)
89
89
  @use_async = true
90
- @async_handler = Rollbar::Delay::SuckerPunch.new
90
+ @async_handler = Rollbar::Delay::SuckerPunch
91
91
  end
92
92
 
93
93
  def use_sucker_punch=(value)
@@ -6,8 +6,8 @@ module Rollbar
6
6
 
7
7
  include ::SuckerPunch::Job
8
8
 
9
- def call(payload)
10
- async.perform payload
9
+ def self.call(payload)
10
+ new.async.perform payload
11
11
  end
12
12
 
13
13
  def perform(*args)
@@ -1,5 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
+ PARAM_BLACKLIST = ['backtrace', 'error_backtrace', 'error_message', 'error_class']
4
+
3
5
  if Sidekiq::VERSION < '3'
4
6
  module Rollbar
5
7
  class Sidekiq
@@ -7,12 +9,9 @@ if Sidekiq::VERSION < '3'
7
9
  begin
8
10
  yield
9
11
  rescue Exception => e
10
- msg.delete('backtrace')
11
- msg.delete('error_backtrace')
12
- msg.delete('error_message')
13
- msg.delete('error_class')
12
+ params = msg.reject{ |k| PARAM_BLACKLIST.include?(k) }
14
13
 
15
- Rollbar.report_exception(e, :params => msg)
14
+ Rollbar.report_exception(e, :params => params)
16
15
  raise
17
16
  end
18
17
  end
@@ -27,12 +26,9 @@ if Sidekiq::VERSION < '3'
27
26
  else
28
27
  Sidekiq.configure_server do |config|
29
28
  config.error_handlers << Proc.new do |e, context|
30
- context.delete('backtrace')
31
- context.delete('error_backtrace')
32
- context.delete('error_message')
33
- context.delete('error_class')
34
-
35
- Rollbar.report_exception(e, :params => context)
29
+ params = context.reject{ |k| PARAM_BLACKLIST.include?(k) }
30
+
31
+ Rollbar.report_exception(e, :params => params)
36
32
  end
37
33
  end
38
34
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.13.1"
2
+ VERSION = "0.13.2"
3
3
  end
@@ -13,13 +13,13 @@ rescue LoadError
13
13
  end
14
14
 
15
15
  describe Rollbar::Delay::SuckerPunch, :if => RUBY_VERSION != '1.8.7' do
16
- describe "#call" do
16
+ describe ".call" do
17
17
  let(:payload) { "anything" }
18
18
 
19
- it "performs asynchronously the task" do
19
+ it "performs the task asynchronously" do
20
20
  Rollbar.should_receive(:process_payload)
21
21
 
22
- subject.call payload
22
+ Rollbar::Delay::SuckerPunch.call payload
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Rue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-30 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json