rollbar 3.0.1 → 3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: d8602aedfaab8e609560a1869d54f8ec2c2b95a8e7465eff3cff78084d431c7f
4
- data.tar.gz: 6ca1099d0f5447551ebcfbdeaa7e9d918bbc898851c56d9cee4f4aad1be20d96
2
+ SHA1:
3
+ metadata.gz: ba8aea4a40e218a0ad7286be5650c74d821d5c9b
4
+ data.tar.gz: 3bd1e7c7d318492601b313a59433bf07e4fdc31e
5
5
  SHA512:
6
- metadata.gz: 844fa4a5ce4465edca84afc734a757f11274ea795ff8cca20b748f59e385dd5e3680da913418e49a46d3a344ac3b4583c381cc2f5c5ba4fa4fbea0d979cd3d70
7
- data.tar.gz: 5fdd265cc302be7c79d5d5c05a9ff2f724a0b18387c2a58ca11d6c25d02a44543be43e3aea8038efc2b378e39f7d6c73a961530245119ce37cde181757e63934
6
+ metadata.gz: cb2915a7bd1b0e16470b9e2dec96f06c4b3ff9554cf9d375705731264687c906e9eb8a8ba7a3eb27ec11b9dd7eaa592b9923fec9764d55c2d9947539af934a3f
7
+ data.tar.gz: 020b420cd16ba5643167860cf35a75440b870fa480841d062ee1efb567b709dce2bc646e8238318ed4d4b5381f83729136eeb66ea8635adda037cad6191df478
@@ -0,0 +1,101 @@
1
+ name: Rollbar-gem CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-18.04
12
+ strategy:
13
+ matrix:
14
+ ruby-version: [2.2.10, 2.3.0, 2.3.8, 2.4.5, 2.5.3, 2.6.0]
15
+ gemfile:
16
+ - gemfiles/rails42.gemfile
17
+ - gemfiles/rails50.gemfile
18
+ - gemfiles/rails51.gemfile
19
+ - gemfiles/rails52.gemfile
20
+ - gemfiles/rails60.gemfile
21
+ exclude:
22
+ - gemfile: gemfiles/rails42.gemfile
23
+ ruby-version: 2.6.0
24
+ - gemfile: gemfiles/rails52.gemfile
25
+ ruby-version: 2.2.10
26
+ - gemfile: gemfiles/rails60.gemfile
27
+ ruby-version: 2.2.10
28
+ - gemfile: gemfiles/rails60.gemfile
29
+ ruby-version: 2.3.0
30
+ - gemfile: gemfiles/rails60.gemfile
31
+ ruby-version: 2.3.8
32
+ - gemfile: gemfiles/rails60.gemfile
33
+ ruby-version: 2.4.5
34
+ include:
35
+ - gemfile: gemfiles/rails41.gemfile
36
+ ruby-version: 2.3.0
37
+ - gemfile: gemfiles/rails41.gemfile
38
+ ruby-version: 2.2.10
39
+ - gemfile: gemfiles/rails41.gemfile
40
+ ruby-version: 2.1.9
41
+ - gemfile: gemfiles/rails40.gemfile
42
+ ruby-version: 2.3.0
43
+ - gemfile: gemfiles/rails40.gemfile
44
+ ruby-version: 2.2.10
45
+ - gemfile: gemfiles/rails40.gemfile
46
+ ruby-version: 2.1.9
47
+ - gemfile: gemfiles/rails32.gemfile
48
+ ruby-version: 2.2.10
49
+ - gemfile: gemfiles/rails32.gemfile
50
+ ruby-version: 2.1.9
51
+ - gemfile: gemfiles/rails31.gemfile
52
+ ruby-version: 2.0.0
53
+ - gemfile: gemfiles/rails30.gemfile
54
+ ruby-version: 2.0.0
55
+
56
+ steps:
57
+ - uses: actions/checkout@v2
58
+ with:
59
+ submodules: recursive
60
+
61
+ - name: Start Redis
62
+ uses: supercharge/redis-github-action@1.1.0
63
+ with:
64
+ redis-version: 4
65
+
66
+ - name: Setup Ruby > 2.0
67
+ uses: ruby/setup-ruby@v1
68
+ if: ${{ matrix.ruby-version != '2.0.0' }}
69
+ with:
70
+ ruby-version: ${{ matrix.ruby-version }}
71
+
72
+ - name: Setup Ruby 2.0.0
73
+ if: ${{ matrix.ruby-version == '2.0.0' }}
74
+ timeout-minutes: 15
75
+ run: |
76
+ sudo apt-get update -y
77
+ sudo apt-get install -y libssl1.0-dev
78
+ wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.gz
79
+ tar xvfz ruby-2.0.0-p648.tar.gz
80
+ cd ruby-2.0.0-p648
81
+ ./configure && make && sudo make install-nodoc
82
+
83
+ - name: Ruby 2.0.0, install bundler
84
+ if: ${{ matrix.ruby-version == '2.0.0' }}
85
+ run: sudo gem install bundler -v 1.17.3
86
+
87
+ - name: Rails 4.2 ensure bundler version
88
+ if: ${{ matrix.gemfile == 'gemfiles/rails42.gemfile' }}
89
+ run: |
90
+ gem uninstall bundler
91
+ gem install bundler -v '< 2.0.0'
92
+
93
+ - name: Bundle Install
94
+ run: |
95
+ export BUNDLE_GEMFILE=${{ matrix.gemfile }}
96
+ bundle config path vendor/bundle
97
+ bundle config gemfile ${{ matrix.gemfile }}
98
+ bundle install --jobs 4 --retry 3
99
+
100
+ - name: Rspec
101
+ run: bundle exec rspec
@@ -51,7 +51,7 @@ Style/Documentation:
51
51
  # As is, we currently add :nodoc: if anything at all.
52
52
  Enabled: false
53
53
 
54
- Naming/UncommunicativeMethodParamName:
54
+ Naming/MethodParameterName:
55
55
  # It's possible to configure this cop to allow just about anything, but what's the point.
56
56
  # The default min length of a param name is 3, but the the default whitelist includes things
57
57
  # like `db` and `io`. So, short names really can be useful.
data/Gemfile CHANGED
@@ -66,7 +66,7 @@ gem 'generator_spec'
66
66
  gem 'girl_friday', '>= 0.11.1'
67
67
  gem 'redis'
68
68
  gem 'resque', '< 2.0.0'
69
- gem 'rubocop', :require => false
69
+ gem 'rubocop', '~> 0.93.0', :require => false
70
70
  gem 'rubocop-performance', :require => false
71
71
  gem 'sinatra'
72
72
  gem 'webmock', :require => false
@@ -2,21 +2,16 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
7
  gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
15
8
  gem 'jruby-openssl', :platform => :jruby
16
9
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
17
- gem 'appraisal', '= 1.0.2'
18
10
  gem 'rails', '3.0.20'
19
11
  gem 'hitimes', '< 1.2.2'
12
+ gem 'mixlib-shellout', '<= 2.0.0'
13
+ gem 'net-ssh', '<= 3.1.1'
14
+ gem 'public_suffix', '<= 2.0.5'
20
15
  gem 'rake', '< 11'
21
16
  gem 'rspec-rails', '>= 2.14.0'
22
17
 
@@ -38,11 +33,12 @@ gem 'capistrano', :require => false
38
33
  gem 'sucker_punch', '~> 2.0'
39
34
  gem 'shoryuken'
40
35
  gem 'codacy-coverage'
41
- gem 'simplecov'
36
+ gem 'simplecov', '<= 0.17.1'
42
37
 
43
38
  gem 'sinatra'
44
39
  gem 'delayed_job', :require => false
45
- gem 'redis'
40
+ gem 'redis', '<= 3.3.5'
41
+ gem 'redis-namespace', '<= 1.5.0'
46
42
  gem 'database_cleaner', '~> 1.0.0'
47
43
  gem 'genspec', '>= 0.2.8'
48
44
  gem 'girl_friday', '>= 0.11.1'
@@ -2,22 +2,17 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
7
  gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
15
8
  gem 'jruby-openssl', :platform => :jruby
16
9
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
17
- gem 'appraisal', '= 1.0.2'
10
+ gem 'mixlib-shellout', '<= 2.0.0'
11
+ gem 'net-ssh', '<= 3.1.1'
12
+ gem 'public_suffix', '<= 2.0.5'
18
13
  gem 'rails', '3.1.12'
19
14
  gem 'rspec-rails', '~> 3.4'
20
- gem 'rake'
15
+ gem 'rake', '< 11'
21
16
 
22
17
  if RUBY_VERSION < '2.2.2'
23
18
  gem 'sidekiq', '~> 2.13.0'
@@ -37,11 +32,13 @@ gem 'capistrano', :require => false
37
32
  gem 'sucker_punch'
38
33
  gem 'shoryuken'
39
34
  gem 'codacy-coverage'
40
- gem 'simplecov'
35
+ gem 'simplecov', '<= 0.17.1'
41
36
 
42
37
  gem 'sinatra'
43
38
  gem 'delayed_job', :require => false
44
- gem 'redis'
39
+ gem 'rack-cache', '<= 1.9.0'
40
+ gem 'redis', '<= 3.3.5'
41
+ gem 'redis-namespace', '<= 1.5.0'
45
42
  gem 'database_cleaner'
46
43
  gem 'girl_friday'
47
44
  gem 'generator_spec'
@@ -2,18 +2,13 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
- gem 'appraisal'
15
7
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
16
8
  gem 'jruby-openssl', :platform => :jruby
9
+ gem 'mixlib-shellout', '<= 2.0.0'
10
+ gem 'net-ssh', '<= 3.1.1'
11
+ gem 'public_suffix', '<= 2.0.5'
17
12
  gem 'rails', '3.2.22'
18
13
  gem 'rake'
19
14
  gem 'rspec-rails', '~> 3.4'
@@ -39,10 +34,11 @@ gem 'capistrano', :require => false
39
34
  gem 'sucker_punch', '~> 2.0'
40
35
  gem 'shoryuken'
41
36
  gem 'codacy-coverage'
42
- gem 'simplecov'
37
+ gem 'simplecov', '<= 0.17.1'
43
38
 
44
39
  gem 'delayed_job', :require => false
45
- gem 'redis'
40
+ gem 'redis', '<= 3.3.5'
41
+ gem 'redis-namespace', '<= 1.5.0'
46
42
  gem 'sinatra'
47
43
 
48
44
  gem 'database_cleaner', '~> 1.0.0'
@@ -2,18 +2,13 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
- gem 'appraisal'
15
7
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
16
8
  gem 'jruby-openssl', :platform => :jruby
9
+ gem 'mixlib-shellout', '<= 2.0.0'
10
+ gem 'net-ssh', '<= 3.1.1'
11
+ gem 'public_suffix', '<= 2.0.5'
17
12
  gem 'rails', '4.0.13'
18
13
  gem 'rake'
19
14
  gem 'rspec-rails', '~> 3.4'
@@ -40,10 +35,11 @@ gem 'sucker_punch', '~> 2.0'
40
35
  gem 'json', '~> 2.0'
41
36
  gem 'shoryuken'
42
37
  gem 'codacy-coverage'
43
- gem 'simplecov'
38
+ gem 'simplecov', '<= 0.17.1'
44
39
 
45
40
  gem 'delayed_job', :require => false
46
- gem 'redis'
41
+ gem 'redis', '<= 3.3.5'
42
+ gem 'redis-namespace', '<= 1.5.0'
47
43
  gem 'resque'
48
44
  gem 'sinatra'
49
45
 
@@ -2,18 +2,13 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
- gem 'appraisal'
15
7
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
16
8
  gem 'jruby-openssl', :platform => :jruby
9
+ gem 'mixlib-shellout', '<= 2.0.0'
10
+ gem 'net-ssh', '<= 3.1.1'
11
+ gem 'public_suffix', '<= 2.0.5'
17
12
  gem 'rails', '4.1.12'
18
13
  gem 'rake'
19
14
  gem 'rspec-rails', '~> 3.4'
@@ -36,10 +31,11 @@ gem 'capistrano', :require => false
36
31
  gem 'sucker_punch', '~> 2.0'
37
32
  gem 'shoryuken'
38
33
  gem 'codacy-coverage'
39
- gem 'simplecov'
34
+ gem 'simplecov', '<= 0.17.1'
40
35
 
41
36
  gem 'delayed_job', :require => false
42
- gem 'redis'
37
+ gem 'redis', '<= 3.3.5'
38
+ gem 'redis-namespace', '<= 1.5.0'
43
39
  gem 'resque'
44
40
  gem 'sinatra'
45
41
 
@@ -2,19 +2,13 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
  is_not_jruby = !is_jruby
14
7
 
15
- gem 'appraisal'
16
8
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
17
9
  gem 'jruby-openssl', :platform => :jruby
10
+ gem 'net-ssh', '<= 3.1.1'
11
+ gem 'public_suffix', '<= 2.0.5'
18
12
  gem 'rails', '4.2.8'
19
13
  gem 'rake'
20
14
  gem 'rspec-rails', '~> 3.4'
@@ -45,7 +39,7 @@ gem 'delayed_job', :require => false
45
39
  gem 'generator_spec'
46
40
  gem 'girl_friday', '>= 0.11.1'
47
41
  gem 'rspec-command'
48
- gem 'redis'
42
+ gem 'redis', '<= 3.3.5'
49
43
  gem 'resque'
50
44
  gem 'sinatra'
51
45
 
@@ -54,7 +48,7 @@ gem 'nokogiri', '~> 1.6.0' if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new
54
48
  gem 'sucker_punch', '~> 2.0'
55
49
  gem 'webmock', :require => false
56
50
  gem 'codacy-coverage'
57
- gem 'simplecov'
51
+ gem 'simplecov', '<= 0.17.1'
58
52
 
59
53
  gem 'aws-sdk-sqs'
60
54
 
@@ -2,18 +2,12 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
- gem 'appraisal'
15
7
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
16
8
  gem 'jruby-openssl', :platform => :jruby
9
+ gem 'net-ssh', '<= 3.1.1'
10
+ gem 'public_suffix', '<= 3.1.1'
17
11
  gem 'rails', '~> 5.0.7'
18
12
  gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
19
13
 
@@ -37,7 +31,7 @@ end
37
31
  gem 'capistrano', :require => false
38
32
  gem 'sucker_punch', '~> 2.0'
39
33
  gem 'codacy-coverage'
40
- gem 'simplecov'
34
+ gem 'simplecov', '<= 0.17.1'
41
35
 
42
36
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
43
37
  gem 'rack', '2.1.2'
@@ -49,7 +43,7 @@ gem 'database_cleaner'
49
43
  gem 'delayed_job', :require => false
50
44
  gem 'generator_spec'
51
45
  gem 'girl_friday', '>= 0.11.1'
52
- gem 'redis'
46
+ gem 'redis', '<= 3.3.5'
53
47
  gem 'resque'
54
48
 
55
49
  unless is_jruby
@@ -2,18 +2,12 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
- gem 'appraisal'
15
7
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
16
8
  gem 'jruby-openssl', :platform => :jruby
9
+ gem 'net-ssh', '<= 3.1.1'
10
+ gem 'public_suffix', '<= 3.1.1'
17
11
  gem 'rails', '~> 5.1.7'
18
12
  gem 'sqlite3', '< 1.4.0', :platform => [:ruby, :mswin, :mingw]
19
13
 
@@ -37,7 +31,7 @@ end
37
31
  gem 'capistrano', :require => false
38
32
  gem 'sucker_punch', '~> 2.0'
39
33
  gem 'codacy-coverage'
40
- gem 'simplecov'
34
+ gem 'simplecov', '<= 0.17.1'
41
35
 
42
36
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
43
37
  gem 'rack', '2.1.2'
@@ -50,7 +44,7 @@ gem 'database_cleaner'
50
44
  gem 'delayed_job', :require => false
51
45
  gem 'generator_spec'
52
46
  gem 'girl_friday', '>= 0.11.1'
53
- gem 'redis'
47
+ gem 'redis', '<= 3.3.5'
54
48
  gem 'resque'
55
49
 
56
50
  unless is_jruby
@@ -2,16 +2,8 @@ require 'rubygems/version'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
6
- # new process is created during tests. (Testing rake tasks, for example.)
7
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
8
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
9
- # with the wrong gemfile path.
10
- ENV['CURRENT_GEMFILE'] ||= __FILE__
11
-
12
5
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
13
6
 
14
- gem 'appraisal'
15
7
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
16
8
  gem 'jruby-openssl', :platform => :jruby
17
9
  gem 'rails', '~> 5.2.3'
@@ -46,7 +38,7 @@ gem 'generator_spec'
46
38
  gem 'girl_friday', '>= 0.11.1'
47
39
  gem 'redis'
48
40
  gem 'resque'
49
- gem 'simplecov'
41
+ gem 'simplecov', '<= 0.17.1'
50
42
 
51
43
  unless is_jruby
52
44
  # JRuby doesn't support fork, which is required for this test helper.
@@ -3,16 +3,8 @@ require 'rubygems/version'
3
3
 
4
4
  source 'https://rubygems.org'
5
5
 
6
- # Used by spec/commands/rollbar_rails_runner_spec, and can be used whenever a
7
- # new process is created during tests. (Testing rake tasks, for example.)
8
- # This is a workaround for ENV['BUNDLE_GEMFILE'] not working as expected on Travis.
9
- # We use the ||= assignment because Travis loads the gemfile twice, the second time
10
- # with the wrong gemfile path.
11
- ENV['CURRENT_GEMFILE'] ||= __FILE__
12
-
13
6
  is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
14
7
 
15
- gem 'appraisal'
16
8
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
17
9
  gem 'jruby-openssl', :platform => :jruby
18
10
  gem 'rails', '6.0.2.1'
@@ -75,6 +75,7 @@ module Rollbar
75
75
  attr_accessor :files_processed_enabled
76
76
  attr_accessor :files_processed_duration # seconds
77
77
  attr_accessor :files_processed_size # bytes
78
+ attr_accessor :use_payload_access_token
78
79
 
79
80
  attr_reader :project_gem_paths
80
81
  attr_accessor :configured_options
@@ -167,6 +168,7 @@ module Rollbar
167
168
  @files_processed_enabled = false
168
169
  @files_processed_duration = 60
169
170
  @files_processed_size = 5 * 1000 * 1000
171
+ @use_payload_access_token = false
170
172
 
171
173
  @configured_options = ConfiguredOptions.new(self)
172
174
  end
@@ -40,7 +40,7 @@ module Rollbar
40
40
  class << self
41
41
  def build_with(payload, options = {})
42
42
  new(options).tap do |item|
43
- item.payload = payload
43
+ item.payload = item.add_access_token_to_payload(payload)
44
44
  end
45
45
  end
46
46
  end
@@ -64,9 +64,7 @@ module Rollbar
64
64
 
65
65
  def build
66
66
  data = build_data
67
- self.payload = {
68
- 'data' => data
69
- }
67
+ self.payload = add_access_token_to_payload({'data' => data})
70
68
 
71
69
  enforce_valid_utf8
72
70
  transform
@@ -166,6 +164,21 @@ module Rollbar
166
164
  configuration.ignored_person_ids.include?(person_id)
167
165
  end
168
166
 
167
+ def add_access_token_to_payload(payload)
168
+ # Some use cases remain where the token is needed in the payload. For example:
169
+ #
170
+ # When using async senders, if the access token is changed dynamically in
171
+ # the main process config, the sender process won't see that change.
172
+ #
173
+ # Until the delayed sender interface is changed to allow passing dynamic config options,
174
+ # this workaround allows the main process to set the token by adding it to the payload.
175
+ if (configuration && configuration.use_payload_access_token)
176
+ payload['access_token'] = configuration.access_token
177
+ end
178
+
179
+ payload
180
+ end
181
+
169
182
  private
170
183
 
171
184
  def build_environment
@@ -41,8 +41,6 @@ module Rollbar
41
41
  raw[key] = value
42
42
 
43
43
  loaded_data.delete(key)
44
-
45
- value
46
44
  end
47
45
 
48
46
  def data
@@ -76,8 +74,8 @@ module Rollbar
76
74
  super
77
75
  end
78
76
 
79
- def respond_to?(method_sym)
80
- super || raw.respond_to?(method_sym)
77
+ def respond_to_missing?(method_sym, include_all)
78
+ raw.respond_to?(method_sym, include_all)
81
79
  end
82
80
  end
83
81
  end
@@ -640,7 +640,11 @@ module Rollbar
640
640
  request = Net::HTTP::Post.new(uri.request_uri)
641
641
 
642
642
  request.body = pack_ruby260_bytes(body)
643
- request.add_field('X-Rollbar-Access-Token', access_token)
643
+
644
+ # Ensure the payload token will be used if the option is set.
645
+ unless (configuration.use_payload_access_token)
646
+ request.add_field('X-Rollbar-Access-Token', access_token)
647
+ end
644
648
 
645
649
  handle_net_retries { http.request(request) }
646
650
  end
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = '3.0.1'.freeze
2
+ VERSION = '3.1.0'.freeze
3
3
  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: 3.0.1
4
+ version: 3.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: 2020-10-14 00:00:00.000000000 Z
11
+ date: 2020-11-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Easy and powerful exception tracking for Ruby
14
14
  email:
@@ -20,10 +20,10 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - ".codeclimate.yml"
22
22
  - ".github/pull_request_template.md"
23
+ - ".github/workflows/ci.yml"
23
24
  - ".gitignore"
24
25
  - ".gitmodules"
25
26
  - ".rubocop.yml"
26
- - ".travis.yml"
27
27
  - Appraisals
28
28
  - CHANGELOG.md
29
29
  - Gemfile
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.7.7
164
+ rubygems_version: 2.4.8
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Reports exceptions to Rollbar
@@ -1,268 +0,0 @@
1
- sudo: false
2
- dist: trusty
3
- services:
4
- - redis-server
5
- language: ruby
6
-
7
- rvm:
8
- - 2.0.0
9
- - 2.1.0
10
- - 2.2.2
11
- - 2.3.8
12
- - 2.4.5
13
- - 2.5.3
14
- - 2.6.5
15
- - 2.7.0
16
- - rbx
17
- # Travis's own rvm installer is failing on JRuby builds, TODO: reenable when fixed.
18
- # - jruby-9.1.9.0
19
-
20
- #
21
- # # About legacy JRuby
22
- #
23
- # Legacy JRubies (jruby-18mode, jruby-19mode) have been disabled for some time by
24
- # listing all possible targets in either the exclude or allow_failures sections.
25
- # I have taken a look at getting them running, and have found that no valid
26
- # combination of dependencies is possible for Rails 3.0 and higher. It appears
27
- # Rails 2.2 is meant to work, though I haven't tried it.
28
- #
29
- # For Rails 3.0, it is possible to get a working bundle with all gem dependencies,
30
- # but the JDBC adapter gem needs an earlier version of ActiveSupport, and it will
31
- # fail at runtime.
32
- #
33
- # For Rails 3.1 and 3.2, Rack 1.3.x and higher require Ruby 2.x, while Rails 3.x will
34
- # not accept any 1.2.x version of Rack. Even if this could be resolved, one would
35
- # hit the above runtime issue amyway.
36
- #
37
- # # About current JRuby
38
- #
39
- # While current JRuby builds aim to be Ruby 2.5.x compatible, the JDBC adapter
40
- # gem is constrained to only Rails 5.0, 5.1 and 5.2 at this time. (Old versions
41
- # of the gem allow >= Rails 2.2, but in practice it will not work with Rails 3.0
42
- # and higher because of the ActiveSupport issue described above.) For as long as
43
- # the test suite relies on Rails and SqlLite, it is not possible to include
44
- # earlier Rails for JRuby.
45
-
46
- jdk:
47
- # These are the JDKs currently supported on Travis (Trusty - Ubuntu 14.04)
48
- - openjdk7
49
- - openjdk8
50
- - oraclejdk8
51
- - oraclejdk9
52
- gemfile:
53
- - gemfiles/rails30.gemfile
54
- - gemfiles/rails31.gemfile
55
- - gemfiles/rails32.gemfile
56
- - gemfiles/rails40.gemfile
57
- - gemfiles/rails41.gemfile
58
- - gemfiles/rails42.gemfile
59
- - gemfiles/rails50.gemfile
60
- - gemfiles/rails51.gemfile
61
- - gemfiles/rails52.gemfile
62
- - gemfiles/rails60.gemfile
63
- matrix:
64
- include: []
65
-
66
- allow_failures:
67
- - rvm: ruby-head
68
- - rvm: jruby-head
69
- # oraclejdk9 has a dependency issue that needs to be investigated
70
- - jdk: oraclejdk9
71
-
72
- exclude:
73
- # Don't run tests for non-jruby environments with the JDK.
74
- # NOTE: openjdk7 is missing from these exclusions so that Travis will run at least 1 build for the given rvm.
75
- - rvm: 2.0.0
76
- jdk: openjdk8
77
- - rvm: 2.0.0
78
- jdk: oraclejdk8
79
- - rvm: 2.0.0
80
- jdk: oraclejdk9
81
- - rvm: 2.1.0
82
- jdk: openjdk8
83
- - rvm: 2.1.0
84
- jdk: oraclejdk8
85
- - rvm: 2.1.0
86
- jdk: oraclejdk9
87
- - rvm: 2.2.2
88
- jdk: openjdk8
89
- - rvm: 2.2.2
90
- jdk: oraclejdk8
91
- - rvm: 2.2.2
92
- jdk: oraclejdk9
93
- - rvm: 2.3.8
94
- jdk: openjdk8
95
- - rvm: 2.3.8
96
- jdk: oraclejdk8
97
- - rvm: 2.3.8
98
- jdk: oraclejdk9
99
- - rvm: 2.4.5
100
- jdk: openjdk8
101
- - rvm: 2.4.5
102
- jdk: oraclejdk8
103
- - rvm: 2.4.5
104
- jdk: oraclejdk9
105
- - rvm: 2.5.3
106
- jdk: openjdk8
107
- - rvm: 2.5.3
108
- jdk: oraclejdk8
109
- - rvm: 2.5.3
110
- jdk: oraclejdk9
111
- - rvm: 2.6.5
112
- jdk: openjdk8
113
- - rvm: 2.6.5
114
- jdk: oraclejdk8
115
- - rvm: 2.6.5
116
- jdk: oraclejdk9
117
- - rvm: 2.7.0
118
- jdk: openjdk8
119
- - rvm: 2.7.0
120
- jdk: oraclejdk8
121
- - rvm: 2.7.0
122
- jdk: oraclejdk9
123
-
124
- - rvm: ruby-head
125
- jdk: openjdk8
126
- - rvm: ruby-head
127
- jdk: oraclejdk8
128
- - rvm: ruby-head
129
- jdk: oraclejdk9
130
- - rvm: rbx
131
- jdk: openjdk8
132
- - rvm: rbx
133
- jdk: oraclejdk8
134
- - rvm: rbx
135
- jdk: oraclejdk9
136
-
137
- # Rails 6.x requires Ruby 2.5.0 or higher
138
- - rvm: 2.2.2
139
- gemfile: gemfiles/rails60.gemfile
140
- - rvm: 2.3.8
141
- gemfile: gemfiles/rails60.gemfile
142
- - rvm: 2.4.5
143
- gemfile: gemfiles/rails60.gemfile
144
- # Rails 5.x requires Ruby 2.2.2 or higher
145
- - rvm: 2.0.0
146
- gemfile: gemfiles/rails50.gemfile
147
- - rvm: 2.0.0
148
- gemfile: gemfiles/rails51.gemfile
149
- - rvm: 2.0.0
150
- gemfile: gemfiles/rails52.gemfile
151
- - rvm: 2.0.0
152
- gemfile: gemfiles/rails60.gemfile
153
- # Rails 5.x requires Ruby 2.2.2 or higher
154
- - rvm: 2.1.0
155
- gemfile: gemfiles/rails50.gemfile
156
- - rvm: 2.1.0
157
- gemfile: gemfiles/rails51.gemfile
158
- - rvm: 2.1.0
159
- gemfile: gemfiles/rails52.gemfile
160
- - rvm: 2.1.0
161
- gemfile: gemfiles/rails60.gemfile
162
- # MRI 2.2.2 supports Rails 3.2.x and higher, except Rails 5.2.4 and higher*
163
- # * ActionDispatch 5.2.4 uses Ruby 3.x safe navigation operator.
164
- - rvm: 2.2.2
165
- gemfile: gemfiles/rails30.gemfile
166
- - rvm: 2.2.2
167
- gemfile: gemfiles/rails31.gemfile
168
- - rvm: 2.2.2
169
- gemfile: gemfiles/rails52.gemfile
170
- # MRI 2.3.x supports Rails 4.0.x and higher
171
- - rvm: 2.3.8
172
- gemfile: gemfiles/rails30.gemfile
173
- - rvm: 2.3.8
174
- gemfile: gemfiles/rails31.gemfile
175
- - rvm: 2.3.8
176
- gemfile: gemfiles/rails32.gemfile
177
- - rvm: 2.3.8
178
- gemfile: gemfiles/rails40.gemfile
179
- - rvm: 2.3.8
180
- gemfile: gemfiles/rails41.gemfile
181
- # MRI 2.4.x and higher (e.g. 2.5.x, 2.6.x, etc) supports Rails 4.2.8 and higher
182
- # Rails lower than 4.2.8 is incompatible with Ruby 2.4 Integer class
183
- - rvm: 2.4.5
184
- gemfile: gemfiles/rails30.gemfile
185
- - rvm: 2.4.5
186
- gemfile: gemfiles/rails31.gemfile
187
- - rvm: 2.4.5
188
- gemfile: gemfiles/rails32.gemfile
189
- - rvm: 2.4.5
190
- gemfile: gemfiles/rails40.gemfile
191
- - rvm: 2.4.5
192
- gemfile: gemfiles/rails41.gemfile
193
- - rvm: 2.5.3
194
- gemfile: gemfiles/rails30.gemfile
195
- - rvm: 2.5.3
196
- gemfile: gemfiles/rails31.gemfile
197
- - rvm: 2.5.3
198
- gemfile: gemfiles/rails32.gemfile
199
- - rvm: 2.5.3
200
- gemfile: gemfiles/rails40.gemfile
201
- - rvm: 2.5.3
202
- gemfile: gemfiles/rails41.gemfile
203
- - rvm: 2.6.5
204
- gemfile: gemfiles/rails30.gemfile
205
- - rvm: 2.6.5
206
- gemfile: gemfiles/rails31.gemfile
207
- - rvm: 2.6.5
208
- gemfile: gemfiles/rails32.gemfile
209
- - rvm: 2.6.5
210
- gemfile: gemfiles/rails40.gemfile
211
- - rvm: 2.6.5
212
- gemfile: gemfiles/rails41.gemfile
213
- - rvm: 2.6.5
214
- gemfile: gemfiles/rails42.gemfile
215
- # Rails 6.x tries to be compatible with Ruby 2.7, though
216
- # it still throws a lot of warnings. No point testing earlier
217
- # Rails with Ruby 2.7.
218
- - rvm: 2.7.0
219
- gemfile: gemfiles/rails30.gemfile
220
- - rvm: 2.7.0
221
- gemfile: gemfiles/rails31.gemfile
222
- - rvm: 2.7.0
223
- gemfile: gemfiles/rails32.gemfile
224
- - rvm: 2.7.0
225
- gemfile: gemfiles/rails40.gemfile
226
- - rvm: 2.7.0
227
- gemfile: gemfiles/rails41.gemfile
228
- - rvm: 2.7.0
229
- gemfile: gemfiles/rails42.gemfile
230
- - rvm: 2.7.0
231
- gemfile: gemfiles/rails50.gemfile
232
- - rvm: 2.7.0
233
- gemfile: gemfiles/rails51.gemfile
234
- - rvm: 2.7.0
235
- gemfile: gemfiles/rails52.gemfile
236
- # JRuby JDBC Adapter is only compatible with Rails >= 5.x
237
- - rvm: jruby-9.1.9.0
238
- gemfile: gemfiles/rails30.gemfile
239
- - rvm: jruby-9.1.9.0
240
- gemfile: gemfiles/rails31.gemfile
241
- - rvm: jruby-9.1.9.0
242
- gemfile: gemfiles/rails32.gemfile
243
- - rvm: jruby-9.1.9.0
244
- gemfile: gemfiles/rails40.gemfile
245
- - rvm: jruby-9.1.9.0
246
- gemfile: gemfiles/rails41.gemfile
247
- - rvm: jruby-9.1.9.0
248
- gemfile: gemfiles/rails42.gemfile
249
- - rvm: rbx
250
- gemfile: gemfiles/rails30.gemfile
251
- - rvm: rbx
252
- gemfile: gemfiles/rails31.gemfile
253
- - rvm: rbx
254
- gemfile: gemfiles/rails32.gemfile
255
- - rvm: rbx
256
- gemfile: gemfiles/rails40.gemfile
257
- - rvm: rbx
258
- gemfile: gemfiles/rails41.gemfile
259
- - rvm: rbx
260
- gemfile: gemfiles/rails42.gemfile
261
- - rvm: rbx
262
- gemfile: gemfiles/rails50.gemfile
263
- - rvm: rbx
264
- gemfile: gemfiles/rails51.gemfile
265
- - rvm: rbx
266
- gemfile: gemfiles/rails52.gemfile
267
- - rvm: rbx
268
- gemfile: gemfiles/rails60.gemfile