rollbar 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +15 -6
- data/.github/workflows/ci.yml +15 -29
- data/.rubocop.yml +3 -0
- data/Gemfile +5 -9
- data/gemfiles/rails30.gemfile +0 -1
- data/gemfiles/rails31.gemfile +0 -1
- data/gemfiles/rails32.gemfile +0 -1
- data/gemfiles/rails40.gemfile +0 -1
- data/gemfiles/rails41.gemfile +0 -1
- data/gemfiles/rails42.gemfile +0 -1
- data/gemfiles/rails50.gemfile +0 -2
- data/gemfiles/rails51.gemfile +0 -2
- data/gemfiles/rails52.gemfile +3 -5
- data/gemfiles/rails60.gemfile +3 -5
- data/gemfiles/rails61.gemfile +4 -6
- data/gemfiles/rails70.gemfile +52 -0
- data/lib/rollbar/item/locals.rb +2 -0
- data/lib/rollbar/middleware/js/json_value.rb +15 -5
- data/lib/rollbar/middleware/js.rb +3 -4
- data/lib/rollbar/notifier/trace_with_bindings.rb +9 -1
- data/lib/rollbar/plugins/sidekiq/plugin.rb +2 -1
- data/lib/rollbar/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 898aba48030cbc9188c24d90690293f5059d06d21ea0761554f48b9ceb807874
|
4
|
+
data.tar.gz: 37c571e1b393777a03d11079c443a01b561391652b6a7e5fb1ed6064f0a69754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92de62decca92c82e7db0f1c0d4ef525141e0e9e64418fa465a671c5571206312dcd5ed675b7c1e6a9c40cf714c684eabdfdd5648efd30d39ea0f9c073206dbb
|
7
|
+
data.tar.gz: cd5d1bd81a5514686ad7ae72cc2c1aca30a09580fb57dbbb518ec37353ad94a8719594b6fd53d1620bd742fab6e96772a3cd8106d98510f3fed249de838f5c01
|
@@ -1,14 +1,23 @@
|
|
1
1
|
## Description of the change
|
2
2
|
|
3
|
-
>
|
3
|
+
> Please include a summary of the change and which issues are fixed.
|
4
|
+
> Please also include relevant motivation and context.
|
5
|
+
|
4
6
|
## Type of change
|
7
|
+
|
5
8
|
- [ ] Bug fix (non-breaking change that fixes an issue)
|
6
9
|
- [ ] New feature (non-breaking change that adds functionality)
|
7
10
|
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
11
|
+
- [ ] Maintenance
|
12
|
+
- [ ] New release
|
8
13
|
|
9
14
|
## Related issues
|
10
15
|
|
11
|
-
>
|
16
|
+
> Shortcut stories and GitHub issues (delete irrelevant)
|
17
|
+
|
18
|
+
- Fix [SC-]
|
19
|
+
- Fix #1
|
20
|
+
|
12
21
|
## Checklists
|
13
22
|
|
14
23
|
### Development
|
@@ -17,9 +26,9 @@
|
|
17
26
|
- [ ] The code changed/added as part of this pull request has been covered with tests
|
18
27
|
- [ ] All tests related to the changed code pass in development
|
19
28
|
|
20
|
-
### Code review
|
29
|
+
### Code review
|
21
30
|
|
22
|
-
- [ ]
|
23
|
-
- [ ] "Ready for review" label attached to the PR and reviewers
|
31
|
+
- [ ] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
|
32
|
+
- [ ] "Ready for review" label attached to the PR and reviewers assigned
|
33
|
+
- [ ] Issue from task tracker has a link to this pull request
|
24
34
|
- [ ] Changes have been reviewed by at least one other engineer
|
25
|
-
- [ ] Issue from task tracker has a link to this pull request
|
data/.github/workflows/ci.yml
CHANGED
@@ -11,42 +11,26 @@ jobs:
|
|
11
11
|
runs-on: ubuntu-18.04
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
|
-
ruby-version: [2.
|
14
|
+
ruby-version: [2.5.3, 2.6.0, 2.6.6, 2.7.2]
|
15
15
|
gemfile:
|
16
|
-
- gemfiles/rails42.gemfile
|
17
16
|
- gemfiles/rails50.gemfile
|
18
17
|
- gemfiles/rails51.gemfile
|
19
18
|
- gemfiles/rails52.gemfile
|
20
19
|
- gemfiles/rails60.gemfile
|
21
20
|
- gemfiles/rails61.gemfile
|
22
|
-
|
23
|
-
- gemfile: gemfiles/
|
24
|
-
ruby-version:
|
25
|
-
- gemfile: gemfiles/
|
26
|
-
ruby-version:
|
21
|
+
include:
|
22
|
+
- gemfile: gemfiles/rails70.gemfile
|
23
|
+
ruby-version: 3.1.1
|
24
|
+
- gemfile: gemfiles/rails70.gemfile
|
25
|
+
ruby-version: 3.0.3
|
26
|
+
- gemfile: gemfiles/rails61.gemfile
|
27
|
+
ruby-version: 3.0.3
|
27
28
|
- gemfile: gemfiles/rails42.gemfile
|
28
|
-
ruby-version: 2.
|
29
|
+
ruby-version: 2.4.5
|
29
30
|
- gemfile: gemfiles/rails42.gemfile
|
30
|
-
ruby-version: 2.7.2
|
31
|
-
- gemfile: gemfiles/rails52.gemfile
|
32
|
-
ruby-version: 2.2.10
|
33
|
-
- gemfile: gemfiles/rails60.gemfile
|
34
|
-
ruby-version: 2.2.10
|
35
|
-
- gemfile: gemfiles/rails60.gemfile
|
36
|
-
ruby-version: 2.3.0
|
37
|
-
- gemfile: gemfiles/rails60.gemfile
|
38
31
|
ruby-version: 2.3.8
|
39
|
-
- gemfile: gemfiles/
|
40
|
-
ruby-version: 2.4.5
|
41
|
-
- gemfile: gemfiles/rails61.gemfile
|
32
|
+
- gemfile: gemfiles/rails42.gemfile
|
42
33
|
ruby-version: 2.2.10
|
43
|
-
- gemfile: gemfiles/rails61.gemfile
|
44
|
-
ruby-version: 2.3.0
|
45
|
-
- gemfile: gemfiles/rails61.gemfile
|
46
|
-
ruby-version: 2.3.8
|
47
|
-
- gemfile: gemfiles/rails61.gemfile
|
48
|
-
ruby-version: 2.4.5
|
49
|
-
include:
|
50
34
|
- gemfile: gemfiles/rails41.gemfile
|
51
35
|
ruby-version: 2.3.0
|
52
36
|
- gemfile: gemfiles/rails41.gemfile
|
@@ -67,8 +51,6 @@ jobs:
|
|
67
51
|
ruby-version: 2.0.0
|
68
52
|
- gemfile: gemfiles/rails30.gemfile
|
69
53
|
ruby-version: 2.0.0
|
70
|
-
- gemfile: gemfiles/rails61.gemfile
|
71
|
-
ruby-version: 3.0.0
|
72
54
|
|
73
55
|
steps:
|
74
56
|
- uses: actions/checkout@v2
|
@@ -115,4 +97,8 @@ jobs:
|
|
115
97
|
bundle install --jobs 4 --retry 3
|
116
98
|
|
117
99
|
- name: Rspec
|
118
|
-
run:
|
100
|
+
run: |
|
101
|
+
export BUNDLE_GEMFILE=${{ matrix.gemfile }}
|
102
|
+
bundle config path vendor/bundle
|
103
|
+
bundle config gemfile ${{ matrix.gemfile }}
|
104
|
+
bundle exec rspec
|
data/.rubocop.yml
CHANGED
@@ -46,6 +46,9 @@ Naming/MethodParameterName:
|
|
46
46
|
# like `db` and `io`. So, short names really can be useful.
|
47
47
|
Enabled: false
|
48
48
|
|
49
|
+
Style/BracesAroundHashParameters:
|
50
|
+
EnforcedStyle: braces
|
51
|
+
|
49
52
|
Style/CaseEquality:
|
50
53
|
# The code uses `===` a lot to compare a regex to a string, but it's not clear that
|
51
54
|
# switching to `=~` is always safe, because in some cases the value could be a regex
|
data/Gemfile
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# This
|
1
|
+
# This Gemfile is compatible with Ruby 2.5.0 or greater. To test with
|
2
|
+
# earlier Rubies, use the appropriate Gemfile from the ./gemfiles/ dir.
|
3
|
+
ruby '>= 2.5.0'
|
2
4
|
|
3
5
|
source 'https://rubygems.org'
|
4
6
|
|
@@ -11,7 +13,7 @@ ENV['CURRENT_GEMFILE'] ||= __FILE__
|
|
11
13
|
|
12
14
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby')
|
13
15
|
|
14
|
-
GEMFILE_RAILS_VERSION = '~> 6.1.
|
16
|
+
GEMFILE_RAILS_VERSION = '~> 6.1.5'.freeze
|
15
17
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
16
18
|
gem 'appraisal'
|
17
19
|
gem 'jruby-openssl', :platform => :jruby
|
@@ -29,11 +31,7 @@ else
|
|
29
31
|
gem 'sqlite3', '~> 1.4', :platform => [:ruby, :mswin, :mingw]
|
30
32
|
end
|
31
33
|
|
32
|
-
|
33
|
-
gem 'sidekiq', '~> 2.13.0'
|
34
|
-
else
|
35
|
-
gem 'sidekiq', '>= 2.13.0'
|
36
|
-
end
|
34
|
+
gem 'sidekiq', '>= 6.4.0'
|
37
35
|
|
38
36
|
platforms :rbx do
|
39
37
|
gem 'minitest'
|
@@ -43,7 +41,6 @@ platforms :rbx do
|
|
43
41
|
end
|
44
42
|
|
45
43
|
gem 'capistrano', :require => false
|
46
|
-
gem 'codacy-coverage'
|
47
44
|
gem 'shoryuken'
|
48
45
|
gem 'simplecov'
|
49
46
|
gem 'sucker_punch', '~> 2.0'
|
@@ -69,7 +66,6 @@ else
|
|
69
66
|
gem 'delayed_job', '~> 4.1', :require => false
|
70
67
|
end
|
71
68
|
gem 'generator_spec'
|
72
|
-
gem 'girl_friday', '>= 0.11.1'
|
73
69
|
gem 'redis'
|
74
70
|
gem 'resque', '< 2.0.0'
|
75
71
|
gem 'rubocop', '1.15.0', :require => false # pin specific version, update manually
|
data/gemfiles/rails30.gemfile
CHANGED
data/gemfiles/rails31.gemfile
CHANGED
data/gemfiles/rails32.gemfile
CHANGED
data/gemfiles/rails40.gemfile
CHANGED
data/gemfiles/rails41.gemfile
CHANGED
data/gemfiles/rails42.gemfile
CHANGED
data/gemfiles/rails50.gemfile
CHANGED
@@ -29,7 +29,6 @@ platforms :rbx do
|
|
29
29
|
end
|
30
30
|
|
31
31
|
gem 'capistrano', :require => false
|
32
|
-
gem 'codacy-coverage'
|
33
32
|
gem 'simplecov', '<= 0.17.1'
|
34
33
|
gem 'sucker_punch', '~> 2.0'
|
35
34
|
|
@@ -39,7 +38,6 @@ gem 'rack', '2.1.2' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
|
|
39
38
|
gem 'database_cleaner', '~> 1.8.4'
|
40
39
|
gem 'delayed_job', :require => false
|
41
40
|
gem 'generator_spec'
|
42
|
-
gem 'girl_friday', '>= 0.11.1'
|
43
41
|
gem 'redis', '<= 3.3.5'
|
44
42
|
gem 'resque'
|
45
43
|
gem 'secure_headers', '~> 6.3.2', :require => false
|
data/gemfiles/rails51.gemfile
CHANGED
@@ -29,7 +29,6 @@ platforms :rbx do
|
|
29
29
|
end
|
30
30
|
|
31
31
|
gem 'capistrano', :require => false
|
32
|
-
gem 'codacy-coverage'
|
33
32
|
gem 'simplecov', '<= 0.17.1'
|
34
33
|
gem 'sucker_punch', '~> 2.0'
|
35
34
|
|
@@ -41,7 +40,6 @@ gem 'sinatra', :git => 'https://github.com/sinatra/sinatra', :tag => 'v2.0.8'
|
|
41
40
|
gem 'database_cleaner', '~> 1.8.4'
|
42
41
|
gem 'delayed_job', :require => false
|
43
42
|
gem 'generator_spec'
|
44
|
-
gem 'girl_friday', '>= 0.11.1'
|
45
43
|
gem 'redis', '<= 3.3.5'
|
46
44
|
gem 'resque'
|
47
45
|
gem 'secure_headers', '~> 6.3.2', :require => false
|
data/gemfiles/rails52.gemfile
CHANGED
@@ -17,7 +17,7 @@ gem 'rspec-support', '~> 3.8.0'
|
|
17
17
|
|
18
18
|
gem 'rake'
|
19
19
|
|
20
|
-
gem 'sidekiq', '>=
|
20
|
+
gem 'sidekiq', '>= 6.4.0'
|
21
21
|
|
22
22
|
platforms :rbx do
|
23
23
|
gem 'minitest'
|
@@ -28,14 +28,12 @@ end
|
|
28
28
|
|
29
29
|
gem 'sucker_punch', '~> 2.0'
|
30
30
|
|
31
|
-
# We need last sinatra that uses rack 2.x
|
32
|
-
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra'
|
31
|
+
# We need last sinatra that uses rack 2.x and ruby 2.5.x
|
32
|
+
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra', :tag =>'v2.1.0'
|
33
33
|
|
34
|
-
gem 'codacy-coverage'
|
35
34
|
gem 'database_cleaner'
|
36
35
|
gem 'delayed_job', :require => false
|
37
36
|
gem 'generator_spec'
|
38
|
-
gem 'girl_friday', '>= 0.11.1'
|
39
37
|
gem 'redis'
|
40
38
|
gem 'resque'
|
41
39
|
gem 'secure_headers', '~> 6.3.2', :require => false
|
data/gemfiles/rails60.gemfile
CHANGED
@@ -13,7 +13,7 @@ gem 'rspec-rails', '~> 4.0.2'
|
|
13
13
|
|
14
14
|
gem 'rake'
|
15
15
|
|
16
|
-
gem 'sidekiq', '>=
|
16
|
+
gem 'sidekiq', '>= 6.4.0'
|
17
17
|
|
18
18
|
platforms :rbx do
|
19
19
|
gem 'minitest'
|
@@ -24,14 +24,12 @@ end
|
|
24
24
|
|
25
25
|
gem 'sucker_punch', '~> 2.0'
|
26
26
|
|
27
|
-
# We need last sinatra that uses rack 2.x
|
28
|
-
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra'
|
27
|
+
# We need last sinatra that uses rack 2.x and ruby 2.5.x
|
28
|
+
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra', :tag =>'v2.1.0'
|
29
29
|
|
30
|
-
gem 'codacy-coverage'
|
31
30
|
gem 'database_cleaner'
|
32
31
|
gem 'delayed_job', '4.1.9', :require => false
|
33
32
|
gem 'generator_spec'
|
34
|
-
gem 'girl_friday', '>= 0.11.1'
|
35
33
|
gem 'redis'
|
36
34
|
gem 'resque'
|
37
35
|
gem 'secure_headers', '~> 6.3.2', :require => false
|
data/gemfiles/rails61.gemfile
CHANGED
@@ -6,14 +6,14 @@ is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == '
|
|
6
6
|
|
7
7
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
8
8
|
gem 'jruby-openssl', :platform => :jruby
|
9
|
-
gem 'rails', '~> 6.1.
|
9
|
+
gem 'rails', '~> 6.1.5'
|
10
10
|
gem 'sqlite3', '~> 1.4', :platform => [:ruby, :mswin, :mingw]
|
11
11
|
|
12
12
|
gem 'rspec-rails', '~> 4.0.2'
|
13
13
|
|
14
14
|
gem 'rake'
|
15
15
|
|
16
|
-
gem 'sidekiq', '>=
|
16
|
+
gem 'sidekiq', '>= 6.4.0'
|
17
17
|
|
18
18
|
platforms :rbx do
|
19
19
|
gem 'minitest'
|
@@ -24,14 +24,12 @@ end
|
|
24
24
|
|
25
25
|
gem 'sucker_punch', '~> 2.0'
|
26
26
|
|
27
|
-
# We need last sinatra that uses rack 2.x
|
28
|
-
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra'
|
27
|
+
# We need last sinatra that uses rack 2.x and ruby 2.5.x
|
28
|
+
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra', :tag =>'v2.1.0'
|
29
29
|
|
30
|
-
gem 'codacy-coverage'
|
31
30
|
gem 'database_cleaner'
|
32
31
|
gem 'delayed_job', '4.1.9', :require => false
|
33
32
|
gem 'generator_spec'
|
34
|
-
gem 'girl_friday', '>= 0.11.1'
|
35
33
|
gem 'redis'
|
36
34
|
gem 'resque'
|
37
35
|
gem 'secure_headers', '~> 6.3.2', :require => false
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rubygems/version'
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby')
|
6
|
+
|
7
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
8
|
+
gem 'jruby-openssl', :platform => :jruby
|
9
|
+
gem 'rails', '~> 7.0.2.3'
|
10
|
+
gem 'sqlite3', '~> 1.4', :platform => [:ruby, :mswin, :mingw]
|
11
|
+
|
12
|
+
gem 'rspec-rails', '~> 4.0.2'
|
13
|
+
|
14
|
+
gem 'rake'
|
15
|
+
|
16
|
+
gem 'sidekiq', '>= 6.4.0'
|
17
|
+
|
18
|
+
platforms :rbx do
|
19
|
+
gem 'minitest'
|
20
|
+
gem 'racc'
|
21
|
+
gem 'rubinius-developer_tools'
|
22
|
+
gem 'rubysl', '~> 2.0' if RUBY_VERSION.start_with?('2')
|
23
|
+
end
|
24
|
+
|
25
|
+
gem 'sucker_punch', '~> 2.0'
|
26
|
+
|
27
|
+
# We need last sinatra that uses rack 2.x and ruby 2.5.x
|
28
|
+
gem 'sinatra', :git => 'https://github.com/sinatra/sinatra', :tag =>'v2.1.0'
|
29
|
+
|
30
|
+
gem 'database_cleaner'
|
31
|
+
gem 'delayed_job', '4.1.10', :require => false
|
32
|
+
gem 'generator_spec'
|
33
|
+
gem 'redis'
|
34
|
+
gem 'resque'
|
35
|
+
gem 'secure_headers', '~> 6.3.2', :require => false
|
36
|
+
gem 'simplecov'
|
37
|
+
|
38
|
+
unless is_jruby
|
39
|
+
# JRuby doesn't support fork, which is required for this test helper.
|
40
|
+
gem 'rspec-command'
|
41
|
+
end
|
42
|
+
|
43
|
+
gem 'mime-types'
|
44
|
+
|
45
|
+
gem 'webmock', :require => false
|
46
|
+
|
47
|
+
gem 'aws-sdk-sqs'
|
48
|
+
gem 'shoryuken'
|
49
|
+
|
50
|
+
gem 'capistrano', :require => false
|
51
|
+
|
52
|
+
gemspec :path => '../'
|
data/lib/rollbar/item/locals.rb
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
# Allows a Ruby String to be used to
|
2
|
-
# when calling JSON#generate.
|
1
|
+
# Allows a Ruby String to be used to pass native Javascript objects/functions
|
2
|
+
# when calling JSON#generate with a Rollbar::JSON::JsOptionsState instance.
|
3
3
|
#
|
4
4
|
# Example:
|
5
|
-
# JSON.generate(
|
5
|
+
# JSON.generate(
|
6
|
+
# { foo: Rollbar::JSON::Value.new('function(){ alert("bar") }') },
|
7
|
+
# Rollbar::JSON::JsOptionsState.new
|
8
|
+
# )
|
9
|
+
#
|
6
10
|
# => '{"foo":function(){ alert(\"bar\") }}'
|
7
11
|
#
|
8
12
|
# MUST use the Ruby JSON encoder, as in the example. The ActiveSupport encoder,
|
@@ -11,6 +15,8 @@
|
|
11
15
|
#
|
12
16
|
module Rollbar
|
13
17
|
module JSON
|
18
|
+
class JsOptionsState < ::JSON::State; end
|
19
|
+
|
14
20
|
class Value # :nodoc:
|
15
21
|
attr_accessor :value
|
16
22
|
|
@@ -18,8 +24,12 @@ module Rollbar
|
|
18
24
|
@value = value
|
19
25
|
end
|
20
26
|
|
21
|
-
def to_json(
|
22
|
-
value
|
27
|
+
def to_json(opts = {})
|
28
|
+
# Return the raw value if this is from the js middleware
|
29
|
+
return value if opts.class == Rollbar::JSON::JsOptionsState
|
30
|
+
|
31
|
+
# Otherwise convert to a string
|
32
|
+
%Q["#{value}"]
|
23
33
|
end
|
24
34
|
end
|
25
35
|
end
|
@@ -141,7 +141,7 @@ module Rollbar
|
|
141
141
|
|
142
142
|
# MUST use the Ruby JSON encoder (JSON#generate).
|
143
143
|
# See lib/rollbar/middleware/js/json_value
|
144
|
-
json = ::JSON.generate(js_config)
|
144
|
+
json = ::JSON.generate(js_config, Rollbar::JSON::JsOptionsState.new)
|
145
145
|
|
146
146
|
script_tag("var _rollbarConfig = #{json};", env)
|
147
147
|
end
|
@@ -166,10 +166,9 @@ module Rollbar
|
|
166
166
|
def script_tag(content, env)
|
167
167
|
nonce = rails5_nonce(env) || secure_headers_nonce(env)
|
168
168
|
script_tag_content = if nonce
|
169
|
-
"\n<script
|
170
|
-
"nonce=\"#{nonce}\">#{content}</script>"
|
169
|
+
"\n<script nonce=\"#{nonce}\">#{content}</script>"
|
171
170
|
else
|
172
|
-
"\n<script
|
171
|
+
"\n<script>#{content}</script>"
|
173
172
|
end
|
174
173
|
|
175
174
|
html_safe_if_needed(script_tag_content)
|
@@ -55,13 +55,21 @@ module Rollbar
|
|
55
55
|
|
56
56
|
def frame(trace)
|
57
57
|
{
|
58
|
-
:binding => trace
|
58
|
+
:binding => binding(trace),
|
59
59
|
:defined_class => trace.defined_class,
|
60
60
|
:method_id => trace.method_id,
|
61
61
|
:path => trace.path,
|
62
62
|
:lineno => trace.lineno
|
63
63
|
}
|
64
64
|
end
|
65
|
+
|
66
|
+
def binding(trace)
|
67
|
+
trace.binding
|
68
|
+
rescue StandardError
|
69
|
+
# Ruby internals will raise if we're on a Fiber,
|
70
|
+
# since bindings aren't valid on Fibers.
|
71
|
+
nil
|
72
|
+
end
|
65
73
|
end
|
66
74
|
end
|
67
75
|
end
|
@@ -50,7 +50,8 @@ module Rollbar
|
|
50
50
|
def self.scrub_params(params)
|
51
51
|
options = {
|
52
52
|
:params => params,
|
53
|
-
:config => Rollbar.configuration.scrub_fields
|
53
|
+
:config => Rollbar.configuration.scrub_fields,
|
54
|
+
:whitelist => Rollbar.configuration.scrub_whitelist
|
54
55
|
}
|
55
56
|
|
56
57
|
Rollbar::Scrubbers::Params.call(options)
|
data/lib/rollbar/version.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: 3.3.
|
4
|
+
version: 3.3.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: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Easy and powerful exception tracking for Ruby
|
14
14
|
email:
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- gemfiles/rails52.gemfile
|
49
49
|
- gemfiles/rails60.gemfile
|
50
50
|
- gemfiles/rails61.gemfile
|
51
|
+
- gemfiles/rails70.gemfile
|
51
52
|
- lib/generators/rollbar/rollbar_generator.rb
|
52
53
|
- lib/generators/rollbar/templates/initializer.erb
|
53
54
|
- lib/rails/rollbar_runner.rb
|