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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1db1f092b77a25a14fa9febdd1343b70b2cf1f52c014336162879bfb973a665
4
- data.tar.gz: 242dd27699605d63858062419b87da9c69c394abf38f7286451e470d92029c94
3
+ metadata.gz: 45db4da3ec4c8f0b06f535beadd58051516a0acabe75f5536445117f644abddf
4
+ data.tar.gz: 29f21dc64916654597023ae87a6d83b878c439ebf67b37bf2423c819093011f2
5
5
  SHA512:
6
- metadata.gz: cf059162ee26ba6252de2d326474c5ce2984358cc75aa12389013c3e8e16a716ae0f53e06245f2caf26aa21dad43ee4a14956ba9af734057fa7688740b7b0251
7
- data.tar.gz: 3c1fc08e21ba85a1fbe320d46ad8ae2519e0a8afa2544b459bcc5ab2833c12e0cd9b6f46f3309d33833c3f941005947ee75849c31e480eba4fbe0839a4419c19
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 :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"
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "4.6.0"
3
+ VERSION = "4.6.1"
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.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-06-30 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties