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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a52a74b95eb5a763ce6d21da44dfc2c1cbbdd733c2f140888fd3d7645e4cf890
4
- data.tar.gz: e275f2ecd44578e4e604fed42b104e0c191137199ea61572191295def1526c58
3
+ metadata.gz: a9ceb36eb4db5018e7b309949fa8ae468c07f0687c0227fd9f8b20e68e216776
4
+ data.tar.gz: e214379b67e80cb89c7f70a36739bd2f067af6fa9227acf125349a2aef2c8ea4
5
5
  SHA512:
6
- metadata.gz: 267c6dc30e8e43f2b051932165d5ce8631ba650285552e49ed810c572b984b7f87d29115eedbae0ab8283f63cbc66fc205ce9b6273fae477787e9163dad13297
7
- data.tar.gz: 989f509506d4dce0b1d45c52bc4efc7c6f909f79770703aa3ef5e8b9c00a10e8ee7776cbbce7cb10dc83a678adec9fb0be86b483f87330ce46be4044a888980d
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
 
@@ -1,3 +1,3 @@
1
1
  module Sentry
2
- VERSION = "4.7.2"
2
+ VERSION = "4.7.3"
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.7.2
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-09 00:00:00.000000000 Z
11
+ date: 2021-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday