airbrake-ruby 6.2.0 → 6.2.1
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/async_sender.rb +5 -3
- data/lib/airbrake-ruby/config.rb +15 -7
- data/lib/airbrake-ruby/tdigest.rb +1 -1
- data/lib/airbrake-ruby/thread_pool.rb +0 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- metadata +103 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 868a2afd78cb0fe3fa7c94fdfcef19cc34c3355ebe9665945f37326410deaa95
|
4
|
+
data.tar.gz: 6e21e26d4999a8bcb1044f96952718835d9c49b79167593be0d4f2529e7b8153
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26d41719d656683977497104627ae82024868b75372db7886b18bef8bb654f6f5fe7617770b2d981063fb3dfa139e1011b65ad190ed93fa850118ca06bf0bb8f
|
7
|
+
data.tar.gz: 5d1fcffd4559b02a2e0a3c57561f6cec279e4561db5c28eb09dadfd4a174347ad7e8d62df9162248359f78b70fac89c363f9b673cc71d1d303faa28db2681c68
|
@@ -13,10 +13,12 @@ module Airbrake
|
|
13
13
|
|
14
14
|
# Asynchronously sends a notice to Airbrake.
|
15
15
|
#
|
16
|
-
# @param [Airbrake::Notice]
|
16
|
+
# @param [Airbrake::Notice] data Whatever needs to be sent
|
17
|
+
# @param [Airbrake::Promise] promise
|
18
|
+
# @param [URI] endpoint Where to send +data+
|
17
19
|
# @return [Airbrake::Promise]
|
18
|
-
def send(
|
19
|
-
unless thread_pool << [
|
20
|
+
def send(data, promise, endpoint = @config.error_endpoint)
|
21
|
+
unless thread_pool << [data, promise, endpoint]
|
20
22
|
return promise.reject(
|
21
23
|
"AsyncSender has reached its capacity of #{@config.queue_size}",
|
22
24
|
)
|
data/lib/airbrake-ruby/config.rb
CHANGED
@@ -44,12 +44,8 @@ module Airbrake
|
|
44
44
|
# @return [String] the host, which provides the API endpoint to which
|
45
45
|
# exceptions should be sent
|
46
46
|
# @api public
|
47
|
-
attr_accessor :host
|
48
|
-
|
49
|
-
# @since v5.0.0
|
50
|
-
alias error_host host
|
51
47
|
# @since v5.0.0
|
52
|
-
|
48
|
+
attr_accessor :error_host
|
53
49
|
|
54
50
|
# @return [String] the host, which provides the API endpoint to which
|
55
51
|
# APM data should be sent
|
@@ -163,8 +159,7 @@ module Airbrake
|
|
163
159
|
self.logger = ::Logger.new(File::NULL).tap { |l| l.level = Logger::WARN }
|
164
160
|
self.project_id = user_config[:project_id]
|
165
161
|
self.project_key = user_config[:project_key]
|
166
|
-
self.error_host = 'https://api.airbrake.io'
|
167
|
-
self.apm_host = 'https://api.airbrake.io'
|
162
|
+
self.error_host = self.apm_host = 'https://api.airbrake.io'
|
168
163
|
self.remote_config_host = 'https://notifier-configs.airbrake.io'
|
169
164
|
|
170
165
|
self.ignore_environments = []
|
@@ -269,6 +264,19 @@ module Airbrake
|
|
269
264
|
end
|
270
265
|
end
|
271
266
|
|
267
|
+
HOST_DEPRECATION_MSG = "**Airbrake: the 'host' option is deprecated. Use " \
|
268
|
+
"'error_host' instead".freeze
|
269
|
+
|
270
|
+
def host
|
271
|
+
logger.warn(HOST_DEPRECATION_MSG)
|
272
|
+
@error_host
|
273
|
+
end
|
274
|
+
|
275
|
+
def host=(value)
|
276
|
+
logger.warn(HOST_DEPRECATION_MSG)
|
277
|
+
@error_host = value
|
278
|
+
end
|
279
|
+
|
272
280
|
private
|
273
281
|
|
274
282
|
def set_option(option, value)
|
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.2.
|
4
|
+
version: 6.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtree3
|
@@ -16,14 +16,112 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-its
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '13'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '13'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.8'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: benchmark-ips
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.9'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.9'
|
27
125
|
description: |
|
28
126
|
Airbrake Ruby is a plain Ruby notifier for Airbrake (https://airbrake.io), the
|
29
127
|
leading exception reporting service. Airbrake Ruby provides minimalist API that
|
@@ -114,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
212
|
- !ruby/object:Gem::Version
|
115
213
|
version: '0'
|
116
214
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
215
|
+
rubygems_version: 3.4.6
|
118
216
|
signing_key:
|
119
217
|
specification_version: 4
|
120
218
|
summary: Ruby notifier for https://airbrake.io
|