airbrake-ruby 4.10.0 → 4.10.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: f7d68430114320da9313ddd9a3dbfd05d3610701bcbb4156c5a36afba295de5f
4
- data.tar.gz: ecd8983a7b37efb831faa440f294db56c8a59de9b9a05c1d014493d3c3da1e94
3
+ metadata.gz: 48ada7ef05512e70461f565b7d0f501d3109c1b6934449106cb5006bdb7281db
4
+ data.tar.gz: 343e472ce390b3882543423bdb8ee50a4cc311ff3907f557a553fa57631305d7
5
5
  SHA512:
6
- metadata.gz: 95a4ae5fe3b38a8aaaaec88a65524144f509058091d414ec1d10e7c741767c00a59c5d046ba9c4861c960bde14555d58d937e3aafee983f9fdfeb1476b5a1f77
7
- data.tar.gz: adba5aecb6240193c212a6f7a4011adde53fcaf87238060d4474eaca012daf66b59d0361b4c982fa5b103a28ea7f4fcc70a5bd75f57f908a08ccdbc2062a56b3
6
+ metadata.gz: 7d68da52b648cff0b0e4c64016f5e0dd6d0143f1cf547e5604ed41ee58f9f03511e689c3acd35eef7df632d998cb56a416212ff1c952c9331ec173459641c20c
7
+ data.tar.gz: '079ac6ce90ab7b885561e7f17ab6d770630d59cbaa066664c2b0c2cabd4c28b2c594101863ef04b8e4a92e369ac5e9f3c886159f227eec370a485544cf035250'
@@ -20,7 +20,7 @@ module Airbrake
20
20
  response_type:,
21
21
  groups:,
22
22
  start_time:,
23
- end_time: Time.now
23
+ end_time: start_time + 1
24
24
  )
25
25
  @start_time_utc = TimeTruncate.utc_truncate_minutes(start_time)
26
26
  super(method, route, response_type, groups, start_time, end_time)
@@ -22,7 +22,7 @@ module Airbrake
22
22
  file: nil,
23
23
  line: nil,
24
24
  start_time:,
25
- end_time: Time.now
25
+ end_time: start_time + 1
26
26
  )
27
27
  @start_time_utc = TimeTruncate.utc_truncate_minutes(start_time)
28
28
  super(method, route, query, func, file, line, start_time, end_time)
@@ -15,7 +15,7 @@ module Airbrake
15
15
  error_count:,
16
16
  groups: {},
17
17
  start_time: Time.now,
18
- end_time: Time.now
18
+ end_time: start_time + 1
19
19
  )
20
20
  @start_time_utc = TimeTruncate.utc_truncate_minutes(start_time)
21
21
  super(queue, error_count, groups, start_time, end_time)
@@ -17,7 +17,7 @@ module Airbrake
17
17
  route:,
18
18
  status_code:,
19
19
  start_time:,
20
- end_time: Time.now
20
+ end_time: start_time + 1
21
21
  )
22
22
  @start_time_utc = TimeTruncate.utc_truncate_minutes(start_time)
23
23
  super(method, route, status_code, start_time, end_time)
@@ -2,5 +2,5 @@
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
4
  # @return [String] the library version
5
- AIRBRAKE_RUBY_VERSION = '4.10.0'.freeze
5
+ AIRBRAKE_RUBY_VERSION = '4.10.1'.freeze
6
6
  end
@@ -9,4 +9,15 @@ RSpec.describe Airbrake::PerformanceBreakdown do
9
9
 
10
10
  it { is_expected.to respond_to(:stash) }
11
11
  end
12
+
13
+ describe "#end_time" do
14
+ it "is always equal to start_time + 1 second by default" do
15
+ time = Time.now
16
+ performance_breakdown = described_class.new(
17
+ method: 'GET', route: '/', response_type: '', groups: {},
18
+ start_time: time
19
+ )
20
+ expect(performance_breakdown.end_time).to eq(time + 1)
21
+ end
22
+ end
12
23
  end
@@ -8,4 +8,14 @@ RSpec.describe Airbrake::Query do
8
8
 
9
9
  it { is_expected.to respond_to(:stash) }
10
10
  end
11
+
12
+ describe "#end_time" do
13
+ it "is always equal to start_time + 1 second by default" do
14
+ time = Time.now
15
+ query = described_class.new(
16
+ method: 'GET', route: '/', query: '', start_time: time,
17
+ )
18
+ expect(query.end_time).to eq(time + 1)
19
+ end
20
+ end
11
21
  end
@@ -8,4 +8,14 @@ RSpec.describe Airbrake::Queue do
8
8
  describe "#stash" do
9
9
  it { is_expected.to respond_to(:stash) }
10
10
  end
11
+
12
+ describe "#end_time" do
13
+ it "is always equal to start_time + 1 second by default" do
14
+ time = Time.now
15
+ queue = described_class.new(
16
+ queue: 'bananas', error_count: 0, start_time: time,
17
+ )
18
+ expect(queue.end_time).to eq(time + 1)
19
+ end
20
+ end
11
21
  end
@@ -8,4 +8,14 @@ RSpec.describe Airbrake::Request do
8
8
 
9
9
  it { is_expected.to respond_to(:stash) }
10
10
  end
11
+
12
+ describe "#end_time" do
13
+ it "is always equal to start_time + 1 second by default" do
14
+ time = Time.now
15
+ request = described_class.new(
16
+ method: 'GET', route: '/', status_code: 200, start_time: time,
17
+ )
18
+ expect(request.end_time).to eq(time + 1)
19
+ end
20
+ end
11
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.0
4
+ version: 4.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.