sentry-rails 4.6.0 → 4.6.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/Rakefile +7 -1
- data/lib/sentry/rails/railtie.rb +4 -6
- 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: 45db4da3ec4c8f0b06f535beadd58051516a0acabe75f5536445117f644abddf
|
4
|
+
data.tar.gz: 29f21dc64916654597023ae87a6d83b878c439ebf67b37bf2423c819093011f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68b3e9718c9b2f24a30a904f57fabd91430d3d6332a28e957dab32d25097066e0b0390e35433f81d8196122230f74ab68aac9a8ccad0daef4e5193dbddc1c9dd
|
7
|
+
data.tar.gz: 893bb7f6f7b9625787bbaeb9bf6281f707da7050d63922d665a5d3cc8da2a74189d040639e88f9fca7cd5182dd19f5c471ae6d82ce381878cd42eea3820233ad
|
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"
|
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.1
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|