rollbar 2.15.1 → 2.15.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 +4 -0
- data/README.md +1 -1
- data/lib/rollbar/delay/shoryuken.rb +3 -3
- data/lib/rollbar/middleware/js.rb +2 -1
- data/lib/rollbar/tasks/rollbar.cap +1 -1
- data/lib/rollbar/version.rb +1 -1
- data/spec/rollbar/middleware/js_spec.rb +21 -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: 437007ddf3cda14f45d74e3bec9c4b16a0249345
|
4
|
+
data.tar.gz: 51d29703e1202335322a5386516e8ae3f85c48b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e670cee39adebd4ecef829babd67c3db917ea2060bc3da396af5de471b3c24d59a046e48023922033c209b9def0b5717ff6340adb94cabad288f761cd36f51c
|
7
|
+
data.tar.gz: 2bdaab51831ea7398ad86aed457da70db6f8106599528ce81bfe5aa5cf9a2bfe422c5e451eaf2ac96c1caf032d509f7c6dd9d22d00cebd095753207ebb9b38b7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rollbar [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.15.
|
1
|
+
# Rollbar [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.15.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.
|
@@ -8,13 +8,13 @@ module Rollbar
|
|
8
8
|
class Shoryuken
|
9
9
|
include ::Shoryuken::Worker
|
10
10
|
|
11
|
-
# not allowing bulk, to not double-report rollbars if one of them failed in bunch.
|
12
|
-
shoryuken_options :queue => queue_name, :auto_delete => true, :body_parser => :json, :retry_intervals => [60, 180, 360, 120_0, 360_0, 186_00]
|
13
|
-
|
14
11
|
def self.queue_name
|
15
12
|
"rollbar_#{Rollbar.configuration.environment}"
|
16
13
|
end
|
17
14
|
|
15
|
+
# not allowing bulk, to not double-report rollbars if one of them failed in bunch.
|
16
|
+
shoryuken_options :queue => queue_name, :auto_delete => true, :body_parser => :json, :retry_intervals => [60, 180, 360, 120_0, 360_0, 186_00]
|
17
|
+
|
18
18
|
## responsible for performing job. - payload is a json parsed body of the message.
|
19
19
|
def perform(_sqs_message, payload)
|
20
20
|
Rollbar.process_from_async_handler(payload)
|
@@ -2,6 +2,7 @@ require 'rack'
|
|
2
2
|
require 'rack/response'
|
3
3
|
|
4
4
|
require 'rollbar/request_data_extractor'
|
5
|
+
require 'rollbar/util'
|
5
6
|
|
6
7
|
module Rollbar
|
7
8
|
module Middleware
|
@@ -107,7 +108,7 @@ module Rollbar
|
|
107
108
|
end
|
108
109
|
|
109
110
|
def config_js_tag(env)
|
110
|
-
js_config = config[:options]
|
111
|
+
js_config = Rollbar::Util.deep_copy(config[:options])
|
111
112
|
|
112
113
|
add_person_data(js_config, env)
|
113
114
|
|
@@ -36,7 +36,7 @@ end
|
|
36
36
|
|
37
37
|
namespace :load do
|
38
38
|
task :defaults do
|
39
|
-
set :rollbar_user, Proc.new { ENV['USER'] || ENV['USERNAME'] }
|
39
|
+
set :rollbar_user, Proc.new { fetch :local_user, ENV['USER'] || ENV['USERNAME'] }
|
40
40
|
set :rollbar_env, Proc.new { fetch :rails_env, 'production' }
|
41
41
|
set :rollbar_token, Proc.new { abort "Please specify the Rollbar access token, set :rollbar_token, 'your token'" }
|
42
42
|
set :rollbar_role, Proc.new { :app }
|
data/lib/rollbar/version.rb
CHANGED
@@ -253,6 +253,12 @@ END
|
|
253
253
|
let(:headers) do
|
254
254
|
{ 'Content-Type' => content_type }
|
255
255
|
end
|
256
|
+
let(:config) do
|
257
|
+
{
|
258
|
+
:enabled => true,
|
259
|
+
:options => { :foo => :bar, :payload => { :a => 42 } }
|
260
|
+
}
|
261
|
+
end
|
256
262
|
let(:env) do
|
257
263
|
{
|
258
264
|
'rollbar.person_data' => {
|
@@ -266,6 +272,7 @@ END
|
|
266
272
|
{
|
267
273
|
:foo => :bar,
|
268
274
|
:payload => {
|
275
|
+
:a => 42,
|
269
276
|
:person => {
|
270
277
|
:id => 100,
|
271
278
|
:username => 'foo',
|
@@ -295,6 +302,20 @@ END
|
|
295
302
|
|
296
303
|
expect(new_body).not_to include('person')
|
297
304
|
end
|
305
|
+
|
306
|
+
it 'doesnt include old data when called a second time' do
|
307
|
+
_, _, _ = subject.call({
|
308
|
+
'rollbar.person_data' => {
|
309
|
+
:id => 100,
|
310
|
+
:username => 'foo',
|
311
|
+
:email => 'foo@bar.com'
|
312
|
+
}
|
313
|
+
})
|
314
|
+
_, _, response = subject.call(env)
|
315
|
+
new_body = response.body.join
|
316
|
+
|
317
|
+
expect(new_body).not_to include('person')
|
318
|
+
end
|
298
319
|
end
|
299
320
|
end
|
300
321
|
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.15.
|
4
|
+
version: 2.15.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: 2017-
|
11
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|