airbrake 8.1.0 → 8.1.1

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: fbe305f826de49ebaad053fb88ebc0c4e0ed9b72
4
- data.tar.gz: b87d5c8aea29a9c98df891f69da2b73b9ee458e7
3
+ metadata.gz: 8819ab2225ac8b9224d2ee701aaf3815a1c18af8
4
+ data.tar.gz: 44e4c87574f7add4d6a71e5029ddd82e6f26847e
5
5
  SHA512:
6
- metadata.gz: 248b4864d3290a4a75863d0165ddfa904d7c8f8b7d3b5a5bd4185923990cbfadf86742c31257191302d6114fd2cc8b4baa73178fddf21baea634e86a164b56da
7
- data.tar.gz: 23ed1467f4b3ca911a37bd44833f9b62f12e7f4adbbd005dea534c8ea46382d87b51f988d6953c8fc17c9cce43a1c08c2643087a6d0daef18036480aad4b0717
6
+ metadata.gz: b1641b28731f4c05bee5863b3cd59563184a2a17c67c1805654127bf05dba293022f30bb2e1a44bd2da8188d9847fa5632b0eb6c41c3603041a3f23f932ce757
7
+ data.tar.gz: a0f83696463bc113eabf5f47cecb9ebc6aa3b23e191f8f83a8f8f1f93ba7d18c08bcaeeb75824bde742c3ca2642c25b53c367c8b9e0a509b088c0e7dcaecea2a
@@ -43,7 +43,8 @@ module Airbrake
43
43
  @notice_notifier.add_filter(filter.new)
44
44
  end
45
45
 
46
- install_rails_hooks if defined?(Rails)
46
+ install_action_controller_hooks if defined?(Rails)
47
+ install_active_record_hooks if defined?(ActiveRecord)
47
48
  end
48
49
 
49
50
  # Rescues any exceptions, sends them to Airbrake and re-raises the
@@ -97,23 +98,12 @@ module Airbrake
97
98
  env['rack.exception']
98
99
  end
99
100
 
100
- def install_rails_hooks
101
- @performance_notifier.add_filter(
102
- Airbrake::Filters::SqlFilter.new(
103
- ActiveRecord::Base.connection_config[:adapter]
104
- )
105
- )
106
-
101
+ def install_action_controller_hooks
107
102
  ActiveSupport::Notifications.subscribe(
108
103
  'start_processing.action_controller',
109
104
  Airbrake::Rails::ActionControllerRouteSubscriber.new
110
105
  )
111
106
 
112
- ActiveSupport::Notifications.subscribe(
113
- 'sql.active_record',
114
- Airbrake::Rails::ActiveRecordSubscriber.new(@performance_notifier)
115
- )
116
-
117
107
  ActiveSupport::Notifications.subscribe(
118
108
  'process_action.action_controller',
119
109
  Airbrake::Rails::ActionControllerNotifySubscriber.new(
@@ -121,6 +111,18 @@ module Airbrake
121
111
  )
122
112
  )
123
113
  end
114
+
115
+ def install_active_record_hooks
116
+ @performance_notifier.add_filter(
117
+ Airbrake::Filters::SqlFilter.new(
118
+ ActiveRecord::Base.connection_config[:adapter]
119
+ )
120
+ )
121
+ ActiveSupport::Notifications.subscribe(
122
+ 'sql.active_record',
123
+ Airbrake::Rails::ActiveRecordSubscriber.new(@performance_notifier)
124
+ )
125
+ end
124
126
  end
125
127
  end
126
128
  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 = '8.1.0'.freeze
4
+ AIRBRAKE_VERSION = '8.1.1'.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: 8.1.0
4
+ version: 8.1.1
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-02-12 00:00:00.000000000 Z
11
+ date: 2019-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby