sentry-rails 4.5.2 → 4.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +7 -1
- data/lib/sentry/rails/railtie.rb +5 -7
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 687a2535f66ab0c5b38e84a15f66929eca0ffa60780e366464a92f392e2bac1e
|
4
|
+
data.tar.gz: f5af856e355765385f95bf05dd568ec17c5608b6fd1dc5ac800846e441a918c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7752aaafad162da9d710eff02f37e245fe8b2d8565fc3ce43cd7f38a671744436ba8b0d9a98e8224cc5969d629a1dae48d8aec248bedcc60ced882ae04ee78e
|
7
|
+
data.tar.gz: 23be4b41235048774637a247c7adba473a5357eb569954f02aeef49b2291c22cd63305fb075648452d78bcd7bd46cf7f156c86dc9d787d56c72ce58c30dbf1f0
|
data/Rakefile
CHANGED
@@ -5,4 +5,10 @@ RSpec::Core::RakeTask.new(:spec).tap do |task|
|
|
5
5
|
task.rspec_opts = "--order rand"
|
6
6
|
end
|
7
7
|
|
8
|
-
task :
|
8
|
+
task :isolated_specs do
|
9
|
+
Dir["spec/isolated/*"].each do |file|
|
10
|
+
sh "bundle exec ruby #{file}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
task :default => [:spec, :isolated_specs]
|
data/lib/sentry/rails/railtie.rb
CHANGED
@@ -16,7 +16,10 @@ module Sentry
|
|
16
16
|
# before the application is eager-loaded (before user's jobs register their own callbacks)
|
17
17
|
# See https://github.com/getsentry/sentry-ruby/issues/1249#issuecomment-853871871 for the detail explanation
|
18
18
|
initializer "sentry.extend_active_job", before: :eager_load! do |app|
|
19
|
-
|
19
|
+
ActiveSupport.on_load(:active_job) do
|
20
|
+
require "sentry/rails/active_job"
|
21
|
+
prepend Sentry::Rails::ActiveJobExtensions
|
22
|
+
end
|
20
23
|
end
|
21
24
|
|
22
25
|
config.after_initialize do |app|
|
@@ -45,11 +48,6 @@ module Sentry
|
|
45
48
|
Sentry.configuration.trusted_proxies += Array(::Rails.application.config.action_dispatch.trusted_proxies)
|
46
49
|
end
|
47
50
|
|
48
|
-
def extend_active_job
|
49
|
-
require "sentry/rails/active_job"
|
50
|
-
ActiveJob::Base.send(:prepend, Sentry::Rails::ActiveJobExtensions)
|
51
|
-
end
|
52
|
-
|
53
51
|
def extend_controller_methods
|
54
52
|
require "sentry/rails/controller_methods"
|
55
53
|
require "sentry/rails/controller_transaction"
|
@@ -76,7 +74,7 @@ module Sentry
|
|
76
74
|
def setup_backtrace_cleanup_callback
|
77
75
|
backtrace_cleaner = Sentry::Rails::BacktraceCleaner.new
|
78
76
|
|
79
|
-
Sentry.configuration.backtrace_cleanup_callback
|
77
|
+
Sentry.configuration.backtrace_cleanup_callback ||= lambda do |backtrace|
|
80
78
|
backtrace_cleaner.clean(backtrace)
|
81
79
|
end
|
82
80
|
end
|
data/lib/sentry/rails/version.rb
CHANGED
data/sentry-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.
|
33
|
+
version: 4.6.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.
|
40
|
+
version: 4.6.0
|
41
41
|
description: A gem that provides Rails integration for the Sentry error logger
|
42
42
|
email: accounts@sentry.io
|
43
43
|
executables: []
|