airbrake 9.4.4 → 9.4.5

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: 645e4f963a8955c17a652cf468917e2ae514f849
4
- data.tar.gz: 4f383442884699b67bd81943fd1c64cb527eb2d1
3
+ metadata.gz: e3451e5b75e5f477d87dc437e48bc95bee4783bd
4
+ data.tar.gz: c13ff23bd4a54accb6ba3b9eadd70fa283836f7e
5
5
  SHA512:
6
- metadata.gz: dab6ccce21fc171ef09f1d3e103ca6a02e943f997d17731da3d752ffcc789f46647789b189b827a26daace21683edc9dc6d3ada9dfebff3e869f5881d945ec5f
7
- data.tar.gz: 3f2582844fd96b45c1e378a30b5950e32b05393630c2b716e15ffe49c244321e42f1db0646c3d3bf2a315efa09c07d8d16a3a72064c1a8f6c57be36200e09dbd
6
+ metadata.gz: 92c00e765d4c72494d5c8c3046df7c6ba28a8a10168c1ca06131838c8ca6225ee461694d61c2cf8ef9a9189cf102eee31b2aec6ad5a8621223ebbf04011ef861
7
+ data.tar.gz: eefbe3fdb7e7a9157a5426114fdfe030a8f05cfa8602827bd7efe8d5279f9fc7ee4d8f900d6e94766d78ccdade11359a09edf196bf8ae439f595110ad00eed72
@@ -3,6 +3,12 @@ require 'airbrake/rails/app'
3
3
 
4
4
  module Airbrake
5
5
  module Rails
6
+ # @return [String]
7
+ CONTROLLER_KEY = 'controller'.freeze
8
+
9
+ # @return [String]
10
+ ACTION_KEY = 'action'.freeze
11
+
6
12
  # ActionControllerRouteSubscriber sends route stat information, including
7
13
  # performance data.
8
14
  #
@@ -31,8 +37,8 @@ module Airbrake
31
37
 
32
38
  def find_route(params)
33
39
  @app.routes.find do |route|
34
- route.controller == params['controller'] &&
35
- route.action == params['action']
40
+ route.controller == params[CONTROLLER_KEY] &&
41
+ route.action == params[ACTION_KEY]
36
42
  end
37
43
  end
38
44
  end
@@ -44,7 +44,7 @@ module Airbrake
44
44
 
45
45
  # rubocop:disable Metrics/BlockLength
46
46
  initializer('airbrake.action_controller') do
47
- ActiveSupport.on_load(:action_controller) do
47
+ ActiveSupport.on_load(:action_controller, run_once: true) do
48
48
  # Patches ActionController with methods that allow us to retrieve
49
49
  # interesting request data. Appends that information to notices.
50
50
  require 'airbrake/rails/action_controller'
@@ -93,7 +93,7 @@ module Airbrake
93
93
  # rubocop:enable Metrics/BlockLength
94
94
 
95
95
  initializer('airbrake.active_record') do
96
- ActiveSupport.on_load(:active_record) do
96
+ ActiveSupport.on_load(:active_record, run_once: true) do
97
97
  # Reports exceptions occurring in some bugged ActiveRecord callbacks.
98
98
  # Applicable only to the versions of Rails lower than 4.2.
99
99
  require 'airbrake/rails/active_record'
@@ -117,7 +117,7 @@ module Airbrake
117
117
  end
118
118
 
119
119
  initializer('airbrake.active_job') do
120
- ActiveSupport.on_load(:active_job) do
120
+ ActiveSupport.on_load(:active_job, run_once: true) do
121
121
  # Reports exceptions occurring in ActiveJob jobs.
122
122
  require 'airbrake/rails/active_job'
123
123
  include Airbrake::Rails::ActiveJob
@@ -125,7 +125,7 @@ module Airbrake
125
125
  end
126
126
 
127
127
  initializer('airbrake.action_cable') do
128
- ActiveSupport.on_load(:action_cable) do
128
+ ActiveSupport.on_load(:action_cable, run_once: true) do
129
129
  # Reports exceptions occurring in ActionCable connections.
130
130
  require 'airbrake/rails/action_cable'
131
131
  end
@@ -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 = '9.4.4'.freeze
4
+ AIRBRAKE_VERSION = '9.4.5'.freeze
5
5
  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: 9.4.4
4
+ version: 9.4.5
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: 2019-09-18 00:00:00.000000000 Z
11
+ date: 2019-10-03 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: '4.6'
19
+ version: '4.7'
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: '4.6'
26
+ version: '4.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -226,6 +226,20 @@ dependencies:
226
226
  - - '='
227
227
  - !ruby/object:Gem::Version
228
228
  version: 1.13.0
229
+ - !ruby/object:Gem::Dependency
230
+ name: minitest
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - '='
234
+ - !ruby/object:Gem::Version
235
+ version: 5.11.3
236
+ type: :development
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - '='
241
+ - !ruby/object:Gem::Version
242
+ version: 5.11.3
229
243
  - !ruby/object:Gem::Dependency
230
244
  name: sidekiq
231
245
  requirement: !ruby/object:Gem::Requirement