sentry-rails 4.6.0.pre.beta.0 → 4.6.3
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 +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2d42e3ed09f91a5ba598f1879324a2015250f33090174cc4ed8aeb82e1dae06
|
4
|
+
data.tar.gz: 1acb7af3fc83233fa1b99a61aa0362e7ca589f3a62a6f3830b308851225c4b0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd7e6f5994e156753de716d100fb86d5e6ecec851670aa2d295760e4f0becf725c5242ed2bc6a848b04887e811a0d890f580ff2d1c815dfad34534d0edd4ceac
|
7
|
+
data.tar.gz: 2a1d041d4fe42c8c7fa472da77bfad78a5659e516290d2b28d949af6de6936035a7a998fcef75ea0f7b6d2649be9bbe7fe59ef15754fd43cfc6fd18fb081b923
|
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.6.
|
4
|
+
version: 4.6.3
|
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-26 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.6.0
|
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.6.0
|
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: []
|
@@ -98,9 +98,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '2.4'
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubygems_version: 3.1.6
|
106
106
|
signing_key:
|