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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a7b8db370fe88695dd0032b0bf07d2f141c317fe3fec1c94dc7bf1fbf57b323
4
- data.tar.gz: 1794312779cea578d9ff93c75defe3769389f82a9d388fe18e51fc50da1f43db
3
+ metadata.gz: 687a2535f66ab0c5b38e84a15f66929eca0ffa60780e366464a92f392e2bac1e
4
+ data.tar.gz: f5af856e355765385f95bf05dd568ec17c5608b6fd1dc5ac800846e441a918c9
5
5
  SHA512:
6
- metadata.gz: 5058cdfa95c51f36ed20d7cf06be1f1ca810d0befaa36c81f2d9aa7ed3c3e64015aa155712ad19d87cb67af91954380cf6bc59928a82f5419eb76d1546501060
7
- data.tar.gz: dc0b6e407fcf3d64db76855c5e33b32ffd83080ad585f92ebdca7a2137909b34c80ef007c26c86eb3a0dfe2c58e9d74d61a1a94b704c1b2f36714a10732ea157
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 :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.5.2"
3
+ VERSION = "4.6.2"
4
4
  end
5
5
  end
data/sentry-rails.gemspec CHANGED
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ["lib"]
24
24
 
25
25
  spec.add_dependency "railties", ">= 5.0"
26
- spec.add_dependency "sentry-ruby-core", "~> 4.5.0"
26
+ spec.add_dependency "sentry-ruby-core", "~> 4.6.0"
27
27
  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.5.2
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-06-24 00:00:00.000000000 Z
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.5.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.5.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: []