airbrake 9.0.1 → 9.0.2

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: 6b052ec8fac4804c17070080aaa32d470d7981ce
4
- data.tar.gz: 5e3ed5534b0c06bec73b191c31707ce2c1f6f0ef
3
+ metadata.gz: b651c574c9a432d01a65a47063a6be586faae974
4
+ data.tar.gz: f4382963b76821ff6db3e05eab098e3fb7756af4
5
5
  SHA512:
6
- metadata.gz: 810736678fca377fd0930f71912a3b400a565719304ba5b41b4ac73b63f1a04f32d730d2cfe07d873744701cf16129ed5d4f1edc77d2bd98d42fb722de6ee5e3
7
- data.tar.gz: c3fcdc0990c53269c0680ab08e0cecfc1be1963503eb33bfa9224d6423e4f1400e9d367ab76e4dff7301135b06e6638601e01c2a8df74c5563408b88ff372e3f
6
+ metadata.gz: b66c6fe884156be351dd53466827ca313f9cd28fb05ace4a2011e9ef8cd4af9f402c06b7583fc6f730bc5e5b980c1f44d78986702e85c05387406ebb71970204
7
+ data.tar.gz: bb96cbdd5636c853f56e153c14c503c53a12cd8c7c7cb337d2ca07d41ef5a8ea3dcbc8d7f45a6a37d97ba760875784067b505f6a150a38877afb42999701f9bd
@@ -8,24 +8,3 @@ require 'airbrake/rack/request_body_filter'
8
8
  require 'airbrake/rack/route_filter'
9
9
  require 'airbrake/rack/middleware'
10
10
  require 'airbrake/rack/request_store'
11
-
12
- module Airbrake
13
- # Rack is a namespace for all Rack-related features.
14
- module Rack
15
- # Adds the list of default Rack filters that read Rack request information
16
- # and append it to notices.
17
- # @since 9.0.0
18
- def self.add_default_filters
19
- [
20
- Airbrake::Rack::ContextFilter,
21
- Airbrake::Rack::UserFilter,
22
- Airbrake::Rack::SessionFilter,
23
- Airbrake::Rack::HttpParamsFilter,
24
- Airbrake::Rack::HttpHeadersFilter,
25
- Airbrake::Rack::RouteFilter
26
- ].each do |filter|
27
- Airbrake.add_filter(filter.new)
28
- end
29
- end
30
- end
31
- end
@@ -79,3 +79,14 @@ module Airbrake
79
79
  end
80
80
  end
81
81
  end
82
+
83
+ [
84
+ Airbrake::Rack::ContextFilter,
85
+ Airbrake::Rack::UserFilter,
86
+ Airbrake::Rack::SessionFilter,
87
+ Airbrake::Rack::HttpParamsFilter,
88
+ Airbrake::Rack::HttpHeadersFilter,
89
+ Airbrake::Rack::RouteFilter
90
+ ].each do |filter|
91
+ Airbrake.add_filter(filter.new)
92
+ end
@@ -118,10 +118,6 @@ module Airbrake
118
118
  Airbrake.notify_sync($ERROR_INFO) if $ERROR_INFO
119
119
  end
120
120
  end
121
-
122
- config.after_initialize do
123
- Airbrake::Rack.add_default_filters
124
- end
125
121
  end
126
122
  end
127
123
  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.0.1'.freeze
4
+ AIRBRAKE_VERSION = '9.0.2'.freeze
5
5
  end
@@ -3,8 +3,6 @@ DummyApp = Rack::Builder.new do
3
3
  use Airbrake::Rack::Middleware
4
4
  use Warden::Manager
5
5
 
6
- Airbrake::Rack.add_default_filters
7
-
8
6
  map '/' do
9
7
  run(
10
8
  proc do |_env|
@@ -10,5 +10,3 @@ class SinatraTestApp < Sinatra::Base
10
10
  raise AirbrakeTestError
11
11
  end
12
12
  end
13
-
14
- Airbrake::Rack.add_default_filters
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.0.1
4
+ version: 9.0.2
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-04-04 00:00:00.000000000 Z
11
+ date: 2019-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby