airbrake 5.4.2 → 5.4.3

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: 7c96d49db3765ae710e6435cbcf9c8e8ccc55a4e
4
- data.tar.gz: 35501c1865c7a5a442937b6c9ebdc362c580d367
3
+ metadata.gz: 8c118d6c1d986883f1df2b8d3729e625fd3769be
4
+ data.tar.gz: 70b3afa12edcc6488b1ec4ebe7da36b70f5d54b3
5
5
  SHA512:
6
- metadata.gz: 16ddeac2bcd36a4bfa76444a162436d39d51eed16fe55a3b151a9e2cb2e3f69ac4fe49bb4938ffb064c85874a293fdcbbe981e2b3f9c24df86ef25a3e878772d
7
- data.tar.gz: b6f104ebf473801ea274581a5454d175cc283f1cdea54ccd308fcd3ad8f5dbd6385a74d36a6aae03f492f457727ba6ea0435a57439bfad237a77145d7a6fb46a
6
+ metadata.gz: 7427bd1b5c4284784e18101efec21e0e46c5f56efa4b5db779207e90a3a43044123b7c4b6cb210543a8e3e09342fdc60f4d97114d865fec468cf05c84d090576
7
+ data.tar.gz: 8128645f6e582557341742344adf16f4c30bec78826f75223038538f6d955030acb0df1ebf33c8c9bfa57af0790b71c98015732f06a890c1d514c1f50def7541
@@ -19,13 +19,19 @@ module Airbrake
19
19
  ActionDispatch::DebugExceptions,
20
20
  Airbrake::Rack::Middleware
21
21
  )
22
- else
22
+ elsif defined?(ActiveRecord)
23
23
  # Insert after ConnectionManagement to avoid DB connection leakage:
24
24
  # https://github.com/airbrake/airbrake/pull/568
25
25
  app.config.middleware.insert_after(
26
26
  ActiveRecord::ConnectionAdapters::ConnectionManagement,
27
27
  'Airbrake::Rack::Middleware'
28
28
  )
29
+ else
30
+ # Insert after DebugExceptions for apps without ActiveRecord.
31
+ app.config.middleware.insert_after(
32
+ ActionDispatch::DebugExceptions,
33
+ 'Airbrake::Rack::Middleware'
34
+ )
29
35
  end
30
36
  end
31
37
 
@@ -2,5 +2,5 @@
2
2
  # We use Semantic Versioning v2.0.0
3
3
  # More information: http://semver.org/
4
4
  module Airbrake
5
- AIRBRAKE_VERSION = '5.4.2'.freeze
5
+ AIRBRAKE_VERSION = '5.4.3'.freeze
6
6
  end
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: 5.4.2
4
+ version: 5.4.3
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: 2016-07-15 00:00:00.000000000 Z
11
+ date: 2016-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby