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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rollbar/configuration.rb +1 -1
- data/lib/rollbar/delay/sucker_punch.rb +2 -2
- data/lib/rollbar/sidekiq.rb +7 -11
- data/lib/rollbar/version.rb +1 -1
- data/spec/delay/sucker_punch_spec.rb +3 -3
- 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: b3f1bfea5b0039c34e065755ca4d589cfc5756b8
|
4
|
+
data.tar.gz: 2ccff055b8ca9a5e3d5e95f5ba57874de697acc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
90
|
+
@async_handler = Rollbar::Delay::SuckerPunch
|
91
91
|
end
|
92
92
|
|
93
93
|
def use_sucker_punch=(value)
|
data/lib/rollbar/sidekiq.rb
CHANGED
@@ -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.
|
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 =>
|
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.
|
31
|
-
|
32
|
-
|
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
|
data/lib/rollbar/version.rb
CHANGED
@@ -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 "
|
16
|
+
describe ".call" do
|
17
17
|
let(:payload) { "anything" }
|
18
18
|
|
19
|
-
it "performs
|
19
|
+
it "performs the task asynchronously" do
|
20
20
|
Rollbar.should_receive(:process_payload)
|
21
21
|
|
22
|
-
|
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.
|
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-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|