airbrake 8.0.0.rc.5 → 8.0.0.rc.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake/rack/middleware.rb +6 -6
- data/lib/airbrake/version.rb +1 -1
- data/spec/apps/rails/logs/42.log +9 -0
- data/spec/integration/rails/rails_spec.rb +4 -4
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b60d17b80314f88df8503f5d7ea70a7fd4e0d3c1
|
4
|
+
data.tar.gz: e02537164654c792b1dde8c91f460a759f789025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f7d69c0d479da227e73941277ca2898302d26e7614aafaade5b43f4adda5eeeb04fd8567856c6baad95f61bc46437c47302f21db5aba55f59d6c00c07d853d
|
7
|
+
data.tar.gz: e898cab1e52608b09922bd6d4b8878eeae93073a25155135f9ee29950b8566b6539670821ebf9f0b4d44688b12bbab972d7e9416ca67f13990cbef146dc6c3d4
|
@@ -106,12 +106,12 @@ module Airbrake
|
|
106
106
|
payload = event.payload
|
107
107
|
|
108
108
|
if (route = find_route(payload[:params]))
|
109
|
-
@notifier.
|
110
|
-
payload[:method],
|
111
|
-
route,
|
112
|
-
payload[:status],
|
113
|
-
event.
|
114
|
-
|
109
|
+
@notifier.notify_request(
|
110
|
+
method: payload[:method],
|
111
|
+
route: route,
|
112
|
+
status_code: payload[:status],
|
113
|
+
start_time: event.time,
|
114
|
+
end_time: Time.new
|
115
115
|
)
|
116
116
|
else
|
117
117
|
@config.logger.info(
|
data/lib/airbrake/version.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Logfile created on 2018-11-12 22:46:26 +0800 by logger.rb/56815
|
2
|
+
D, [2018-11-12T22:46:26.520684 #77412] DEBUG -- : [1m[36m (2.8ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) [0m
|
3
|
+
D, [2018-11-12T22:46:26.524464 #77412] DEBUG -- : [1m[35m (0.1ms)[0m CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)
|
4
|
+
D, [2018-11-12T22:46:26.524722 #77412] DEBUG -- : [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5
|
+
D, [2018-11-12T22:46:26.525025 #77412] DEBUG -- : [1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
6
|
+
I, [2018-11-12T22:46:26.563925 #77412] INFO -- : Started GET "/" for 127.0.0.1 at 2018-11-12 22:46:26 +0800
|
7
|
+
I, [2018-11-12T22:46:26.565688 #77412] INFO -- : Processing by DummyController#index as HTML
|
8
|
+
I, [2018-11-12T22:46:26.571767 #77412] INFO -- : Rendered dummy/index.html.erb within layouts/application (1.1ms)
|
9
|
+
I, [2018-11-12T22:46:26.572082 #77412] INFO -- : Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms)
|
@@ -11,7 +11,7 @@ RSpec.describe "Rails integration specs" do
|
|
11
11
|
# Airbrake Ruby has a background thread that sends requests to
|
12
12
|
# `/routes-stats` periodically. We don't want this to get in the way.
|
13
13
|
before do
|
14
|
-
allow(Airbrake[:default]).to receive(:
|
14
|
+
allow(Airbrake[:default]).to receive(:notify_request).and_return(nil)
|
15
15
|
end
|
16
16
|
|
17
17
|
if ::Rails.version.start_with?('5.')
|
@@ -286,15 +286,15 @@ RSpec.describe "Rails integration specs" do
|
|
286
286
|
|
287
287
|
describe "the route stats hook" do
|
288
288
|
let(:routes_endpoint) do
|
289
|
-
'https://api.airbrake.io/api/
|
289
|
+
'https://api.airbrake.io/api/v5/projects/113743/routes-stats'
|
290
290
|
end
|
291
291
|
|
292
292
|
before do
|
293
293
|
stub_request(:put, routes_endpoint).to_return(status: 200, body: '')
|
294
294
|
end
|
295
295
|
|
296
|
-
it "
|
297
|
-
expect(Airbrake[:default]).to receive(:
|
296
|
+
it "notifies request" do
|
297
|
+
expect(Airbrake[:default]).to receive(:notify_request).and_call_original
|
298
298
|
|
299
299
|
get '/crash'
|
300
300
|
sleep 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.0.rc.
|
4
|
+
version: 8.0.0.rc.6
|
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: 2018-11-
|
11
|
+
date: 2018-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake-ruby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.rc.
|
19
|
+
version: 3.0.0.rc.5
|
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: 3.0.0.rc.
|
26
|
+
version: 3.0.0.rc.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,6 +260,7 @@ files:
|
|
260
260
|
- spec/apps/rack/dummy_app.rb
|
261
261
|
- spec/apps/rails/dummy_app.rb
|
262
262
|
- spec/apps/rails/dummy_task.rake
|
263
|
+
- spec/apps/rails/logs/42.log
|
263
264
|
- spec/apps/sinatra/composite_app/sinatra_app1.rb
|
264
265
|
- spec/apps/sinatra/composite_app/sinatra_app2.rb
|
265
266
|
- spec/apps/sinatra/dummy_app.rb
|
@@ -335,3 +336,4 @@ test_files:
|
|
335
336
|
- spec/apps/rack/dummy_app.rb
|
336
337
|
- spec/apps/rails/dummy_task.rake
|
337
338
|
- spec/apps/rails/dummy_app.rb
|
339
|
+
- spec/apps/rails/logs/42.log
|