rollbar 3.4.0 → 3.4.1
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/.github/workflows/ci.yml +5 -20
- data/Gemfile +5 -3
- data/docs/configuration.md +2 -2
- data/gemfiles/rails42.gemfile +1 -0
- data/gemfiles/rails70.gemfile +2 -2
- data/gemfiles/rails71.gemfile +52 -0
- data/lib/rollbar/middleware/rails/show_exceptions.rb +7 -2
- data/lib/rollbar/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c64f479a34f9a4292e7c11843f53f3375024d8062847c728885399ce5be8da9
|
4
|
+
data.tar.gz: 2d8eb22823cf8e098eca8dab38d3acdb49c49df6043dcbee7908d62384727a88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 105d2bcaf2bc879723b23f3536c9bb6f3b6a6e147472510f0995a5c52f85c58cdebe904f75ef5cfb1636c21cdc9777cf9ae1faf08777ed8c4fb3842309c913b9
|
7
|
+
data.tar.gz: 3c9b51d3d2a0335421441032db51351b373c14c3c1e2a79d25f3fe1030f441453bd55612719a0b387357f083ebc1bcbcc5ad161491c798667fcf104947971d9b
|
data/.github/workflows/ci.yml
CHANGED
@@ -8,7 +8,7 @@ on:
|
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
build:
|
11
|
-
runs-on: ubuntu-
|
11
|
+
runs-on: ubuntu-20.04
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
14
|
ruby-version: [2.5.3, 2.6.0, 2.6.6, 2.7.2]
|
@@ -19,6 +19,10 @@ jobs:
|
|
19
19
|
- gemfiles/rails60.gemfile
|
20
20
|
- gemfiles/rails61.gemfile
|
21
21
|
include:
|
22
|
+
- gemfile: gemfiles/rails71.gemfile
|
23
|
+
ruby-version: 3.2.2
|
24
|
+
- gemfile: gemfiles/rails71.gemfile
|
25
|
+
ruby-version: 3.1.1
|
22
26
|
- gemfile: gemfiles/rails70.gemfile
|
23
27
|
ruby-version: 3.1.1
|
24
28
|
- gemfile: gemfiles/rails70.gemfile
|
@@ -47,10 +51,6 @@ jobs:
|
|
47
51
|
ruby-version: 2.2.10
|
48
52
|
- gemfile: gemfiles/rails32.gemfile
|
49
53
|
ruby-version: 2.1.9
|
50
|
-
- gemfile: gemfiles/rails31.gemfile
|
51
|
-
ruby-version: 2.0.0
|
52
|
-
- gemfile: gemfiles/rails30.gemfile
|
53
|
-
ruby-version: 2.0.0
|
54
54
|
|
55
55
|
steps:
|
56
56
|
- uses: actions/checkout@v2
|
@@ -68,21 +68,6 @@ jobs:
|
|
68
68
|
with:
|
69
69
|
ruby-version: ${{ matrix.ruby-version }}
|
70
70
|
|
71
|
-
- name: Setup Ruby 2.0.0
|
72
|
-
if: ${{ matrix.ruby-version == '2.0.0' }}
|
73
|
-
timeout-minutes: 15
|
74
|
-
run: |
|
75
|
-
sudo apt-get update -y
|
76
|
-
sudo apt-get install -y libssl1.0-dev
|
77
|
-
wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.gz
|
78
|
-
tar xvfz ruby-2.0.0-p648.tar.gz
|
79
|
-
cd ruby-2.0.0-p648
|
80
|
-
./configure && make && sudo make install-nodoc
|
81
|
-
|
82
|
-
- name: Ruby 2.0.0, install bundler
|
83
|
-
if: ${{ matrix.ruby-version == '2.0.0' }}
|
84
|
-
run: sudo gem install bundler -v 1.17.3
|
85
|
-
|
86
71
|
- name: Rails 4.2 ensure bundler version
|
87
72
|
if: ${{ matrix.gemfile == 'gemfiles/rails42.gemfile' }}
|
88
73
|
run: |
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This Gemfile is compatible with Ruby 2.5.0 or greater. To test with
|
2
2
|
# earlier Rubies, use the appropriate Gemfile from the ./gemfiles/ dir.
|
3
|
-
ruby '
|
3
|
+
ruby '3.2.2'
|
4
4
|
|
5
5
|
source 'https://rubygems.org'
|
6
6
|
|
@@ -13,7 +13,7 @@ ENV['CURRENT_GEMFILE'] ||= __FILE__
|
|
13
13
|
|
14
14
|
is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby')
|
15
15
|
|
16
|
-
GEMFILE_RAILS_VERSION = '~>
|
16
|
+
GEMFILE_RAILS_VERSION = '~> 7.1.0'.freeze
|
17
17
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
18
18
|
gem 'appraisal'
|
19
19
|
gem 'jruby-openssl', :platform => :jruby
|
@@ -21,8 +21,10 @@ gem 'rails', GEMFILE_RAILS_VERSION
|
|
21
21
|
gem 'rake'
|
22
22
|
if GEMFILE_RAILS_VERSION < '6.0'
|
23
23
|
gem 'rspec-rails', '~> 3.4'
|
24
|
-
|
24
|
+
elsif GEMFILE_RAILS_VERSION < '7.0'
|
25
25
|
gem 'rspec-rails', '~> 4.0.2'
|
26
|
+
else
|
27
|
+
gem 'rspec-rails', '~> 6.0.3'
|
26
28
|
end
|
27
29
|
|
28
30
|
if GEMFILE_RAILS_VERSION < '6.0'
|
data/docs/configuration.md
CHANGED
@@ -59,10 +59,10 @@ end
|
|
59
59
|
|
60
60
|
### default_logger
|
61
61
|
|
62
|
-
**Default** `Logger.new(STDERR)`
|
62
|
+
**Default** `lambda { Logger.new(STDERR) }`
|
63
63
|
|
64
64
|
What logger to use for printing debugging and informational messages during
|
65
|
-
operation.
|
65
|
+
operation. Expects a callable object that returns a logger interface.
|
66
66
|
|
67
67
|
### logger_level
|
68
68
|
|
data/gemfiles/rails42.gemfile
CHANGED
data/gemfiles/rails70.gemfile
CHANGED
@@ -6,10 +6,10 @@ 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', '~> 7.0.
|
9
|
+
gem 'rails', '~> 7.0.8'
|
10
10
|
gem 'sqlite3', '~> 1.4', :platform => [:ruby, :mswin, :mingw]
|
11
11
|
|
12
|
-
gem 'rspec-rails', '~>
|
12
|
+
gem 'rspec-rails', '~> 6.0.3'
|
13
13
|
|
14
14
|
gem 'rake'
|
15
15
|
|
@@ -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.1.0'
|
10
|
+
gem 'sqlite3', '~> 1.4', :platform => [:ruby, :mswin, :mingw]
|
11
|
+
|
12
|
+
gem 'rspec-rails', '~> 6.0.3'
|
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', '<= 4.8.0'
|
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 => '../'
|
@@ -4,7 +4,7 @@ module Rollbar
|
|
4
4
|
module ShowExceptions
|
5
5
|
include ExceptionReporter
|
6
6
|
|
7
|
-
def render_exception_with_rollbar(env, exception)
|
7
|
+
def render_exception_with_rollbar(env, exception, wrapper = nil)
|
8
8
|
key = 'action_dispatch.show_detailed_exceptions'
|
9
9
|
|
10
10
|
if exception.is_a?(ActionController::RoutingError) && env[key]
|
@@ -15,7 +15,12 @@ module Rollbar
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
|
18
|
+
# Rails 7.1 changes the method signature for render_exception.
|
19
|
+
if self.class.instance_method(:render_exception_without_rollbar).arity == 2
|
20
|
+
render_exception_without_rollbar(env, exception)
|
21
|
+
else
|
22
|
+
render_exception_without_rollbar(env, exception, wrapper)
|
23
|
+
end
|
19
24
|
end
|
20
25
|
|
21
26
|
def call_with_rollbar(env)
|
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.4.
|
4
|
+
version: 3.4.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: 2023-
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Track and debug errors in your Ruby applications with ease using Rollbar.
|
14
14
|
With this gem, you can easily monitor and report on exceptions and other errors
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- gemfiles/rails60.gemfile
|
54
54
|
- gemfiles/rails61.gemfile
|
55
55
|
- gemfiles/rails70.gemfile
|
56
|
+
- gemfiles/rails71.gemfile
|
56
57
|
- lib/generators/rollbar/rollbar_generator.rb
|
57
58
|
- lib/generators/rollbar/templates/initializer.erb
|
58
59
|
- lib/rails/rollbar_runner.rb
|
@@ -165,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
166
|
- !ruby/object:Gem::Version
|
166
167
|
version: '0'
|
167
168
|
requirements: []
|
168
|
-
rubygems_version: 3.1
|
169
|
+
rubygems_version: 3.4.1
|
169
170
|
signing_key:
|
170
171
|
specification_version: 4
|
171
172
|
summary: Reports exceptions to Rollbar
|