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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 957248cf16866b1a8c873216c0179a79cc39189758f364254ae6534cde41ebda
4
- data.tar.gz: d579021d4b619b7307643559ca1a0d19f22782305b3a91a56c25d6e393402949
3
+ metadata.gz: 868a2afd78cb0fe3fa7c94fdfcef19cc34c3355ebe9665945f37326410deaa95
4
+ data.tar.gz: 6e21e26d4999a8bcb1044f96952718835d9c49b79167593be0d4f2529e7b8153
5
5
  SHA512:
6
- metadata.gz: 367780539773c946676d19ef6e76ed4b98abf8009f4d3c8715837b07dafaaa1bee207bc01fac0b04765bf7889a22d0ca3802462e3d0c062cc708fb9b016b103b
7
- data.tar.gz: 1deb29c06f902730deb860150354da8c8a781cf5082daeb5305c47b33d6c6221d5d35fdc6ad2311d4dff22923cc0b015e6e7ceac756365709dc69987e90d7326
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] payload Whatever needs to be sent
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(notice, promise, endpoint = @config.error_endpoint)
19
- unless thread_pool << [notice, promise, endpoint]
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
  )
@@ -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
- alias error_host= host=
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)
@@ -79,7 +79,7 @@ module Airbrake
79
79
  end
80
80
  output += mean_arr
81
81
  # Variable length encoding of numbers
82
- c_arr = @centroids.each_value.each_with_object([]) do |c, arr|
82
+ c_arr = @centroids.each_value.with_object([]) do |c, arr|
83
83
  k = 0
84
84
  n = c.n
85
85
  while n < 0 || n > 0x7f
@@ -122,7 +122,6 @@ module Airbrake
122
122
 
123
123
  def spawn_workers
124
124
  @worker_size.times { @workers.add(spawn_worker) }
125
- @workers.enclose
126
125
  end
127
126
 
128
127
  private
@@ -3,7 +3,7 @@
3
3
  module Airbrake
4
4
  # @return [String] the library version
5
5
  # @api public
6
- AIRBRAKE_RUBY_VERSION = '6.2.0'.freeze
6
+ AIRBRAKE_RUBY_VERSION = '6.2.1'.freeze
7
7
 
8
8
  # @return [Hash{Symbol=>String}] the information about the notifier library
9
9
  # @since v5.0.0
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.0
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: 2022-09-05 00:00:00.000000000 Z
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.5'
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.5'
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.3.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