sentry-ruby-core 4.7.2 → 4.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sentry/hub.rb +6 -4
- data/lib/sentry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9ceb36eb4db5018e7b309949fa8ae468c07f0687c0227fd9f8b20e68e216776
|
4
|
+
data.tar.gz: e214379b67e80cb89c7f70a36739bd2f067af6fa9227acf125349a2aef2c8ea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bfdb4d169ba1d9c896273401df8891b51f5fc016609154a1ec02bf064bf956bc4ce69ab85cafc4c82001ccaf475d86bc18d4064f1cdd8563ae03761a0245604
|
7
|
+
data.tar.gz: 53ce1e1f6d4957a1c3ad327cc7e51d154da1da32c863ad21fd0ce3aca09273fa794c08b39ee7adfafd96e7afa30555b87a2f2013b345906a0218001d177d3bec
|
data/lib/sentry/hub.rb
CHANGED
@@ -90,10 +90,10 @@ module Sentry
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def capture_exception(exception, **options, &block)
|
93
|
-
return unless current_client
|
94
|
-
|
95
93
|
check_argument_type!(exception, ::Exception)
|
96
94
|
|
95
|
+
return unless current_client
|
96
|
+
|
97
97
|
options[:hint] ||= {}
|
98
98
|
options[:hint][:exception] = exception
|
99
99
|
event = current_client.event_from_exception(exception, options[:hint])
|
@@ -104,6 +104,8 @@ module Sentry
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def capture_message(message, **options, &block)
|
107
|
+
check_argument_type!(message, ::String)
|
108
|
+
|
107
109
|
return unless current_client
|
108
110
|
|
109
111
|
options[:hint] ||= {}
|
@@ -114,10 +116,10 @@ module Sentry
|
|
114
116
|
end
|
115
117
|
|
116
118
|
def capture_event(event, **options, &block)
|
117
|
-
return unless current_client
|
118
|
-
|
119
119
|
check_argument_type!(event, Sentry::Event)
|
120
120
|
|
121
|
+
return unless current_client
|
122
|
+
|
121
123
|
hint = options.delete(:hint) || {}
|
122
124
|
scope = current_scope.dup
|
123
125
|
|
data/lib/sentry/version.rb
CHANGED
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.7.
|
4
|
+
version: 4.7.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-09-
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|