rollbar 2.14.0 → 2.14.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 +17 -9
- data/Gemfile +19 -16
- data/README.md +22 -7
- data/docs/configuration.md +6 -0
- data/gemfiles/rails30.gemfile +8 -5
- data/gemfiles/rails31.gemfile +15 -12
- data/gemfiles/rails32.gemfile +21 -17
- data/gemfiles/rails40.gemfile +21 -19
- data/gemfiles/rails41.gemfile +18 -15
- data/gemfiles/rails42.gemfile +28 -29
- data/gemfiles/rails50.gemfile +18 -14
- data/gemfiles/ruby_1_8_and_1_9_2.gemfile +16 -16
- data/lib/rollbar/configuration.rb +5 -1
- data/lib/rollbar/delay/delayed_job.rb +7 -1
- data/lib/rollbar/item.rb +1 -1
- data/lib/rollbar/scrubbers/params.rb +9 -3
- data/lib/rollbar/version.rb +1 -1
- data/spec/rollbar/item_spec.rb +12 -0
- data/spec/rollbar/scrubbers/params_spec.rb +18 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 683163caedab6002fbdf488ed4a8557ce5e659f8
|
4
|
+
data.tar.gz: 06688bd2b25a4d6fb40ecafca5324138f9493d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8002d75652ab7e743924b023f474823ee675030e1ee7a822e1a9c9e1c434cdefb43f90e807eeb54e20a9170d99738fad99874bf395b82e2aa1bb96fac5756ef
|
7
|
+
data.tar.gz: fa8fc357bc49991914df1016173479f87f7f19509d64ff25b4b5e610ccadf49421597423e93dcf9610ea2fdcdf584530c705d06000dbe8e2caabb729eb850296
|
data/CHANGELOG.md
CHANGED
@@ -1,24 +1,32 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 2.14.1
|
4
|
+
|
5
|
+
- Add host as a configuration options. See [#560](https://github.com/rollbar/rollbar-gem/pull/560).
|
6
|
+
- Scrub all values based on matched keys set in the configuration rather than only string values.
|
7
|
+
See [#567](https://github.com/rollbar/rollbar-gem/pull/567).
|
8
|
+
- Allow for a specification of the name of the queue for delayed_job. See
|
9
|
+
[#574](https://github.com/rollbar/rollbar-gem/pull/574).
|
10
|
+
|
3
11
|
## 2.14.0
|
4
12
|
|
5
13
|
Features:
|
6
14
|
|
7
|
-
- Add Rollbar::Middleware::Rack. See [#558](https://github.com/rollbar/rollbar-gem/pull/
|
8
|
-
- Send request body on DELETE request. See [#555](https://github.com/rollbar/rollbar-gem/pull/
|
15
|
+
- Add Rollbar::Middleware::Rack. See [#558](https://github.com/rollbar/rollbar-gem/pull/558).
|
16
|
+
- Send request body on DELETE request. See [#555](https://github.com/rollbar/rollbar-gem/pull/555).
|
9
17
|
|
10
18
|
Fixes:
|
11
19
|
|
12
|
-
- Fix validations plugin on Rails 5.0 with belong_to.See [#556](https://github.com/rollbar/rollbar-gem/pull/
|
13
|
-
- Remove few warnings when using minitest with rollbar installed. See [#557](https://github.com/rollbar/rollbar-gem/pull/
|
14
|
-
- Fix tests 1.9. See [#554](https://github.com/rollbar/rollbar-gem/pull/
|
20
|
+
- Fix validations plugin on Rails 5.0 with belong_to.See [#556](https://github.com/rollbar/rollbar-gem/pull/556).
|
21
|
+
- Remove few warnings when using minitest with rollbar installed. See [#557](https://github.com/rollbar/rollbar-gem/pull/557).
|
22
|
+
- Fix tests 1.9. See [#554](https://github.com/rollbar/rollbar-gem/pull/554).
|
15
23
|
|
16
24
|
Others:
|
17
25
|
|
18
|
-
- Updating readme. See [#552](https://github.com/rollbar/rollbar-gem/pull/
|
19
|
-
- Removed doctoc tag. See [#550](https://github.com/rollbar/rollbar-gem/pull/
|
20
|
-
- Adding info about Sidekiq and ActiveJob. See [#548](https://github.com/rollbar/rollbar-gem/pull/
|
21
|
-
- Fix wrong version number in Readme. See [#535](https://github.com/rollbar/rollbar-gem/pull/
|
26
|
+
- Updating readme. See [#552](https://github.com/rollbar/rollbar-gem/pull/552).
|
27
|
+
- Removed doctoc tag. See [#550](https://github.com/rollbar/rollbar-gem/pull/550).
|
28
|
+
- Adding info about Sidekiq and ActiveJob. See [#548](https://github.com/rollbar/rollbar-gem/pull/548).
|
29
|
+
- Fix wrong version number in Readme. See [#535](https://github.com/rollbar/rollbar-gem/pull/535).
|
22
30
|
|
23
31
|
## 2.13.3
|
24
32
|
|
data/Gemfile
CHANGED
@@ -1,36 +1,39 @@
|
|
1
1
|
# This file was generated by Appraisal
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
6
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem "rubysl", "~> 2.0", :platform => :rbx
|
12
|
-
gem "racc", :platform => :rbx
|
13
|
-
gem "minitest", :platform => :rbx
|
14
|
-
gem "rubinius-developer_tools", :platform => :rbx
|
15
|
-
gem "rails", "4.2.3"
|
16
|
-
gem 'rspec-rails', '~> 3.4'
|
7
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
8
|
+
gem 'appraisal'
|
9
|
+
gem 'jruby-openssl', :platform => :jruby
|
10
|
+
gem 'rails', '4.2.3'
|
17
11
|
gem 'rake'
|
12
|
+
gem 'rspec-rails', '~> 3.4'
|
13
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
18
14
|
|
19
15
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
20
16
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
21
17
|
|
18
|
+
platforms :rbx do
|
19
|
+
gem 'minitest'
|
20
|
+
gem 'racc'
|
21
|
+
gem 'rubinius-developer_tools'
|
22
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
23
|
+
end
|
24
|
+
|
22
25
|
if RUBY_VERSION.start_with?('1.9')
|
23
26
|
gem 'sucker_punch', '~> 1.0'
|
24
27
|
elsif RUBY_VERSION.start_with?('2')
|
25
28
|
gem 'sucker_punch', '~> 2.0'
|
26
29
|
end
|
27
30
|
|
28
|
-
gem 'sinatra'
|
29
|
-
gem 'resque'
|
30
|
-
gem 'delayed_job', :require => false
|
31
|
-
gem 'redis'
|
32
31
|
gem 'database_cleaner', '~> 1.0.0'
|
33
|
-
gem '
|
32
|
+
gem 'delayed_job', :require => false
|
34
33
|
gem 'generator_spec'
|
34
|
+
gem 'girl_friday', '>= 0.11.1'
|
35
|
+
gem 'redis'
|
36
|
+
gem 'resque'
|
37
|
+
gem 'sinatra'
|
35
38
|
|
36
39
|
gemspec
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rollbar [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.14.
|
1
|
+
# Rollbar [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v2.14.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.
|
@@ -169,7 +169,7 @@ Rollbar.configure do |config|
|
|
169
169
|
end
|
170
170
|
```
|
171
171
|
|
172
|
-
The `Hash` passed to `#js_options=` should have the same
|
172
|
+
The `Hash` passed to `#js_options=` should have the same available options that you can find in [Rollbar.js](https://github.com/rollbar/rollbar.js), using symbols or strings for the keys.
|
173
173
|
|
174
174
|
## Test your installation
|
175
175
|
|
@@ -424,18 +424,18 @@ And the following http header
|
|
424
424
|
|
425
425
|
If a request contains one of these fields, the value will be replaced with a ```"*"``` before being sent.
|
426
426
|
|
427
|
-
Additional
|
427
|
+
Additional params can be scrubbed by updating ```config.scrub_fields```:
|
428
428
|
|
429
429
|
```ruby
|
430
430
|
# scrub out the "user_password" field
|
431
|
-
|
431
|
+
config.scrub_fields |= [:user_password]
|
432
432
|
```
|
433
433
|
|
434
|
-
And ```
|
434
|
+
And ```config.scrub_headers```:
|
435
435
|
|
436
436
|
```ruby
|
437
437
|
# scrub out the "X-Access-Token" http header
|
438
|
-
|
438
|
+
config.scrub_headers |= ["X-Access-Token"]
|
439
439
|
```
|
440
440
|
|
441
441
|
If you want to obfuscate the user IP reported to the Rollbar API you can configure a secret to do it and a different IP address from the original will be reported:
|
@@ -457,6 +457,12 @@ end
|
|
457
457
|
|
458
458
|
In the previous example we are scrubbing the `key` value inside the session data.
|
459
459
|
|
460
|
+
If you would simply like to scrub all params, you can use `:scrub_all` like so:
|
461
|
+
|
462
|
+
```
|
463
|
+
config.scrub_fields = :scrub_all
|
464
|
+
```
|
465
|
+
|
460
466
|
|
461
467
|
## Including additional runtime data
|
462
468
|
|
@@ -785,6 +791,15 @@ Add the following in ```config/initializers/rollbar.rb```:
|
|
785
791
|
config.use_delayed_job
|
786
792
|
```
|
787
793
|
|
794
|
+
By default, an unnamed queue is used for processing jobs. If you wish to use a named queue, as
|
795
|
+
[described here](https://github.com/collectiveidea/delayed_job#named-queues), pass the name of the
|
796
|
+
queue as an option in the configuraton:
|
797
|
+
|
798
|
+
```ruby
|
799
|
+
config.use_delayed_job :queue => 'my_queue'
|
800
|
+
```
|
801
|
+
|
802
|
+
|
788
803
|
### Threading
|
789
804
|
|
790
805
|
Add the following in ```config/initializers/rollbar.rb```:
|
@@ -839,7 +854,7 @@ require 'rollbar/logger'
|
|
839
854
|
|
840
855
|
Rails.logger.extend(ActiveSupport::Logger.broadcast(Rollbar::Logger.new))
|
841
856
|
```
|
842
|
-
|
857
|
+
|
843
858
|
## Using with rollbar-agent
|
844
859
|
|
845
860
|
For even more asynchrony, you can configure the gem to write to a file instead of sending the payload to Rollbar servers directly. [rollbar-agent](https://github.com/rollbar/rollbar-agent) can then be hooked up to this file to actually send the payload across. To enable, add the following in ```config/initializers/rollbar.rb```:
|
data/docs/configuration.md
CHANGED
@@ -131,6 +131,12 @@ tracked by [rollbar-agent](https://github.com/rollbar/rollbar-agent).
|
|
131
131
|
Indicates which framework you're using. Common options include 'Rails',
|
132
132
|
'Sinatra', and 'Rack' to name a few.
|
133
133
|
|
134
|
+
### host
|
135
|
+
|
136
|
+
**Default** `nil`
|
137
|
+
|
138
|
+
The hostname (reported to Rollbar as `server.host`). When nil, the value of `Socket.gethostname` will be used.
|
139
|
+
|
134
140
|
### ignored_person_ids
|
135
141
|
|
136
142
|
**Default** `[]`
|
data/gemfiles/rails30.gemfile
CHANGED
@@ -8,11 +8,6 @@ gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
|
8
8
|
gem 'jruby-openssl', :platform => :jruby
|
9
9
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
10
10
|
gem 'appraisal', '= 1.0.2'
|
11
|
-
gem 'rubysl', '~> 2.0', :platform => :rbx
|
12
|
-
gem 'racc', :platform => :rbx
|
13
|
-
gem 'minitest', :platform => :rbx
|
14
|
-
gem 'rubysl-test-unit', :platform => :rbx
|
15
|
-
gem 'rubinius-developer_tools', :platform => :rbx
|
16
11
|
gem 'rails', '3.0.20'
|
17
12
|
gem 'hitimes', '< 1.2.2'
|
18
13
|
gem 'rake', '< 11'
|
@@ -22,6 +17,14 @@ gem 'celluloid', '< 0.17.0' if RUBY_VERSION == '1.9.2'
|
|
22
17
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
23
18
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
24
19
|
|
20
|
+
platforms :rbx do
|
21
|
+
gem 'minitest'
|
22
|
+
gem 'racc'
|
23
|
+
gem 'rubinius-developer_tools'
|
24
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
25
|
+
gem 'rubysl-test-unit'
|
26
|
+
end
|
27
|
+
|
25
28
|
if RUBY_VERSION.start_with?('1.9')
|
26
29
|
gem 'sucker_punch', '~> 1.0'
|
27
30
|
elsif RUBY_VERSION.start_with?('2')
|
data/gemfiles/rails31.gemfile
CHANGED
@@ -1,24 +1,27 @@
|
|
1
1
|
require 'rubygems/version'
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
6
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem
|
12
|
-
gem "racc", :platform => :rbx
|
13
|
-
gem "minitest", :platform => :rbx
|
14
|
-
gem "rubysl-test-unit", :platform => :rbx
|
15
|
-
gem "rubinius-developer_tools", :platform => :rbx
|
16
|
-
gem "rails", "3.1.12"
|
7
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
8
|
+
gem 'jruby-openssl', :platform => :jruby
|
9
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
10
|
+
gem 'appraisal', '= 1.0.2'
|
11
|
+
gem 'rails', '3.1.12'
|
17
12
|
gem 'rspec-rails', '~> 3.4'
|
18
13
|
gem 'rake'
|
19
14
|
|
20
15
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
21
16
|
|
17
|
+
platforms :rbx do
|
18
|
+
gem 'minitest'
|
19
|
+
gem 'racc'
|
20
|
+
gem 'rubinius-developer_tools'
|
21
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
22
|
+
gem 'rubysl-test-unit'
|
23
|
+
end
|
24
|
+
|
22
25
|
if RUBY_VERSION.start_with?('1.9')
|
23
26
|
gem 'sucker_punch'
|
24
27
|
elsif RUBY_VERSION.start_with?('2')
|
@@ -45,4 +48,4 @@ end
|
|
45
48
|
|
46
49
|
gem 'resque'
|
47
50
|
|
48
|
-
gemspec :path =>
|
51
|
+
gemspec :path => '../'
|
data/gemfiles/rails32.gemfile
CHANGED
@@ -1,40 +1,44 @@
|
|
1
1
|
require 'rubygems/version'
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
6
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem "appraisal"
|
12
|
-
gem "rubysl", "~> 2.0", :platform => :rbx
|
13
|
-
gem "racc", :platform => :rbx
|
14
|
-
gem "minitest", :platform => :rbx
|
15
|
-
gem "rubysl-test-unit", :platform => :rbx
|
16
|
-
gem "rubinius-developer_tools", :platform => :rbx
|
17
|
-
gem "rails", "3.2.22"
|
18
|
-
gem 'rspec-rails', '~> 3.4'
|
7
|
+
gem 'appraisal'
|
8
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
9
|
+
gem 'jruby-openssl', :platform => :jruby
|
10
|
+
gem 'rails', '3.2.22'
|
19
11
|
gem 'rake'
|
12
|
+
gem 'rspec-rails', '~> 3.4'
|
13
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
14
|
+
# Please see https://github.com/rspec/rspec-rails/issues/1273
|
15
|
+
gem 'test-unit'
|
20
16
|
|
21
17
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
22
18
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
23
19
|
|
20
|
+
platforms :rbx do
|
21
|
+
gem 'minitest'
|
22
|
+
gem 'racc'
|
23
|
+
gem 'rubinius-developer_tools'
|
24
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
25
|
+
gem 'rubysl-test-unit'
|
26
|
+
end
|
27
|
+
|
24
28
|
if RUBY_VERSION.start_with?('1.9')
|
25
29
|
gem 'sucker_punch', '~> 1.0'
|
26
30
|
elsif RUBY_VERSION.start_with?('2')
|
27
31
|
gem 'sucker_punch', '~> 2.0'
|
28
32
|
end
|
29
33
|
|
30
|
-
gem 'sinatra'
|
31
|
-
gem 'resque'
|
32
34
|
gem 'delayed_job', :require => false
|
33
35
|
gem 'redis'
|
36
|
+
gem 'resque'
|
37
|
+
gem 'sinatra'
|
34
38
|
|
35
39
|
gem 'database_cleaner', '~> 1.0.0'
|
36
|
-
gem 'girl_friday', '>= 0.11.1'
|
37
40
|
gem 'generator_spec'
|
41
|
+
gem 'girl_friday', '>= 0.11.1'
|
38
42
|
|
39
43
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
|
40
44
|
gem 'mime-types', '< 3.0'
|
@@ -46,4 +50,4 @@ end
|
|
46
50
|
|
47
51
|
gem 'resque'
|
48
52
|
|
49
|
-
gemspec :path =>
|
53
|
+
gemspec :path => '../'
|
data/gemfiles/rails40.gemfile
CHANGED
@@ -1,26 +1,30 @@
|
|
1
1
|
require 'rubygems/version'
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
6
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem "appraisal"
|
12
|
-
gem "rubysl", "~> 2.0", :platform => :rbx
|
13
|
-
gem "racc", :platform => :rbx
|
14
|
-
gem "minitest", :platform => :rbx
|
15
|
-
gem "rubysl-test-unit", :platform => :rbx
|
16
|
-
gem "rubinius-developer_tools", :platform => :rbx
|
17
|
-
gem "rails", "4.0.13"
|
18
|
-
gem 'rspec-rails', '~> 3.4'
|
7
|
+
gem 'appraisal'
|
8
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
9
|
+
gem 'jruby-openssl', :platform => :jruby
|
10
|
+
gem 'rails', '4.0.13'
|
19
11
|
gem 'rake'
|
12
|
+
gem 'rspec-rails', '~> 3.4'
|
13
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
14
|
+
# Please see https://github.com/rspec/rspec-rails/issues/1273
|
15
|
+
gem 'test-unit'
|
20
16
|
|
21
17
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
22
18
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
23
19
|
|
20
|
+
platforms :rbx do
|
21
|
+
gem 'minitest'
|
22
|
+
gem 'racc'
|
23
|
+
gem 'rubinius-developer_tools'
|
24
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
25
|
+
gem 'rubysl-test-unit'
|
26
|
+
end
|
27
|
+
|
24
28
|
if RUBY_VERSION.start_with?('1.9')
|
25
29
|
gem 'sucker_punch', '~> 1.0'
|
26
30
|
gem 'json', '~> 1.8'
|
@@ -29,14 +33,14 @@ elsif RUBY_VERSION.start_with?('2')
|
|
29
33
|
gem 'json', '~> 2.0'
|
30
34
|
end
|
31
35
|
|
32
|
-
gem 'sinatra'
|
33
|
-
gem 'resque'
|
34
36
|
gem 'delayed_job', :require => false
|
35
37
|
gem 'redis'
|
38
|
+
gem 'resque'
|
39
|
+
gem 'sinatra'
|
36
40
|
|
37
41
|
gem 'database_cleaner', '~> 1.0.0'
|
38
|
-
gem 'girl_friday', '>= 0.11.1'
|
39
42
|
gem 'generator_spec'
|
43
|
+
gem 'girl_friday', '>= 0.11.1'
|
40
44
|
|
41
45
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
|
42
46
|
gem 'mime-types', '< 3.0'
|
@@ -46,6 +50,4 @@ else
|
|
46
50
|
gem 'webmock', :require => false
|
47
51
|
end
|
48
52
|
|
49
|
-
|
50
|
-
|
51
|
-
gemspec :path => "../"
|
53
|
+
gemspec :path => '../'
|
data/gemfiles/rails41.gemfile
CHANGED
@@ -1,38 +1,41 @@
|
|
1
1
|
require 'rubygems/version'
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
6
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem "rubysl", "~> 2.0", :platform => :rbx
|
12
|
-
gem "racc", :platform => :rbx
|
13
|
-
gem "minitest", :platform => :rbx
|
14
|
-
gem "rubinius-developer_tools", :platform => :rbx
|
15
|
-
gem "rails", "4.1.12"
|
16
|
-
gem 'rspec-rails', '~> 3.4'
|
7
|
+
gem 'appraisal'
|
8
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
9
|
+
gem 'jruby-openssl', :platform => :jruby
|
10
|
+
gem 'rails', '4.1.12'
|
17
11
|
gem 'rake'
|
12
|
+
gem 'rspec-rails', '~> 3.4'
|
13
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
18
14
|
|
19
15
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
20
16
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
21
17
|
|
18
|
+
platforms :rbx do
|
19
|
+
gem 'minitest'
|
20
|
+
gem 'racc'
|
21
|
+
gem 'rubinius-developer_tools'
|
22
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
23
|
+
end
|
24
|
+
|
22
25
|
if RUBY_VERSION.start_with?('1.9')
|
23
26
|
gem 'sucker_punch', '~> 1.0'
|
24
27
|
elsif RUBY_VERSION.start_with?('2')
|
25
28
|
gem 'sucker_punch', '~> 2.0'
|
26
29
|
end
|
27
30
|
|
28
|
-
gem 'sinatra'
|
29
|
-
gem 'resque'
|
30
31
|
gem 'delayed_job', :require => false
|
31
32
|
gem 'redis'
|
33
|
+
gem 'resque'
|
34
|
+
gem 'sinatra'
|
32
35
|
|
33
36
|
gem 'database_cleaner', '~> 1.0.0'
|
34
|
-
gem 'girl_friday', '>= 0.11.1'
|
35
37
|
gem 'generator_spec'
|
38
|
+
gem 'girl_friday', '>= 0.11.1'
|
36
39
|
|
37
40
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
|
38
41
|
gem 'mime-types', '< 3.0'
|
@@ -44,4 +47,4 @@ end
|
|
44
47
|
|
45
48
|
gem 'resque'
|
46
49
|
|
47
|
-
gemspec :path =>
|
50
|
+
gemspec :path => '../'
|
data/gemfiles/rails42.gemfile
CHANGED
@@ -1,53 +1,52 @@
|
|
1
1
|
require 'rubygems/version'
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
|
+
is_not_jruby = !is_jruby
|
6
7
|
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem "rubysl", "~> 2.0", :platform => :rbx
|
12
|
-
gem "racc", :platform => :rbx
|
13
|
-
gem "minitest", :platform => :rbx
|
14
|
-
gem "rubinius-developer_tools", :platform => :rbx
|
15
|
-
gem "rails", "4.2.3"
|
16
|
-
gem 'rspec-rails', '~> 3.4'
|
8
|
+
gem 'appraisal'
|
9
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
10
|
+
gem 'jruby-openssl', :platform => :jruby
|
11
|
+
gem 'rails', '4.2.3'
|
17
12
|
gem 'rake'
|
13
|
+
gem 'rspec-rails', '~> 3.4'
|
14
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
18
15
|
|
19
16
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
20
17
|
|
21
|
-
|
22
|
-
gem '
|
23
|
-
|
24
|
-
gem '
|
18
|
+
platforms :rbx do
|
19
|
+
gem 'minitest'
|
20
|
+
gem 'racc'
|
21
|
+
gem 'rubinius-developer_tools'
|
22
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
25
23
|
end
|
26
24
|
|
27
|
-
if RUBY_VERSION.start_with?('2.4')
|
28
|
-
gem 'oj', '~> 2.16.0'
|
29
|
-
|
30
|
-
gem 'oj', '~> 2.12.14'
|
25
|
+
if RUBY_VERSION.start_with?('2.4') && is_not_jruby
|
26
|
+
gem 'oj', '~> 2.16.0'
|
27
|
+
elsif is_not_jruby
|
28
|
+
gem 'oj', '~> 2.12.14'
|
31
29
|
end
|
32
30
|
|
33
|
-
gem '
|
34
|
-
gem 'resque'
|
35
|
-
gem 'delayed_job', :require => false
|
36
|
-
gem 'redis'
|
31
|
+
gem 'codeclimate-test-reporter', :group => :test, :require => nil
|
37
32
|
gem 'database_cleaner', '~> 1.0.0'
|
38
|
-
gem '
|
33
|
+
gem 'delayed_job', :require => false
|
39
34
|
gem 'generator_spec'
|
40
|
-
gem '
|
35
|
+
gem 'girl_friday', '>= 0.11.1'
|
36
|
+
gem 'redis'
|
37
|
+
gem 'resque'
|
38
|
+
gem 'sinatra'
|
39
|
+
|
40
|
+
gem 'nokogiri', '~> 1.6.0' if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new('2.0')
|
41
41
|
|
42
42
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
|
43
43
|
gem 'mime-types', '< 3.0'
|
44
44
|
gem 'public_suffix', '< 1.5'
|
45
|
+
gem 'sucker_punch', '~> 1.0'
|
45
46
|
gem 'webmock', '< 2.3.0', :require => false
|
46
47
|
else
|
48
|
+
gem 'sucker_punch', '~> 2.0'
|
47
49
|
gem 'webmock', :require => false
|
48
50
|
end
|
49
51
|
|
50
|
-
|
51
|
-
gem 'resque'
|
52
|
-
|
53
|
-
gemspec :path => "../"
|
52
|
+
gemspec :path => '../'
|
data/gemfiles/rails50.gemfile
CHANGED
@@ -1,29 +1,33 @@
|
|
1
1
|
require 'rubygems/version'
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
6
|
|
7
|
-
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
8
|
-
gem 'jruby-openssl', :platform => :jruby
|
9
|
-
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
10
7
|
gem 'appraisal'
|
11
|
-
gem '
|
12
|
-
gem '
|
13
|
-
gem 'minitest', :platform => :rbx
|
14
|
-
gem 'rubinius-developer_tools', :platform => :rbx
|
8
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
9
|
+
gem 'jruby-openssl', :platform => :jruby
|
15
10
|
gem 'rails', '~> 5.0.0'
|
11
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
16
12
|
|
17
13
|
gem 'rspec-core', '~> 3.5.0.beta3'
|
18
14
|
gem 'rspec-rails', '~> 3.5.0.beta3'
|
19
15
|
gem 'rspec-support', '~> 3.5.0.beta3'
|
20
16
|
gem 'rspec-expectations', '~> 3.5.0.beta3'
|
21
17
|
gem 'rspec-mocks', '~> 3.5.0.beta3'
|
18
|
+
|
22
19
|
gem 'rake'
|
23
20
|
|
24
21
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
25
22
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
26
23
|
|
24
|
+
platforms :rbx do
|
25
|
+
gem 'minitest'
|
26
|
+
gem 'racc'
|
27
|
+
gem 'rubinius-developer_tools'
|
28
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
29
|
+
end
|
30
|
+
|
27
31
|
if RUBY_VERSION.start_with?('1.9')
|
28
32
|
gem 'sucker_punch', '~> 1.0'
|
29
33
|
elsif RUBY_VERSION.start_with?('2')
|
@@ -32,19 +36,19 @@ end
|
|
32
36
|
|
33
37
|
# We need last sinatra that uses rack 2.x
|
34
38
|
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra'
|
35
|
-
|
36
|
-
gem '
|
37
|
-
gem 'redis'
|
39
|
+
|
40
|
+
gem 'codeclimate-test-reporter', :group => :test, :require => nil
|
38
41
|
gem 'database_cleaner', '~> 1.x'
|
39
|
-
gem '
|
42
|
+
gem 'delayed_job', :require => false
|
40
43
|
gem 'generator_spec'
|
41
|
-
gem '
|
44
|
+
gem 'girl_friday', '>= 0.11.1'
|
45
|
+
gem 'redis'
|
46
|
+
gem 'resque'
|
42
47
|
|
43
48
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0')
|
44
49
|
gem 'mime-types', '< 3.0'
|
45
50
|
end
|
46
51
|
|
47
52
|
gem 'webmock', :require => false
|
48
|
-
gem 'resque'
|
49
53
|
|
50
54
|
gemspec :path => '../'
|
@@ -4,37 +4,39 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
|
6
6
|
|
7
|
-
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
8
|
-
gem 'jruby-openssl', :platform => :jruby
|
9
|
-
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
10
7
|
gem 'appraisal', '= 1.0.2'
|
11
|
-
gem '
|
12
|
-
gem '
|
13
|
-
gem 'minitest', :platform => :rbx
|
14
|
-
gem 'rubysl-test-unit', :platform => :rbx
|
15
|
-
gem 'rubinius-developer_tools', :platform => :rbx
|
16
|
-
gem 'rails', '3.0.20'
|
8
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
9
|
+
gem 'celluloid', '< 0.17.0' if RUBY_VERSION == '1.9.2'
|
17
10
|
gem 'hitimes', '< 1.2.2'
|
11
|
+
gem 'jruby-openssl', :platform => :jruby
|
12
|
+
gem 'rails', '3.0.20'
|
18
13
|
gem 'rake', '< 11'
|
19
14
|
gem 'rspec-rails', '>= 2.14.0'
|
20
|
-
gem '
|
15
|
+
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
|
21
16
|
|
22
17
|
gem 'oj', '~> 2.12.14' unless is_jruby
|
23
18
|
gem 'sidekiq', '>= 2.13.0' if RUBY_VERSION != '1.8.7'
|
24
19
|
|
20
|
+
platforms :rbx do
|
21
|
+
gem 'minitest'
|
22
|
+
gem 'racc'
|
23
|
+
gem 'rubinius-developer_tools'
|
24
|
+
gem 'rubysl', '~> 2.0' unless RUBY_VERSION.start_with?('1')
|
25
|
+
end
|
26
|
+
|
25
27
|
if RUBY_VERSION.start_with?('1.9')
|
26
28
|
gem 'sucker_punch', '~> 1.0'
|
27
29
|
elsif RUBY_VERSION.start_with?('2')
|
28
30
|
gem 'sucker_punch', '~> 2.0'
|
29
31
|
end
|
30
32
|
|
31
|
-
gem 'sinatra'
|
32
|
-
gem 'resque'
|
33
|
-
gem 'delayed_job', :require => false
|
34
|
-
gem 'redis'
|
35
33
|
gem 'database_cleaner', '~> 1.0.0'
|
34
|
+
gem 'delayed_job', :require => false
|
36
35
|
gem 'genspec', '= 0.2.8'
|
37
36
|
gem 'girl_friday', '>= 0.11.1'
|
37
|
+
gem 'redis'
|
38
|
+
gem 'resque'
|
39
|
+
gem 'sinatra'
|
38
40
|
|
39
41
|
ruby_version = RUBY_VERSION.dup
|
40
42
|
|
@@ -42,6 +44,4 @@ if Gem::Version.new(ruby_version) < Gem::Version.new('2.0')
|
|
42
44
|
gem 'mime-types', '< 3.0'
|
43
45
|
end
|
44
46
|
|
45
|
-
gem 'resque'
|
46
|
-
|
47
47
|
gemspec :path => '../'
|
@@ -24,6 +24,7 @@ module Rollbar
|
|
24
24
|
attr_accessor :filepath
|
25
25
|
attr_accessor :framework
|
26
26
|
attr_accessor :ignored_person_ids
|
27
|
+
attr_accessor :host
|
27
28
|
attr_writer :logger
|
28
29
|
attr_accessor :payload_options
|
29
30
|
attr_accessor :person_method
|
@@ -144,8 +145,11 @@ module Rollbar
|
|
144
145
|
self
|
145
146
|
end
|
146
147
|
|
147
|
-
def use_delayed_job
|
148
|
+
def use_delayed_job(options = {})
|
148
149
|
require 'rollbar/delay/delayed_job'
|
150
|
+
|
151
|
+
Rollbar::Delay::DelayedJob.queue = options[:queue] if options[:queue]
|
152
|
+
|
149
153
|
@use_async = true
|
150
154
|
@async_handler = Rollbar::Delay::DelayedJob
|
151
155
|
end
|
@@ -4,8 +4,14 @@ module Rollbar
|
|
4
4
|
# use DelayedJob in order to send the reports to the Rollbar API
|
5
5
|
class DelayedJob
|
6
6
|
class << self
|
7
|
+
attr_accessor :queue
|
8
|
+
|
7
9
|
def call(payload)
|
8
|
-
|
10
|
+
if queue
|
11
|
+
new.delay(:queue => queue).call(payload)
|
12
|
+
else
|
13
|
+
new.delay.call(payload)
|
14
|
+
end
|
9
15
|
end
|
10
16
|
end
|
11
17
|
|
data/lib/rollbar/item.rb
CHANGED
@@ -194,7 +194,7 @@ module Rollbar
|
|
194
194
|
|
195
195
|
def server_data
|
196
196
|
data = {
|
197
|
-
:host => Socket.gethostname
|
197
|
+
:host => configuration.host || Socket.gethostname
|
198
198
|
}
|
199
199
|
data[:root] = configuration.root.to_s if configuration.root
|
200
200
|
data[:branch] = configuration.branch if configuration.branch
|
@@ -53,14 +53,16 @@ module Rollbar
|
|
53
53
|
return scrub_array(params, options) if params.is_a?(Array)
|
54
54
|
|
55
55
|
params.to_hash.inject({}) do |result, (key, value)|
|
56
|
-
if
|
56
|
+
if fields_regex === Rollbar::Encoding.encode(key).to_s
|
57
|
+
result[key] = scrub_value(value)
|
58
|
+
elsif value.is_a?(Hash)
|
57
59
|
result[key] = scrub(value, options)
|
58
60
|
elsif value.is_a?(Array)
|
59
61
|
result[key] = scrub_array(value, options)
|
60
62
|
elsif skip_value?(value)
|
61
63
|
result[key] = "Skipped value of class '#{value.class.name}'"
|
62
|
-
elsif
|
63
|
-
result[key] =
|
64
|
+
elsif scrub_all
|
65
|
+
result[key] = scrub_value(value)
|
64
66
|
else
|
65
67
|
result[key] = rollbar_filtered_param_value(value)
|
66
68
|
end
|
@@ -75,6 +77,10 @@ module Rollbar
|
|
75
77
|
end
|
76
78
|
end
|
77
79
|
|
80
|
+
def scrub_value(value)
|
81
|
+
Rollbar::Scrubbers.scrub_value(value)
|
82
|
+
end
|
83
|
+
|
78
84
|
def rollbar_filtered_param_value(value)
|
79
85
|
if ATTACHMENT_CLASSES.include?(value.class.name)
|
80
86
|
begin
|
data/lib/rollbar/version.rb
CHANGED
data/spec/rollbar/item_spec.rb
CHANGED
@@ -585,6 +585,18 @@ describe Rollbar::Item do
|
|
585
585
|
payload['data'][:server][:root].should == '/path/to/root'
|
586
586
|
payload['data'][:server][:branch].should == 'master'
|
587
587
|
end
|
588
|
+
|
589
|
+
context 'with custom hostname' do
|
590
|
+
before do
|
591
|
+
configuration.host = host
|
592
|
+
end
|
593
|
+
|
594
|
+
let(:host) { 'my-custom-hostname' }
|
595
|
+
|
596
|
+
it 'sends the custom hostname' do
|
597
|
+
expect(payload['data'][:server][:host]).to be_eql(host)
|
598
|
+
end
|
599
|
+
end
|
588
600
|
end
|
589
601
|
|
590
602
|
context 'with ignored person ids' do
|
@@ -78,6 +78,10 @@ describe Rollbar::Scrubbers::Params do
|
|
78
78
|
end
|
79
79
|
|
80
80
|
context 'with nested Hash' do
|
81
|
+
let(:scrub_config) do
|
82
|
+
super().push(:other)
|
83
|
+
end
|
84
|
+
|
81
85
|
let(:params) do
|
82
86
|
{
|
83
87
|
:foo => 'bar',
|
@@ -85,6 +89,9 @@ describe Rollbar::Scrubbers::Params do
|
|
85
89
|
:secret => 'the-secret',
|
86
90
|
:password => 'the-password',
|
87
91
|
:password_confirmation => 'the-password'
|
92
|
+
},
|
93
|
+
:other => {
|
94
|
+
:param => 'filtered'
|
88
95
|
}
|
89
96
|
}
|
90
97
|
end
|
@@ -95,7 +102,8 @@ describe Rollbar::Scrubbers::Params do
|
|
95
102
|
:secret => /\*+/,
|
96
103
|
:password => /\*+/,
|
97
104
|
:password_confirmation => /\*+/
|
98
|
-
}
|
105
|
+
},
|
106
|
+
:other => /\*+/
|
99
107
|
}
|
100
108
|
end
|
101
109
|
|
@@ -105,6 +113,10 @@ describe Rollbar::Scrubbers::Params do
|
|
105
113
|
end
|
106
114
|
|
107
115
|
context 'with nested Array' do
|
116
|
+
let(:scrub_config) do
|
117
|
+
super().push(:other)
|
118
|
+
end
|
119
|
+
|
108
120
|
let(:params) do
|
109
121
|
{
|
110
122
|
:foo => 'bar',
|
@@ -112,6 +124,9 @@ describe Rollbar::Scrubbers::Params do
|
|
112
124
|
:secret => 'the-secret',
|
113
125
|
:password => 'the-password',
|
114
126
|
:password_confirmation => 'the-password'
|
127
|
+
}],
|
128
|
+
:other => [{
|
129
|
+
:param => 'filtered'
|
115
130
|
}]
|
116
131
|
}
|
117
132
|
end
|
@@ -122,7 +137,8 @@ describe Rollbar::Scrubbers::Params do
|
|
122
137
|
:secret => /\*+/,
|
123
138
|
:password => /\*+/,
|
124
139
|
:password_confirmation => /\*+/
|
125
|
-
}]
|
140
|
+
}],
|
141
|
+
:other => /\*+/
|
126
142
|
}
|
127
143
|
end
|
128
144
|
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.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:
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
description: Easy and powerful exception tracking for Ruby
|
@@ -32,11 +32,11 @@ executables:
|
|
32
32
|
extensions: []
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
35
|
+
- .codeclimate.yml
|
36
|
+
- .gitignore
|
37
|
+
- .gitmodules
|
38
|
+
- .rubocop.yml
|
39
|
+
- .travis.yml
|
40
40
|
- Appraisals
|
41
41
|
- CHANGELOG.md
|
42
42
|
- Gemfile
|
@@ -270,17 +270,17 @@ require_paths:
|
|
270
270
|
- lib
|
271
271
|
required_ruby_version: !ruby/object:Gem::Requirement
|
272
272
|
requirements:
|
273
|
-
- -
|
273
|
+
- - '>='
|
274
274
|
- !ruby/object:Gem::Version
|
275
275
|
version: '0'
|
276
276
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
277
|
requirements:
|
278
|
-
- -
|
278
|
+
- - '>='
|
279
279
|
- !ruby/object:Gem::Version
|
280
280
|
version: '0'
|
281
281
|
requirements: []
|
282
282
|
rubyforge_project:
|
283
|
-
rubygems_version: 2.
|
283
|
+
rubygems_version: 2.6.10
|
284
284
|
signing_key:
|
285
285
|
specification_version: 4
|
286
286
|
summary: Reports exceptions to Rollbar
|