rollbar 2.1.0 → 2.1.1

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: 141bbcb7b184a6e0a7330e36a03410eb8f7c27bb
4
- data.tar.gz: bd98279d9c4ce8374777422c9f039f2d12679dea
3
+ metadata.gz: 9654ef4b39ccff0c61d5829b0ed24cf4fe8358ff
4
+ data.tar.gz: b966e415ba2c051cef36b0b7fad7c5ce5f3e2b9c
5
5
  SHA512:
6
- metadata.gz: 293b307609d27587058a3d08092de6354080e00b583bedce97efe65536d6350d98337fa39ad894fdd70059ea59022182bc50b534e59e82c6976447e7c564f441
7
- data.tar.gz: d02ab75d127bee8545fc54060ed93bb5bad3a259d8ee05afa6a85c313cd3f736c0c950008f30cccd9c8ef67d226edaf898d39a4db44dc79675640c7843f561f0
6
+ metadata.gz: 63715716194409340fd44702f874148a7a22f490eb86cf947a62f3bb5429f55f6891d055f056f4e17cdd3356412c7071d0d4bd4ca17900328ff7c4f2d7198ce7
7
+ data.tar.gz: 8834975d7fed4de30c536664589d600d1647fe79e106f3c05e7674a7414009eecf0eccf97c768e387622950c27a256626e3ad575b8680876ac3fdc0b6ca6f4ae
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.1.1
4
+
5
+ Bug fix:
6
+
7
+ - Don't swallow exceptions on `Rollbar::ActiveJob` module. With this fix we don't break the ActiveJob backends' features like retries.
8
+
3
9
  ## 2.1.0
4
10
 
5
11
  New feature:
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.1.0)](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.1.1)](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.1.0
15
+ gem 'rollbar', '~> 2.1.1
16
16
  ```
17
17
 
18
18
  And then execute:
@@ -1,9 +1,10 @@
1
1
  module Rollbar
2
- # Report any uncaught errors in a job to Rollbar
2
+ # Report any uncaught errors in a job to Rollbar and reraise
3
3
  module ActiveJob
4
4
  def self.included(base)
5
5
  base.send :rescue_from, Exception do |exception|
6
6
  Rollbar.error(exception, :job => self.class.name, :job_id => job_id)
7
+ raise exception
7
8
  end
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -24,6 +24,10 @@ describe Rollbar::ActiveJob do
24
24
  it "reports the error to Rollbar" do
25
25
  expected_params = { :job => "TestJob", :job_id => job_id }
26
26
  expect(Rollbar).to receive(:error).with(exception, expected_params)
27
- expect { TestJob.new.perform(exception, job_id) }.not_to raise_error
27
+ TestJob.new.perform(exception, job_id) rescue nil
28
+ end
29
+
30
+ it "reraises the error so the job backend can handle the failure and retry" do
31
+ expect { TestJob.new.perform(exception, job_id) }.to raise_error exception
28
32
  end
29
33
  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: 2.1.0
4
+ version: 2.1.1
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-07-28 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails