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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b02dcbac481eb6e645780e3ff882455937d1d2815f3e9bd63670591a7492c350
4
- data.tar.gz: c4be21017ce59812b637409e0066ff2059341d63995f1ae5a5c69ea38653c667
3
+ metadata.gz: c2d42e3ed09f91a5ba598f1879324a2015250f33090174cc4ed8aeb82e1dae06
4
+ data.tar.gz: 1acb7af3fc83233fa1b99a61aa0362e7ca589f3a62a6f3830b308851225c4b0b
5
5
  SHA512:
6
- metadata.gz: 8f407319c4aa281023c0ffc87d84ea0c947a0d603178092a9a81d9d4ea11df7d5819f0d1c1a1b5daca4e4d00a79ffad137ee2f67917ef7f2edeede525e353d93
7
- data.tar.gz: abf841e66f24360dbdf5e364bdac989403ed6c06373dab404c17a8c3da24098773f6740f92ea722ca8990f27e5f26af36ff958e3f5421dd8bec6d7cf3cfef059
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 :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-beta.0"
3
+ VERSION = "4.6.3"
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.6.0-beta.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.6.0.pre.beta.0
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-06-28 00:00:00.000000000 Z
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.pre.beta.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.pre.beta.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: 1.3.1
103
+ version: '0'
104
104
  requirements: []
105
105
  rubygems_version: 3.1.6
106
106
  signing_key: