rollbar 2.0.2 → 2.1.0
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 +4 -4
- data/.travis.yml +31 -23
- data/CHANGELOG.md +6 -0
- data/README.md +14 -2
- data/gemfiles/rails32.gemfile +2 -1
- data/gemfiles/rails40.gemfile +1 -0
- data/gemfiles/rails41.gemfile +1 -1
- data/gemfiles/rails42.gemfile +15 -0
- data/lib/rollbar.rb +1 -0
- data/lib/rollbar/active_job.rb +10 -0
- data/lib/rollbar/version.rb +1 -1
- data/rollbar.gemspec +1 -1
- data/spec/controllers/home_controller_spec.rb +10 -10
- data/spec/requests/home_spec.rb +2 -2
- data/spec/rollbar/active_job_spec.rb +29 -0
- data/spec/rollbar/logger_proxy_spec.rb +2 -3
- data/spec/rollbar/truncation/min_body_strategy_spec.rb +3 -3
- data/spec/rollbar_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 141bbcb7b184a6e0a7330e36a03410eb8f7c27bb
|
4
|
+
data.tar.gz: bd98279d9c4ce8374777422c9f039f2d12679dea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 293b307609d27587058a3d08092de6354080e00b583bedce97efe65536d6350d98337fa39ad894fdd70059ea59022182bc50b534e59e82c6976447e7c564f441
|
7
|
+
data.tar.gz: d02ab75d127bee8545fc54060ed93bb5bad3a259d8ee05afa6a85c313cd3f736c0c950008f30cccd9c8ef67d226edaf898d39a4db44dc79675640c7843f561f0
|
data/.travis.yml
CHANGED
@@ -12,10 +12,9 @@ rvm:
|
|
12
12
|
- 1.9.3
|
13
13
|
- 2.0.0
|
14
14
|
- 2.1.0
|
15
|
-
-
|
15
|
+
- 2.2.2
|
16
16
|
- jruby-18mode
|
17
17
|
- jruby-19mode
|
18
|
-
- jruby-head
|
19
18
|
- rbx
|
20
19
|
jdk:
|
21
20
|
- openjdk6
|
@@ -90,61 +89,70 @@ matrix:
|
|
90
89
|
jdk: oraclejdk8
|
91
90
|
|
92
91
|
# TODO: comment as to why these are excluded
|
92
|
+
- rvm: 1.8.7
|
93
|
+
gemfile: gemfiles/rails31.gemfile
|
94
|
+
- rvm: 1.8.7
|
95
|
+
gemfile: gemfiles/rails32.gemfile
|
93
96
|
- rvm: 1.8.7
|
94
97
|
gemfile: gemfiles/rails40.gemfile
|
95
98
|
- rvm: 1.8.7
|
96
99
|
gemfile: gemfiles/rails41.gemfile
|
97
100
|
- rvm: 1.8.7
|
98
|
-
gemfile: gemfiles/
|
99
|
-
- rvm: 1.
|
101
|
+
gemfile: gemfiles/rails42.gemfile
|
102
|
+
- rvm: 1.9.2
|
100
103
|
gemfile: gemfiles/rails31.gemfile
|
104
|
+
- rvm: 1.9.2
|
105
|
+
gemfile: gemfiles/rails32.gemfile
|
101
106
|
- rvm: 1.9.2
|
102
107
|
gemfile: gemfiles/rails40.gemfile
|
103
108
|
- rvm: 1.9.2
|
104
109
|
gemfile: gemfiles/rails41.gemfile
|
105
110
|
- rvm: 1.9.2
|
106
|
-
gemfile: gemfiles/
|
107
|
-
- rvm:
|
108
|
-
gemfile: gemfiles/rails31.gemfile
|
109
|
-
- rvm: 1.9.3
|
110
|
-
gemfile: gemfiles/rails41.gemfile
|
111
|
-
- rvm: ruby-head
|
111
|
+
gemfile: gemfiles/rails42.gemfile
|
112
|
+
- rvm: 2.2.2
|
112
113
|
gemfile: gemfiles/rails30.gemfile
|
113
|
-
- rvm:
|
114
|
+
- rvm: 2.2.2
|
114
115
|
gemfile: gemfiles/rails31.gemfile
|
115
|
-
- rvm: ruby-head
|
116
|
-
gemfile: gemfiles/rails40.gemfile
|
117
|
-
- rvm: ruby-head
|
118
|
-
gemfile: gemfiles/rails41.gemfile
|
119
116
|
- rvm: jruby-18mode
|
120
117
|
gemfile: gemfiles/rails30.gemfile
|
121
118
|
- rvm: jruby-18mode
|
122
119
|
gemfile: gemfiles/rails31.gemfile
|
120
|
+
- rvm: jruby-18mode
|
121
|
+
gemfile: gemfiles/rails32.gemfile
|
123
122
|
- rvm: jruby-18mode
|
124
123
|
gemfile: gemfiles/rails40.gemfile
|
125
124
|
- rvm: jruby-18mode
|
126
125
|
gemfile: gemfiles/rails41.gemfile
|
126
|
+
- rvm: jruby-18mode
|
127
|
+
gemfile: gemfiles/rails42.gemfile
|
127
128
|
- rvm: jruby-19mode
|
128
129
|
gemfile: gemfiles/rails30.gemfile
|
129
130
|
- rvm: jruby-19mode
|
130
131
|
gemfile: gemfiles/rails31.gemfile
|
131
132
|
- rvm: jruby-19mode
|
132
|
-
gemfile: gemfiles/
|
133
|
+
gemfile: gemfiles/rails32.gemfile
|
133
134
|
- rvm: jruby-19mode
|
134
|
-
gemfile: gemfiles/rails41.gemfile
|
135
|
-
- rvm: jruby-head
|
136
|
-
gemfile: gemfiles/rails30.gemfile
|
137
|
-
- rvm: jruby-head
|
138
|
-
gemfile: gemfiles/rails31.gemfile
|
139
|
-
- rvm: jruby-head
|
140
135
|
gemfile: gemfiles/rails40.gemfile
|
141
|
-
- rvm: jruby-
|
136
|
+
- rvm: jruby-19mode
|
142
137
|
gemfile: gemfiles/rails41.gemfile
|
138
|
+
- rvm: jruby-19mode
|
139
|
+
gemfile: gemfiles/rails42.gemfile
|
143
140
|
- rvm: rbx
|
144
141
|
gemfile: gemfiles/rails30.gemfile
|
145
142
|
- rvm: rbx
|
146
143
|
gemfile: gemfiles/rails31.gemfile
|
144
|
+
- rvm: rbx
|
145
|
+
gemfile: gemfiles/rails32.gemfile
|
147
146
|
- rvm: rbx
|
148
147
|
gemfile: gemfiles/rails40.gemfile
|
149
148
|
- rvm: rbx
|
150
149
|
gemfile: gemfiles/rails41.gemfile
|
150
|
+
- rvm: rbx
|
151
|
+
gemfile: gemfiles/rails42.gemfile
|
152
|
+
gemfile:
|
153
|
+
- gemfiles/rails30.gemfile
|
154
|
+
- gemfiles/rails31.gemfile
|
155
|
+
- gemfiles/rails32.gemfile
|
156
|
+
- gemfiles/rails40.gemfile
|
157
|
+
- gemfiles/rails41.gemfile
|
158
|
+
- gemfiles/rails42.gemfile
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 2.1.0
|
4
|
+
|
5
|
+
New feature:
|
6
|
+
|
7
|
+
- If you use `ActiveJob`, you can now include the `Rollbar::ActiveJob` module into your ActiveJob classes. Then, errors happening in your jobs will be automatically reported to Rollbar.
|
8
|
+
|
3
9
|
## 2.0.2
|
4
10
|
|
5
11
|
Bug fixes:
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rollbar notifier for Ruby [](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.0
|
15
|
+
gem 'rollbar', '~> 2.1.0
|
16
16
|
```
|
17
17
|
|
18
18
|
And then execute:
|
@@ -400,6 +400,18 @@ Rollbar.configure do |config|
|
|
400
400
|
end
|
401
401
|
```
|
402
402
|
|
403
|
+
## ActiveJob integration
|
404
|
+
|
405
|
+
Include the module `Rollbar::ActiveJob` in you jobs to report any uncaught errors in a job to Rollbar.
|
406
|
+
|
407
|
+
```ruby
|
408
|
+
class YourAwesomeJob < ActiveJob::Base
|
409
|
+
include Rollbar::ActiveJob
|
410
|
+
end
|
411
|
+
```
|
412
|
+
|
413
|
+
If you need to customize the reporting write your own `rescue_from` handler instead of using the `Rollbar::ActiveJob` module.
|
414
|
+
|
403
415
|
## Delayed::Job integration
|
404
416
|
|
405
417
|
If `delayed_job` is defined, Rollbar will automatically install a plugin that reports any uncaught exceptions that occur in jobs.
|
data/gemfiles/rails32.gemfile
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
+
gem "test-unit" # Please see https://github.com/rspec/rspec-rails/issues/1273
|
5
6
|
gem "sqlite3", :platform => [:ruby, :mswin, :mingw]
|
6
7
|
gem "jruby-openssl", :platform => :jruby
|
7
8
|
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
|
@@ -11,6 +12,6 @@ gem "racc", :platform => :rbx
|
|
11
12
|
gem "minitest", :platform => :rbx
|
12
13
|
gem "rubysl-test-unit", :platform => :rbx
|
13
14
|
gem "rubinius-developer_tools", :platform => :rbx
|
14
|
-
gem "rails", "3.2.
|
15
|
+
gem "rails", "3.2.22"
|
15
16
|
|
16
17
|
gemspec :path => "../"
|
data/gemfiles/rails40.gemfile
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
+
gem "test-unit" # Please see https://github.com/rspec/rspec-rails/issues/1273
|
5
6
|
gem "sqlite3", :platform => [:ruby, :mswin, :mingw]
|
6
7
|
gem "jruby-openssl", :platform => :jruby
|
7
8
|
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
|
data/gemfiles/rails41.gemfile
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "sqlite3", :platform => [:ruby, :mswin, :mingw]
|
6
|
+
gem "jruby-openssl", :platform => :jruby
|
7
|
+
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
|
8
|
+
gem "appraisal"
|
9
|
+
gem "rubysl", "~> 2.0", :platform => :rbx
|
10
|
+
gem "racc", :platform => :rbx
|
11
|
+
gem "minitest", :platform => :rbx
|
12
|
+
gem "rubinius-developer_tools", :platform => :rbx
|
13
|
+
gem "rails", "4.2.3"
|
14
|
+
|
15
|
+
gemspec :path => "../"
|
data/lib/rollbar.rb
CHANGED
@@ -723,6 +723,7 @@ module Rollbar
|
|
723
723
|
|
724
724
|
require 'rollbar/active_record_extension' if defined?(ActiveRecord)
|
725
725
|
require 'rollbar/sidekiq' if defined?(Sidekiq)
|
726
|
+
require 'rollbar/active_job' if defined?(ActiveJob)
|
726
727
|
require 'rollbar/goalie' if defined?(Goalie)
|
727
728
|
require 'rollbar/rack' if defined?(Rack)
|
728
729
|
require 'rollbar/rake' if defined?(Rake)
|
data/lib/rollbar/version.rb
CHANGED
data/rollbar.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Rails plugin to catch and send exceptions to Rollbar}
|
8
8
|
gem.executables = ['rollbar-rails-runner']
|
9
9
|
gem.summary = %q{Reports exceptions to Rollbar}
|
10
|
-
gem.homepage = "https://
|
10
|
+
gem.homepage = "https://rollbar.com"
|
11
11
|
gem.license = 'MIT'
|
12
12
|
|
13
13
|
gem.files = `git ls-files`.split($\)
|
@@ -160,7 +160,7 @@ describe HomeController do
|
|
160
160
|
end
|
161
161
|
|
162
162
|
it "should save controller and action in the payload body" do
|
163
|
-
post 'report_exception'
|
163
|
+
post '/report_exception'
|
164
164
|
|
165
165
|
route = controller.send(:rollbar_request_data)[:route]
|
166
166
|
|
@@ -183,7 +183,7 @@ describe HomeController do
|
|
183
183
|
:secret_token => "f6805fea1cae0fb79c5e63bbdcd12bc6",
|
184
184
|
}
|
185
185
|
|
186
|
-
post 'report_exception', params
|
186
|
+
post '/report_exception', params
|
187
187
|
|
188
188
|
filtered = Rollbar.last_report[:request][:params]
|
189
189
|
|
@@ -206,7 +206,7 @@ describe HomeController do
|
|
206
206
|
:notpass => "hidden"
|
207
207
|
}
|
208
208
|
|
209
|
-
post 'report_exception', params
|
209
|
+
post '/report_exception', params
|
210
210
|
|
211
211
|
filtered = Rollbar.last_report[:request][:params]
|
212
212
|
|
@@ -231,14 +231,14 @@ describe HomeController do
|
|
231
231
|
it "should raise a NameError and report an exception after a GET" do
|
232
232
|
logger_mock.should_receive(:info).with('[Rollbar] Success').once
|
233
233
|
|
234
|
-
get 'report_exception'
|
234
|
+
get '/report_exception'
|
235
235
|
response.should be_success
|
236
236
|
end
|
237
237
|
|
238
238
|
it "should raise a NameError and have PUT params in the reported exception" do
|
239
239
|
logger_mock.should_receive(:info).with('[Rollbar] Success')
|
240
240
|
|
241
|
-
put 'report_exception', :putparam => "putval"
|
241
|
+
put '/report_exception', :putparam => "putval"
|
242
242
|
|
243
243
|
Rollbar.last_report.should_not be_nil
|
244
244
|
Rollbar.last_report[:request][:params]["putparam"].should == "putval"
|
@@ -260,7 +260,7 @@ describe HomeController do
|
|
260
260
|
@request.env["HTTP_ACCEPT"] = "application/json"
|
261
261
|
|
262
262
|
params = { :jsonparam => 'jsonval' }.to_json
|
263
|
-
post 'report_exception', params, { 'CONTENT_TYPE' => 'application/json' }
|
263
|
+
post '/report_exception', params, { 'CONTENT_TYPE' => 'application/json' }
|
264
264
|
|
265
265
|
Rollbar.last_report.should_not be_nil
|
266
266
|
Rollbar.last_report[:request][:params]['jsonparam'].should == 'jsonval'
|
@@ -271,7 +271,7 @@ describe HomeController do
|
|
271
271
|
it "should raise an uncaught exception and report a message" do
|
272
272
|
logger_mock.should_receive(:info).with('[Rollbar] Success').once
|
273
273
|
|
274
|
-
expect { get 'cause_exception' }.to raise_exception
|
274
|
+
expect { get '/cause_exception' }.to raise_exception
|
275
275
|
end
|
276
276
|
|
277
277
|
context 'show_exceptions' do
|
@@ -298,7 +298,7 @@ describe HomeController do
|
|
298
298
|
it "middleware should catch the exception and only report to rollbar once" do
|
299
299
|
logger_mock.should_receive(:info).with('[Rollbar] Success').once
|
300
300
|
|
301
|
-
get 'cause_exception'
|
301
|
+
get '/cause_exception'
|
302
302
|
end
|
303
303
|
|
304
304
|
it 'should not fail if the controller doesnt contain the person method' do
|
@@ -306,7 +306,7 @@ describe HomeController do
|
|
306
306
|
config.person_method = 'invalid_method'
|
307
307
|
end
|
308
308
|
|
309
|
-
get 'cause_exception'
|
309
|
+
get '/cause_exception'
|
310
310
|
end
|
311
311
|
|
312
312
|
context 'with logged user' do
|
@@ -318,7 +318,7 @@ describe HomeController do
|
|
318
318
|
before { cookies[:session_id] = user.id }
|
319
319
|
|
320
320
|
it 'sends the current user data' do
|
321
|
-
put 'report_exception', 'foo' => 'bar'
|
321
|
+
put '/report_exception', 'foo' => 'bar'
|
322
322
|
|
323
323
|
person_data = Rollbar.last_report[:person]
|
324
324
|
|
data/spec/requests/home_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe HomeController do
|
|
12
12
|
it "should report uncaught exceptions" do
|
13
13
|
# only seems to be relevant in 3.1 and 3.2
|
14
14
|
if ::Rails::VERSION::STRING.starts_with? "3.1" or ::Rails::VERSION::STRING.starts_with? "3.2"
|
15
|
-
expect{ get 'current_user', nil, :cookie => '8%B' }.to raise_exception
|
15
|
+
expect { get '/current_user', nil, :cookie => '8%B' }.to raise_exception
|
16
16
|
|
17
17
|
Rollbar.last_report.should_not be_nil
|
18
18
|
|
@@ -37,7 +37,7 @@ describe HomeController do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
it "should report uncaught exceptions" do
|
40
|
-
expect { get 'current_user' }.to raise_exception
|
40
|
+
expect { get '/current_user' }.to raise_exception
|
41
41
|
|
42
42
|
body = Rollbar.last_report[:body]
|
43
43
|
trace = body[:trace] && body[:trace] || body[:trace_chain][0]
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require 'active_support/rescuable'
|
4
|
+
require 'rollbar/active_job'
|
5
|
+
|
6
|
+
describe Rollbar::ActiveJob do
|
7
|
+
class TestJob
|
8
|
+
# To mix in rescue_from
|
9
|
+
include ActiveSupport::Rescuable
|
10
|
+
include Rollbar::ActiveJob
|
11
|
+
|
12
|
+
attr_reader :job_id
|
13
|
+
|
14
|
+
def perform(exception, job_id)
|
15
|
+
@job_id = job_id
|
16
|
+
# ActiveJob calls rescue_with_handler when a job raises an exception
|
17
|
+
rescue_with_handler(exception) || raise(exception)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
let(:exception) { StandardError.new('oh no') }
|
22
|
+
let(:job_id) { "123" }
|
23
|
+
|
24
|
+
it "reports the error to Rollbar" do
|
25
|
+
expected_params = { :job => "TestJob", :job_id => job_id }
|
26
|
+
expect(Rollbar).to receive(:error).with(exception, expected_params)
|
27
|
+
expect { TestJob.new.perform(exception, job_id) }.not_to raise_error
|
28
|
+
end
|
29
|
+
end
|
@@ -24,11 +24,10 @@ describe Rollbar::LoggerProxy do
|
|
24
24
|
|
25
25
|
describe '#call' do
|
26
26
|
context 'if the logger fails' do
|
27
|
-
let(:exception) { StandardError.new }
|
28
27
|
it 'doesnt raise' do
|
29
|
-
allow(logger).to receive(:info).and_raise(
|
28
|
+
allow(logger).to receive(:info).and_raise(StandardError.new)
|
30
29
|
|
31
|
-
expect { subject.log('info', message) }.not_to raise_error
|
30
|
+
expect { subject.log('info', message) }.not_to raise_error
|
32
31
|
end
|
33
32
|
end
|
34
33
|
end
|
@@ -17,7 +17,7 @@ describe Rollbar::Truncation::MinBodyStrategy do
|
|
17
17
|
result = Rollbar::JSON.load(described_class.call(payload))
|
18
18
|
|
19
19
|
trace = result['data']['body']['trace']
|
20
|
-
expect(trace['frames']).to
|
20
|
+
expect(trace['frames'].count).to eq 2
|
21
21
|
expect(trace['exception']['message']).to be_eql('a' * 255)
|
22
22
|
end
|
23
23
|
end
|
@@ -36,10 +36,10 @@ describe Rollbar::Truncation::MinBodyStrategy do
|
|
36
36
|
result = Rollbar::JSON.load(described_class.call(payload))
|
37
37
|
|
38
38
|
traces = result['data']['body']['trace_chain']
|
39
|
-
expect(traces[0]['frames']).to
|
39
|
+
expect(traces[0]['frames'].count).to eq 2
|
40
40
|
expect(traces[0]['exception']['message']).to be_eql('a' * 255)
|
41
41
|
|
42
|
-
expect(traces[1]['frames']).to
|
42
|
+
expect(traces[1]['frames'].count).to eq 2
|
43
43
|
expect(traces[1]['exception']['message']).to be_eql('a' * 255)
|
44
44
|
end
|
45
45
|
end
|
data/spec/rollbar_spec.rb
CHANGED
@@ -444,7 +444,7 @@ describe Rollbar do
|
|
444
444
|
|
445
445
|
payload = notifier.send(:build_payload, 'info', 'message', nil, nil)
|
446
446
|
|
447
|
-
payload['data'][:project_package_paths].
|
447
|
+
expect(payload['data'][:project_package_paths].count).to eq 2
|
448
448
|
end
|
449
449
|
|
450
450
|
it 'should include a code_version' do
|
@@ -943,7 +943,7 @@ describe Rollbar do
|
|
943
943
|
filepaths = last_report[:body][:trace][:frames].map {|frame| frame[:filename] }.reverse
|
944
944
|
|
945
945
|
expect(filepaths[0]).not_to include(gem_lib_dir)
|
946
|
-
expect(filepaths.any? {|filepath| filepath.include?(gem_dir) }).to
|
946
|
+
expect(filepaths.any? {|filepath| filepath.include?(gem_dir) }).to eq true
|
947
947
|
end
|
948
948
|
|
949
949
|
it 'should return the exception data with a uuid, on platforms with SecureRandom' do
|
@@ -1361,7 +1361,7 @@ describe Rollbar do
|
|
1361
1361
|
it 'should have use the Rails logger when configured to do so' do
|
1362
1362
|
configure
|
1363
1363
|
expect(Rollbar.send(:logger)).to be_kind_of(Rollbar::LoggerProxy)
|
1364
|
-
expect(Rollbar.send(:logger).object).
|
1364
|
+
expect(Rollbar.send(:logger).object).to eq ::Rails.logger
|
1365
1365
|
end
|
1366
1366
|
|
1367
1367
|
it 'should use the default_logger when no logger is set' do
|
@@ -1720,7 +1720,7 @@ describe Rollbar do
|
|
1720
1720
|
describe '#custom_data' do
|
1721
1721
|
before do
|
1722
1722
|
Rollbar.configure do |config|
|
1723
|
-
config.custom_data_method = proc { raise 'this-will-raise' }
|
1723
|
+
config.custom_data_method = proc { raise 'this-will-raise' }
|
1724
1724
|
end
|
1725
1725
|
|
1726
1726
|
expect_any_instance_of(Rollbar::Notifier).to receive(:error).and_return(report_data)
|
data/spec/spec_helper.rb
CHANGED
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.0
|
4
|
+
version: 2.1.0
|
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-
|
11
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -203,10 +203,12 @@ files:
|
|
203
203
|
- gemfiles/rails32.gemfile
|
204
204
|
- gemfiles/rails40.gemfile
|
205
205
|
- gemfiles/rails41.gemfile
|
206
|
+
- gemfiles/rails42.gemfile
|
206
207
|
- lib/generators/rollbar/rollbar_generator.rb
|
207
208
|
- lib/generators/rollbar/templates/initializer.rb
|
208
209
|
- lib/rails/rollbar_runner.rb
|
209
210
|
- lib/rollbar.rb
|
211
|
+
- lib/rollbar/active_job.rb
|
210
212
|
- lib/rollbar/active_record_extension.rb
|
211
213
|
- lib/rollbar/better_errors.rb
|
212
214
|
- lib/rollbar/capistrano.rb
|
@@ -309,6 +311,7 @@ files:
|
|
309
311
|
- spec/fixtures/payloads/sample.trace_chain.json
|
310
312
|
- spec/generators/rollbar/rollbar_generator_spec.rb
|
311
313
|
- spec/requests/home_spec.rb
|
314
|
+
- spec/rollbar/active_job_spec.rb
|
312
315
|
- spec/rollbar/configuration_spec.rb
|
313
316
|
- spec/rollbar/delay/girl_friday_spec.rb
|
314
317
|
- spec/rollbar/delay/resque_spec.rb
|
@@ -335,7 +338,7 @@ files:
|
|
335
338
|
- spec/support/get_ip_raising.rb
|
336
339
|
- spec/support/notifier_helpers.rb
|
337
340
|
- spec/support/shared_contexts.rb
|
338
|
-
homepage: https://
|
341
|
+
homepage: https://rollbar.com
|
339
342
|
licenses:
|
340
343
|
- MIT
|
341
344
|
metadata: {}
|
@@ -418,6 +421,7 @@ test_files:
|
|
418
421
|
- spec/fixtures/payloads/sample.trace_chain.json
|
419
422
|
- spec/generators/rollbar/rollbar_generator_spec.rb
|
420
423
|
- spec/requests/home_spec.rb
|
424
|
+
- spec/rollbar/active_job_spec.rb
|
421
425
|
- spec/rollbar/configuration_spec.rb
|
422
426
|
- spec/rollbar/delay/girl_friday_spec.rb
|
423
427
|
- spec/rollbar/delay/resque_spec.rb
|