airbrake-ruby 6.1.1-java → 6.1.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake-ruby/nested_exception.rb +13 -1
- data/lib/airbrake-ruby/sync_sender.rb +2 -2
- data/lib/airbrake-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f885330e360e61f8b2779c9d03b98b2794ef6e9e2fa9453bbd15630513780c4
|
4
|
+
data.tar.gz: b054ea5189464b1ebf822812cb7192893fbf84ef085b57fdfca9ead3d3361c6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a577980c05f36c8e1e90fdf9181e9cafd35dd6b66cca387f3c3250aac8eb7d3d0838d241ae19b93c383f10e00b2e862ab0154754b382e9c7a3d664bc40620d2c
|
7
|
+
data.tar.gz: ee6edd6c1a279ba33ca4e898198aff4147e07be36feb9aa165fd076668499a08cc41d8fc5158dff09ee9fc7d5732f0e5c87b4e3bc1ca57d39485651d0431082a
|
@@ -18,6 +18,9 @@ module Airbrake
|
|
18
18
|
# @return [String]
|
19
19
|
RUBY_31_ERROR_HIGHLIGHTING_DIVIDER = "\n\n".freeze
|
20
20
|
|
21
|
+
# @return [Hash] the options for +String#encode+
|
22
|
+
ENCODING_OPTIONS = { invalid: :replace, undef: :replace }.freeze
|
23
|
+
|
21
24
|
def initialize(exception)
|
22
25
|
@exception = exception
|
23
26
|
end
|
@@ -25,7 +28,7 @@ module Airbrake
|
|
25
28
|
def as_json
|
26
29
|
unwind_exceptions.map do |exception|
|
27
30
|
{ type: exception.class.name,
|
28
|
-
message:
|
31
|
+
message: message(exception),
|
29
32
|
backtrace: Backtrace.parse(exception) }
|
30
33
|
end
|
31
34
|
end
|
@@ -43,5 +46,14 @@ module Airbrake
|
|
43
46
|
|
44
47
|
exception_list
|
45
48
|
end
|
49
|
+
|
50
|
+
def message(exception)
|
51
|
+
return unless (msg = exception.message)
|
52
|
+
|
53
|
+
msg
|
54
|
+
.encode(Encoding::UTF_8, **ENCODING_OPTIONS)
|
55
|
+
.split(RUBY_31_ERROR_HIGHLIGHTING_DIVIDER)
|
56
|
+
.first
|
57
|
+
end
|
46
58
|
end
|
47
59
|
end
|
@@ -80,8 +80,8 @@ module Airbrake
|
|
80
80
|
req['Authorization'] = "Bearer #{@config.project_key}"
|
81
81
|
req['Content-Type'] = CONTENT_TYPE
|
82
82
|
req['User-Agent'] =
|
83
|
-
"#{Airbrake::NOTIFIER_INFO[:name]}/#{Airbrake::AIRBRAKE_RUBY_VERSION}" \
|
84
|
-
"
|
83
|
+
"#{Airbrake::NOTIFIER_INFO[:name]}/#{Airbrake::AIRBRAKE_RUBY_VERSION} " \
|
84
|
+
"Ruby/#{RUBY_VERSION}"
|
85
85
|
|
86
86
|
req
|
87
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtree-jruby
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.3.3
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Ruby notifier for https://airbrake.io
|