rollbar 2.6.1 → 2.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fcf3784b3933d22fda12776862079a51dc40d51
4
- data.tar.gz: 63ad42beb99619d2543b386074d7f8e9b61486b1
3
+ metadata.gz: 6f8b07e2d8e3d2992b1a1fd184ea691fcd4acec2
4
+ data.tar.gz: 035042188f3d6fa98900729ac77fc031274e9b66
5
5
  SHA512:
6
- metadata.gz: 9dd2b1859ad864c4c76af2fff36ed43671e4811e7c91bd6a7f251f86e207904d5d02f51efe222956ff9784523531b3cb40b8a35785b9af1395c97ea19aa3c638
7
- data.tar.gz: 155d347bb7540525e3c17bcb773af226f60cae09806aa3aa2223c19493a049f09a7df091f05b28358cf38653e16d4fafb53f8816cdcf5ae1ab1ec2c2b0bf8b40
6
+ metadata.gz: 30fb1d65967e4d6d5fc5b1912bdcc46fcfa859bc15a7c65fc644b625906b65134ce5b6c07af72de59a3de484575c0d00c68faeff30f8ed4e550a324b443272ca
7
+ data.tar.gz: 6a6eb792d773a6a56738e1a554bcd686de7e3b54ebea97d17f87096ba578bfcf0c1c717e90a04711e9199442382225a9e39e7dbb3c4ad8dc6b3cb51eb49b5141
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.6.2
4
+
5
+ Bug fix:
6
+
7
+ - Fix crash when sidekik job has `retry` key but not `retry_count`. See [#346](https://github.com/rollbar/rollbar-gem/pull/346).
8
+
3
9
  ## 2.6.1
4
10
 
5
11
  Bug fix:
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)](https://travis-ci.org/rollbar/rollbar-gem/branches)
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.1'
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:
@@ -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"] && msg_or_context["retry_count"] < ::Rollbar.configuration.sidekiq_threshold
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)
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "2.6.1"
2
+ VERSION = "2.6.2"
3
3
  end
@@ -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.1
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-19 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails