airbrake-ruby 5.2.1 → 6.0.0

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: 6a073eaf249f96805546ce1d9cc45f45ca3a3a09c36bb2c5cbe8b4f145c03fca
4
- data.tar.gz: 714f8424b206e2842237c5417833118d2960e1eb0a1c4ff7d16ad75467b9bfc1
3
+ metadata.gz: f8371a959c69ffddca0dd25b6e8096450ecea66e13ddd6f6ace583eb37976516
4
+ data.tar.gz: f769f0604e3dd7118df53cb6de2e3115beed43a898e9eefb5828174c29f16f67
5
5
  SHA512:
6
- metadata.gz: 605bcaf8e438ae77a781d2ae6bc03b4525003e5faa0572cb007aa4f6ae07413518b77eea1cbf947599f1151eff27e35a1ee47e9864c83768ee409795d748f116
7
- data.tar.gz: af89bef16ed1f0f64b1e65484d680cdd5204905d5981c7a1310d19c9d875cf4ce702b06d51b4c508985b5e1cc7d0a87b33c7cc8a002d673bad11dffa4fc0f248
6
+ metadata.gz: ef094ddf119abfe8fd552980dbbc05ce907ed7608c12f7012fbcde1ee7861a33da67a435c8ef6fc378ef2490274050b7ccde598ac2a1f0f1098cd587c36b1222
7
+ data.tar.gz: 737a3900b60024d24303d10277d89ab782f60c58cadeb8e7fef3b7da17e983c8dd0033724e3640fe07d3428f1f86952f65ef378f81547213c2a8b11a9271eaa7
@@ -36,7 +36,7 @@ module Airbrake
36
36
  `cd #{@git_path} && git config --get remote.origin.url`.chomp
37
37
  else
38
38
  "`git remote get-url` is unsupported in git #{@git_version}. " \
39
- 'Consider an upgrade to 2.7+'
39
+ 'Consider an upgrade to 2.7+'
40
40
  end
41
41
 
42
42
  return unless @repository
@@ -39,7 +39,7 @@ module Airbrake
39
39
 
40
40
  def time_in_nanoseconds
41
41
  time = Time.now
42
- time.to_i * (10**9) + time.nsec
42
+ (time.to_i * (10**9)) + time.nsec
43
43
  end
44
44
 
45
45
  end
@@ -256,7 +256,7 @@ module Airbrake
256
256
  array = bytes[start_idx..-1].unpack("G#{size}N#{size}")
257
257
  means, counts = array.each_slice(size).to_a if array.any?
258
258
  when SMALL_ENCODING
259
- means = bytes[start_idx..(start_idx + 4 * size)].unpack("g#{size}")
259
+ means = bytes[start_idx..(start_idx + (4 * size))].unpack("g#{size}")
260
260
  # Decode delta encoding of means
261
261
  x = 0
262
262
  means.map! do |m|
@@ -264,7 +264,7 @@ module Airbrake
264
264
  x = m
265
265
  m
266
266
  end
267
- counts_bytes = bytes[(start_idx + 4 * size)..-1].unpack('C*')
267
+ counts_bytes = bytes[(start_idx + (4 * size))..-1].unpack('C*')
268
268
  counts = []
269
269
  # Decode variable length integer bytes
270
270
  size.times do
@@ -327,7 +327,7 @@ module Airbrake
327
327
 
328
328
  cumn = 0
329
329
  @centroids.each_value do |c|
330
- c.mean_cumn = cumn + c.n / 2.0
330
+ c.mean_cumn = cumn + (c.n / 2.0)
331
331
  cumn = c.cumn = cumn + c.n
332
332
  end
333
333
  @size = @last_cumulate = cumn
@@ -3,7 +3,7 @@
3
3
  module Airbrake
4
4
  # @return [String] the library version
5
5
  # @api public
6
- AIRBRAKE_RUBY_VERSION = '5.2.1'.freeze
6
+ AIRBRAKE_RUBY_VERSION = '6.0.0'.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: 5.2.1
4
+ version: 6.0.0
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: 2021-06-22 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbtree3
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
- version: '2.3'
167
+ version: '2.5'
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="