airbrake-ruby 4.10.0-java → 4.10.1-java
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: 992c11be859d889822b3dd338b8f2befcbc91d7a91313fb28e14670d635408d2
|
4
|
+
data.tar.gz: 343e472ce390b3882543423bdb8ee50a4cc311ff3907f557a553fa57631305d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6636fa8d3a77792c4edc3ebd436d0e25b87ca628b820588850ab58a82cd3a5944bd7218bccea882bd0a0117d4ea042b576b54e14e06b7d472b0db05b20cf1666
|
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
|