sentry-rails 4.6.0 → 4.6.4
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
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e479516d519975728175dbed14dc5fe29032abd53c90cbadc9f4e1e12c3b0901
|
4
|
+
data.tar.gz: ac6d95f904049f87ba1ce0023301cb5d7294c5efbdd2bfe7710c53eb91b2d1f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16ade3270e7c3b1e4df50bb1a696e0ef2e238673ddc44c05a5a2b3136ce8503bb325d8b73209ce1102c6acca1761e19583790370c6dbd6032b5764695b58734d
|
7
|
+
data.tar.gz: 94d3f619a04c98c60c4a02a4200e201a11454c1726cbd9c870829e9870f1615c1149137b6ab10259b7374ddbd8309532f7dbfe7a98942345c835c179df853eb3
|
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
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.6.
|
4
|
+
version: 4.6.4
|
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-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|