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 +4 -4
- data/lib/airbrake-ruby/performance_breakdown.rb +1 -1
- data/lib/airbrake-ruby/query.rb +1 -1
- data/lib/airbrake-ruby/queue.rb +1 -1
- data/lib/airbrake-ruby/request.rb +1 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/performance_breakdown_spec.rb +11 -0
- data/spec/query_spec.rb +10 -0
- data/spec/queue_spec.rb +10 -0
- data/spec/request_spec.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48ada7ef05512e70461f565b7d0f501d3109c1b6934449106cb5006bdb7281db
|
4
|
+
data.tar.gz: 343e472ce390b3882543423bdb8ee50a4cc311ff3907f557a553fa57631305d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d68da52b648cff0b0e4c64016f5e0dd6d0143f1cf547e5604ed41ee58f9f03511e689c3acd35eef7df632d998cb56a416212ff1c952c9331ec173459641c20c
|
7
|
+
data.tar.gz: '079ac6ce90ab7b885561e7f17ab6d770630d59cbaa066664c2b0c2cabd4c28b2c594101863ef04b8e4a92e369ac5e9f3c886159f227eec370a485544cf035250'
|
data/lib/airbrake-ruby/query.rb
CHANGED
data/lib/airbrake-ruby/queue.rb
CHANGED
@@ -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
|
data/spec/query_spec.rb
CHANGED
@@ -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
|
data/spec/queue_spec.rb
CHANGED
@@ -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
|
data/spec/request_spec.rb
CHANGED
@@ -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
|