sentry-ruby-core 4.6.3 → 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: d11c35de1743f0035364e78a4866425e8976f632363ccc83f63a9f6954e43b29
4
- data.tar.gz: 79fe8dad952d06b588407109bc10a8f191ec04739edd5115efd3dbe7a32253d8
3
+ metadata.gz: 442dc8b92f82ac1873cc066b8188d49ad4673425c2833416b5262c8076e4a13d
4
+ data.tar.gz: 1c7b5d1d49ebc37da4cd3b524b50e0d50b1e7152cbbeb8f712603a57ceeac53c
5
5
  SHA512:
6
- metadata.gz: 38d2f4b123c3df2f28117997a769cf54ea1fa4af2eb1e14cc1492b54a23ad0ed53abd8f0ae2492e30abd50df1bccd79d6e8987227ec0dae5411e7130c13821f0
7
- data.tar.gz: c1c558a090aa8852b11af61e082ecf2977e948b7cce74c1331e1f019129376492169c901bb6a1b0b89802517b0b89559899e6f414ea93b80d40fee34565a2506
6
+ metadata.gz: e5f3aa0e7950fff974c056ac389218d68677804b590e1d94bac250070130630915d72905df42d88d6beb434912f893c3a86a6e0a734c8f6b7e6b91ae44d813e2
7
+ data.tar.gz: d5f973ca005648a658c71e2c2e2a336bf68f7511b856147b4f8bcacd6234bf6d950e37d97af422dfc0c730f75e57e0e7a1ec41e2c819ed6cb222a811494d55e1
@@ -89,7 +89,7 @@ module Sentry
89
89
  # You should probably append to this rather than overwrite it.
90
90
  attr_accessor :excluded_exceptions
91
91
 
92
- # Boolean to check nested exceptions when deciding if to exclude. Defaults to false
92
+ # Boolean to check nested exceptions when deciding if to exclude. Defaults to true
93
93
  attr_accessor :inspect_exception_causes_for_exclusion
94
94
  alias inspect_exception_causes_for_exclusion? inspect_exception_causes_for_exclusion
95
95
 
data/lib/sentry/rake.rb CHANGED
@@ -1,30 +1,31 @@
1
1
  require "rake"
2
2
  require "rake/task"
3
3
 
4
- module Rake
5
- class Application
4
+ module Sentry
5
+ module Rake
6
+ module Application
7
+ def display_error_message(ex)
8
+ Sentry.capture_exception(ex, hint: { background: false }) do |scope|
9
+ task_name = top_level_tasks.join(' ')
10
+ scope.set_transaction_name(task_name)
11
+ scope.set_tag("rake_task", task_name)
12
+ end if Sentry.initialized? && !Sentry.configuration.skip_rake_integration
6
13
 
7
- alias orig_display_error_messsage display_error_message
8
- def display_error_message(ex)
9
- Sentry.capture_exception(ex, hint: { background: false }) do |scope|
10
- task_name = top_level_tasks.join(' ')
11
- scope.set_transaction_name(task_name)
12
- scope.set_tag("rake_task", task_name)
13
- end if Sentry.initialized? && !Sentry.configuration.skip_rake_integration
14
-
15
- orig_display_error_messsage(ex)
14
+ super
15
+ end
16
16
  end
17
- end
18
17
 
19
- class Task
20
- alias orig_execute execute
18
+ module Task
19
+ def execute(args=nil)
20
+ return super unless Sentry.initialized? && Sentry.get_current_hub
21
21
 
22
- def execute(args=nil)
23
- return orig_execute(args) unless Sentry.initialized? && Sentry.get_current_hub
24
-
25
- Sentry.get_current_hub.with_background_worker_disabled do
26
- orig_execute(args)
22
+ Sentry.get_current_hub.with_background_worker_disabled do
23
+ super
24
+ end
27
25
  end
28
26
  end
29
27
  end
30
28
  end
29
+
30
+ Rake::Application.prepend(Sentry::Rake::Application)
31
+ Rake::Task.prepend(Sentry::Rake::Task)
@@ -1,3 +1,3 @@
1
1
  module Sentry
2
- VERSION = "4.6.3"
2
+ VERSION = "4.6.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.3
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-07-26 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: faraday