honeybadger 4.5.4 → 4.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/honeybadger/config.rb +6 -6
- data/lib/honeybadger/config/ruby.rb +6 -6
- data/lib/honeybadger/plugin.rb +6 -6
- data/lib/honeybadger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d10b44dcc496d25ac018e8b636886a72bf143ab354a63e65f72a01ac93012c48
|
4
|
+
data.tar.gz: 823b72ff2411d1432eef6a7350b1f0eea6b0419a75e76c978ac4c4fa517b0444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fac043a475c0bec627d4596e9668a05abdb32da750cfa77d5c2bd1e2d9abce479f7d3a1126c7ac8ff09edec7bec3a03c4ad70b728d643617ad7712647cd2f424
|
7
|
+
data.tar.gz: 302b5d830b45cb93b0592aee5d8d75ad33af920b3e020746ba881dfa8392ac324ebe60b681b970c9e05eb36b5c2dbe3de3f67701a9a7c12f3c9a4c9424b8a7cd
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [4.5.5] - 2020-01-06
|
9
|
+
### Fixed
|
10
|
+
- Replace empty `Proc.new` with explicit block param to suppress warnings
|
11
|
+
in Ruby 2.7
|
12
|
+
|
8
13
|
## [4.5.4] - 2019-12-09
|
9
14
|
### Fixed
|
10
15
|
- Re-released to remove vendor cruft
|
data/lib/honeybadger/config.rb
CHANGED
@@ -79,10 +79,10 @@ module Honeybadger
|
|
79
79
|
self
|
80
80
|
end
|
81
81
|
|
82
|
-
def backtrace_filter
|
82
|
+
def backtrace_filter(&block)
|
83
83
|
if block_given?
|
84
84
|
warn('DEPRECATED: backtrace_filter is deprecated. Please use before_notify instead. See https://docs.honeybadger.io/ruby/support/v4-upgrade#backtrace_filter')
|
85
|
-
self[:backtrace_filter] =
|
85
|
+
self[:backtrace_filter] = block
|
86
86
|
end
|
87
87
|
|
88
88
|
self[:backtrace_filter]
|
@@ -92,19 +92,19 @@ module Honeybadger
|
|
92
92
|
(ruby[:before_notify] || []).clone
|
93
93
|
end
|
94
94
|
|
95
|
-
def exception_filter
|
95
|
+
def exception_filter(&block)
|
96
96
|
if block_given?
|
97
97
|
warn('DEPRECATED: exception_filter is deprecated. Please use before_notify instead. See https://docs.honeybadger.io/ruby/support/v4-upgrade#exception_filter')
|
98
|
-
self[:exception_filter] =
|
98
|
+
self[:exception_filter] = block
|
99
99
|
end
|
100
100
|
|
101
101
|
self[:exception_filter]
|
102
102
|
end
|
103
103
|
|
104
|
-
def exception_fingerprint
|
104
|
+
def exception_fingerprint(&block)
|
105
105
|
if block_given?
|
106
106
|
warn('DEPRECATED: exception_fingerprint is deprecated. Please use before_notify instead. See https://docs.honeybadger.io/ruby/support/v4-upgrade#exception_fingerprint')
|
107
|
-
self[:exception_fingerprint] =
|
107
|
+
self[:exception_fingerprint] = block
|
108
108
|
end
|
109
109
|
|
110
110
|
self[:exception_fingerprint]
|
@@ -93,28 +93,28 @@ module Honeybadger
|
|
93
93
|
hash[:before_notify] = hooks
|
94
94
|
end
|
95
95
|
|
96
|
-
def backtrace_filter
|
96
|
+
def backtrace_filter(&block)
|
97
97
|
if block_given?
|
98
98
|
logger.warn('DEPRECATED: backtrace_filter is deprecated. Please use before_notify instead. See https://docs.honeybadger.io/ruby/support/v4-upgrade#backtrace_filter')
|
99
|
-
hash[:backtrace_filter] =
|
99
|
+
hash[:backtrace_filter] = block if block_given?
|
100
100
|
end
|
101
101
|
|
102
102
|
get(:backtrace_filter)
|
103
103
|
end
|
104
104
|
|
105
|
-
def exception_filter
|
105
|
+
def exception_filter(&block)
|
106
106
|
if block_given?
|
107
107
|
logger.warn('DEPRECATED: exception_filter is deprecated. Please use before_notify instead. See https://docs.honeybadger.io/ruby/support/v4-upgrade#exception_filter')
|
108
|
-
hash[:exception_filter] =
|
108
|
+
hash[:exception_filter] = block
|
109
109
|
end
|
110
110
|
|
111
111
|
get(:exception_filter)
|
112
112
|
end
|
113
113
|
|
114
|
-
def exception_fingerprint
|
114
|
+
def exception_fingerprint(&block)
|
115
115
|
if block_given?
|
116
116
|
logger.warn('DEPRECATED: exception_fingerprint is deprecated. Please use before_notify instead. See https://docs.honeybadger.io/ruby/support/v4-upgrade#exception_fingerprint')
|
117
|
-
hash[:exception_fingerprint] =
|
117
|
+
hash[:exception_fingerprint] = block
|
118
118
|
end
|
119
119
|
|
120
120
|
get(:exception_fingerprint)
|
data/lib/honeybadger/plugin.rb
CHANGED
@@ -66,11 +66,11 @@ module Honeybadger
|
|
66
66
|
# +snake_case+. The name is inferred from the current file name if omitted.
|
67
67
|
#
|
68
68
|
# @return nil
|
69
|
-
def register(name = nil)
|
69
|
+
def register(name = nil, &block)
|
70
70
|
name ||= name_from_caller(caller) or
|
71
71
|
raise(ArgumentError, 'Plugin name is required, but was nil.')
|
72
72
|
instances[key = name.to_sym] and fail("Already registered: #{name}")
|
73
|
-
instances[key] = new(name).tap { |d| d.instance_eval(&
|
73
|
+
instances[key] = new(name).tap { |d| d.instance_eval(&block) }
|
74
74
|
end
|
75
75
|
|
76
76
|
# @api private
|
@@ -136,8 +136,8 @@ module Honeybadger
|
|
136
136
|
# end
|
137
137
|
#
|
138
138
|
# @return nil
|
139
|
-
def requirement
|
140
|
-
@requirements <<
|
139
|
+
def requirement(&block)
|
140
|
+
@requirements << block
|
141
141
|
end
|
142
142
|
|
143
143
|
# Define an execution block. Execution blocks will be executed if all
|
@@ -161,8 +161,8 @@ module Honeybadger
|
|
161
161
|
# end
|
162
162
|
#
|
163
163
|
# @return nil
|
164
|
-
def execution
|
165
|
-
@executions <<
|
164
|
+
def execution(&block)
|
165
|
+
@executions << block
|
166
166
|
end
|
167
167
|
|
168
168
|
# @api private
|
data/lib/honeybadger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Honeybadger Industries LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|