rollbar 2.6.1 → 2.6.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 +6 -0
- data/README.md +2 -2
- data/lib/rollbar/sidekiq.rb +2 -1
- data/lib/rollbar/version.rb +1 -1
- data/spec/rollbar/sidekiq_spec.rb +12 -0
- 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: 6f8b07e2d8e3d2992b1a1fd184ea691fcd4acec2
|
4
|
+
data.tar.gz: 035042188f3d6fa98900729ac77fc031274e9b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30fb1d65967e4d6d5fc5b1912bdcc46fcfa859bc15a7c65fc644b625906b65134ce5b6c07af72de59a3de484575c0d00c68faeff30f8ed4e550a324b443272ca
|
7
|
+
data.tar.gz: 6a6eb792d773a6a56738e1a554bcd686de7e3b54ebea97d17f87096ba578bfcf0c1c717e90a04711e9199442382225a9e39e7dbb3c4ad8dc6b3cb51eb49b5141
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rollbar notifier for Ruby [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.6.
|
1
|
+
# Rollbar notifier for Ruby [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.6.2)](https://travis-ci.org/rollbar/rollbar-gem/branches)
|
2
2
|
|
3
3
|
<!-- RemoveNext -->
|
4
4
|
[Rollbar](https://rollbar.com) is an error tracking service for Ruby and other languages. The Rollbar service will alert you of problems with your code and help you understand them in a ways never possible before. We love it and we hope you will too.
|
@@ -12,7 +12,7 @@ This is the Ruby library for Rollbar. It will instrument many kinds of Ruby appl
|
|
12
12
|
Add this line to your application's Gemfile:
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
gem 'rollbar', '~> 2.6.
|
15
|
+
gem 'rollbar', '~> 2.6.2'
|
16
16
|
```
|
17
17
|
|
18
18
|
If you are not using JRuby we suggest using [Oj](https://github.com/ohler55/oj) for JSON serialization. In order to install Oj you can add this line to your Gemfile:
|
data/lib/rollbar/sidekiq.rb
CHANGED
@@ -14,7 +14,8 @@ module Rollbar
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.skip_report?(msg_or_context, e)
|
17
|
-
msg_or_context.is_a?(Hash) && msg_or_context["retry"] &&
|
17
|
+
msg_or_context.is_a?(Hash) && msg_or_context["retry"] &&
|
18
|
+
msg_or_context["retry_count"] && msg_or_context["retry_count"] < ::Rollbar.configuration.sidekiq_threshold
|
18
19
|
end
|
19
20
|
|
20
21
|
def call(worker, msg, queue)
|
data/lib/rollbar/version.rb
CHANGED
@@ -59,6 +59,18 @@ describe Rollbar::Sidekiq, :reconfigure_notifier => false do
|
|
59
59
|
|
60
60
|
described_class.handle_exception(msg_or_context, exception)
|
61
61
|
end
|
62
|
+
|
63
|
+
it 'does not blow up and sends the error to rollbar if retry is true but there is no retry count' do
|
64
|
+
allow(Rollbar).to receive(:scope).and_return(rollbar)
|
65
|
+
expect(rollbar).to receive(:error)
|
66
|
+
|
67
|
+
msg_or_context = {"retry" => true}
|
68
|
+
|
69
|
+
expect {
|
70
|
+
described_class.handle_exception(msg_or_context, exception)
|
71
|
+
}.to_not raise_error
|
72
|
+
end
|
73
|
+
|
62
74
|
end
|
63
75
|
end
|
64
76
|
|
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: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rollbar, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|