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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1db1f092b77a25a14fa9febdd1343b70b2cf1f52c014336162879bfb973a665
4
- data.tar.gz: 242dd27699605d63858062419b87da9c69c394abf38f7286451e470d92029c94
3
+ metadata.gz: e479516d519975728175dbed14dc5fe29032abd53c90cbadc9f4e1e12c3b0901
4
+ data.tar.gz: ac6d95f904049f87ba1ce0023301cb5d7294c5efbdd2bfe7710c53eb91b2d1f0
5
5
  SHA512:
6
- metadata.gz: cf059162ee26ba6252de2d326474c5ce2984358cc75aa12389013c3e8e16a716ae0f53e06245f2caf26aa21dad43ee4a14956ba9af734057fa7688740b7b0251
7
- data.tar.gz: 3c1fc08e21ba85a1fbe320d46ad8ae2519e0a8afa2544b459bcc5ab2833c12e0cd9b6f46f3309d33833c3f941005947ee75849c31e480eba4fbe0839a4419c19
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 :default => :spec
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]
@@ -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
- extend_active_job if defined?(ActiveJob)
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 = lambda do |backtrace|
77
+ Sentry.configuration.backtrace_cleanup_callback ||= lambda do |backtrace|
80
78
  backtrace_cleaner.clean(backtrace)
81
79
  end
82
80
  end
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "4.6.0"
3
+ VERSION = "4.6.4"
4
4
  end
5
5
  end
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.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties