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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f84277595125c0adb257c4a1c5f34178d43a592
4
- data.tar.gz: 7466b70c8078e520222f1f609570e5f3c1304c51
3
+ metadata.gz: b60d17b80314f88df8503f5d7ea70a7fd4e0d3c1
4
+ data.tar.gz: e02537164654c792b1dde8c91f460a759f789025
5
5
  SHA512:
6
- metadata.gz: 7ba3ca6f99b2bb674e794e19c3fab364b04240872e138053d37c3d59f901a6b25926107467d9aad82c1d1672d30b2d1fd33779449b6304386fe5338c1c76f52d
7
- data.tar.gz: c0a990aa53aa3b32563e05bf1440f062480e5d0f4879f7d8de0b780077fc1a0c3333dd7b0a2f85acd7c512c17ef5ceef973974e0a48022377c7e3999e9e0c6a9
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.inc_request(
110
- payload[:method],
111
- route,
112
- payload[:status],
113
- event.duration,
114
- event.time
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(
@@ -1,5 +1,5 @@
1
1
  # We use Semantic Versioning v2.0.0
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
- AIRBRAKE_VERSION = '8.0.0.rc.5'.freeze
4
+ AIRBRAKE_VERSION = '8.0.0.rc.6'.freeze
5
5
  end
@@ -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 -- :  (2.8ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
3
+ D, [2018-11-12T22:46:26.524464 #77412] DEBUG -- :  (0.1ms) 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 -- :  (0.1ms) select sqlite_version(*)
5
+ D, [2018-11-12T22:46:26.525025 #77412] DEBUG -- :  (0.1ms) 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(:inc_request).and_return(nil)
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/v4/projects/113743/routes-stats'
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 "increments the request count" do
297
- expect(Airbrake[:default]).to receive(:inc_request).and_call_original
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.5
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-06 00:00:00.000000000 Z
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.4
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.4
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