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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/rollbar/active_job.rb +2 -1
- data/lib/rollbar/version.rb +1 -1
- data/spec/rollbar/active_job_spec.rb +5 -1
- 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: 9654ef4b39ccff0c61d5829b0ed24cf4fe8358ff
|
4
|
+
data.tar.gz: b966e415ba2c051cef36b0b7fad7c5ce5f3e2b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63715716194409340fd44702f874148a7a22f490eb86cf947a62f3bb5429f55f6891d055f056f4e17cdd3356412c7071d0d4bd4ca17900328ff7c4f2d7198ce7
|
7
|
+
data.tar.gz: 8834975d7fed4de30c536664589d600d1647fe79e106f3c05e7674a7414009eecf0eccf97c768e387622950c27a256626e3ad575b8680876ac3fdc0b6ca6f4ae
|
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.1.
|
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.
|
15
|
+
gem 'rollbar', '~> 2.1.1
|
16
16
|
```
|
17
17
|
|
18
18
|
And then execute:
|
data/lib/rollbar/active_job.rb
CHANGED
@@ -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
|
data/lib/rollbar/version.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2015-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|