honeybadger 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -12
- data/gemfiles/rack.gemfile.lock +1 -1
- data/gemfiles/rails2.3.gemfile.lock +1 -1
- data/gemfiles/rails3.0.gemfile.lock +1 -1
- data/gemfiles/rails3.1.gemfile.lock +1 -1
- data/gemfiles/rails3.2.gemfile.lock +1 -1
- data/gemfiles/rails4.gemfile.lock +1 -1
- data/gemfiles/rake.gemfile.lock +1 -1
- data/gemfiles/sinatra.gemfile.lock +1 -1
- data/honeybadger.gemspec +2 -2
- data/lib/honeybadger.rb +1 -1
- data/lib/honeybadger/rails/controller_methods.rb +7 -0
- metadata +49 -20
- checksums.yaml +0 -7
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -109,6 +109,7 @@ end
|
|
109
109
|
|
110
110
|
* [Catch exceptions in Resque jobs](https://github.com/henrik/resque-honeybadger)
|
111
111
|
* [Sidekiq - Simple, efficient message processing for Ruby](https://github.com/mperham/sidekiq) (supports Honeybadger natively)
|
112
|
+
* [DelayedJob](https://github.com/honeybadger-io/delayed_job_honeybadger)
|
112
113
|
|
113
114
|
## Usage
|
114
115
|
|
@@ -130,7 +131,9 @@ end
|
|
130
131
|
|
131
132
|
The `#notify_honeybadger` call will send the notice over to Honeybadger for later
|
132
133
|
analysis. While in your controllers you use the `notify_honeybadger` method, anywhere
|
133
|
-
else in your code, use `Honeybadger.notify`.
|
134
|
+
else in your code, use `Honeybadger.notify`. If you do not want [exception filters](#filtering)
|
135
|
+
to be skipped, use `notify_honeybadger_or_ignore` and `Honeybadger.notify_or_ignore` instead.
|
136
|
+
|
134
137
|
|
135
138
|
To perform custom error processing after Honeybadger has been notified, define the
|
136
139
|
instance method `#rescue_action_in_public_without_honeybadger(exception)` in your
|
@@ -193,16 +196,9 @@ slate.
|
|
193
196
|
|
194
197
|
## Custom error grouping
|
195
198
|
|
196
|
-
By default, we group errors
|
197
|
-
|
198
|
-
1. "Strict" grouping generates a fingerprint using a hash of the error
|
199
|
-
class, component (if available), and the entire backtrace. When the
|
200
|
-
backtrace changes, a new error is created by Honeybadger.
|
201
|
-
2. "Loose" grouping uses the error class, component (if available), and
|
202
|
-
the application trace.
|
199
|
+
By default, we group errors by error class, component (aka controller), and the application trace.
|
203
200
|
|
204
|
-
|
205
|
-
project settings page. If you want to use your own grouping strategy,
|
201
|
+
If you want to use your own grouping strategy,
|
206
202
|
you can, using the `fingerprint` configuration option. When configured,
|
207
203
|
a custom fingerprint will be sent with each error notification, and
|
208
204
|
we'll use that for grouping errors instead of the default:
|
@@ -226,8 +222,6 @@ directly:
|
|
226
222
|
The fingerprint can be any Ruby object that responds to #to_s, and will
|
227
223
|
be sent to Honeybadger as a SHA1 hash.
|
228
224
|
|
229
|
-
*Please note that to make use of this option, you must have **strict**
|
230
|
-
grouping disabled on your project settings page.*
|
231
225
|
|
232
226
|
## Tracking deploys
|
233
227
|
|
data/gemfiles/rack.gemfile.lock
CHANGED
data/gemfiles/rake.gemfile.lock
CHANGED
data/honeybadger.gemspec
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
|
6
6
|
s.name = 'honeybadger'
|
7
|
-
s.version = '1.8.
|
8
|
-
s.date = '2013-
|
7
|
+
s.version = '1.8.1'
|
8
|
+
s.date = '2013-10-01'
|
9
9
|
|
10
10
|
s.summary = 'Error reports you can be happy about.'
|
11
11
|
s.description = 'Make managing application errors a more pleasant experience.'
|
data/lib/honeybadger.rb
CHANGED
@@ -20,6 +20,13 @@ module Honeybadger
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
# Same as the notify_honeybadger method but taking into account the ignored exceptions.
|
24
|
+
def notify_honeybadger_or_ignore(hash_or_exception)
|
25
|
+
unless honeybadger_local_request?
|
26
|
+
Honeybadger.notify_or_ignore(hash_or_exception, honeybadger_request_data)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
23
30
|
def honeybadger_local_request?
|
24
31
|
if defined?(::Rails.application.config)
|
25
32
|
::Rails.application.config.consider_all_requests_local || (request.local? && (!request.env["HTTP_X_FORWARDED_FOR"]))
|
metadata
CHANGED
@@ -1,32 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Joshua Wood
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: json
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: cucumber
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: rspec
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: fakeweb
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,6 +78,7 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: sham_rack
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
83
|
- - ~>
|
74
84
|
- !ruby/object:Gem::Version
|
@@ -76,6 +86,7 @@ dependencies:
|
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
91
|
- - ~>
|
81
92
|
- !ruby/object:Gem::Version
|
@@ -83,20 +94,23 @@ dependencies:
|
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: bourne
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
|
-
- - '>='
|
99
|
+
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
version: '1.0'
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
|
-
- - '>='
|
107
|
+
- - ! '>='
|
95
108
|
- !ruby/object:Gem::Version
|
96
109
|
version: '1.0'
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: shoulda
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
115
|
- - ~>
|
102
116
|
- !ruby/object:Gem::Version
|
@@ -104,6 +118,7 @@ dependencies:
|
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
123
|
- - ~>
|
109
124
|
- !ruby/object:Gem::Version
|
@@ -111,71 +126,81 @@ dependencies:
|
|
111
126
|
- !ruby/object:Gem::Dependency
|
112
127
|
name: capistrano
|
113
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
114
130
|
requirements:
|
115
|
-
- - '>='
|
131
|
+
- - ! '>='
|
116
132
|
- !ruby/object:Gem::Version
|
117
133
|
version: '0'
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
121
138
|
requirements:
|
122
|
-
- - '>='
|
139
|
+
- - ! '>='
|
123
140
|
- !ruby/object:Gem::Version
|
124
141
|
version: '0'
|
125
142
|
- !ruby/object:Gem::Dependency
|
126
143
|
name: rake
|
127
144
|
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
128
146
|
requirements:
|
129
|
-
- - '>='
|
147
|
+
- - ! '>='
|
130
148
|
- !ruby/object:Gem::Version
|
131
149
|
version: '0'
|
132
150
|
type: :development
|
133
151
|
prerelease: false
|
134
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
135
154
|
requirements:
|
136
|
-
- - '>='
|
155
|
+
- - ! '>='
|
137
156
|
- !ruby/object:Gem::Version
|
138
157
|
version: '0'
|
139
158
|
- !ruby/object:Gem::Dependency
|
140
159
|
name: sinatra
|
141
160
|
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
142
162
|
requirements:
|
143
|
-
- - '>='
|
163
|
+
- - ! '>='
|
144
164
|
- !ruby/object:Gem::Version
|
145
165
|
version: '0'
|
146
166
|
type: :development
|
147
167
|
prerelease: false
|
148
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
149
170
|
requirements:
|
150
|
-
- - '>='
|
171
|
+
- - ! '>='
|
151
172
|
- !ruby/object:Gem::Version
|
152
173
|
version: '0'
|
153
174
|
- !ruby/object:Gem::Dependency
|
154
175
|
name: aruba
|
155
176
|
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
156
178
|
requirements:
|
157
|
-
- - '>='
|
179
|
+
- - ! '>='
|
158
180
|
- !ruby/object:Gem::Version
|
159
181
|
version: '0'
|
160
182
|
type: :development
|
161
183
|
prerelease: false
|
162
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
163
186
|
requirements:
|
164
|
-
- - '>='
|
187
|
+
- - ! '>='
|
165
188
|
- !ruby/object:Gem::Version
|
166
189
|
version: '0'
|
167
190
|
- !ruby/object:Gem::Dependency
|
168
191
|
name: appraisal
|
169
192
|
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
170
194
|
requirements:
|
171
|
-
- - '>='
|
195
|
+
- - ! '>='
|
172
196
|
- !ruby/object:Gem::Version
|
173
197
|
version: '0'
|
174
198
|
type: :development
|
175
199
|
prerelease: false
|
176
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
177
202
|
requirements:
|
178
|
-
- - '>='
|
203
|
+
- - ! '>='
|
179
204
|
- !ruby/object:Gem::Version
|
180
205
|
version: '0'
|
181
206
|
description: Make managing application errors a more pleasant experience.
|
@@ -268,7 +293,6 @@ files:
|
|
268
293
|
- test/unit/sender_test.rb
|
269
294
|
homepage: http://www.honeybadger.io
|
270
295
|
licenses: []
|
271
|
-
metadata: {}
|
272
296
|
post_install_message:
|
273
297
|
rdoc_options:
|
274
298
|
- --charset=UTF-8
|
@@ -276,18 +300,23 @@ rdoc_options:
|
|
276
300
|
require_paths:
|
277
301
|
- lib
|
278
302
|
required_ruby_version: !ruby/object:Gem::Requirement
|
303
|
+
none: false
|
279
304
|
requirements:
|
280
|
-
- - '>='
|
305
|
+
- - ! '>='
|
281
306
|
- !ruby/object:Gem::Version
|
282
307
|
version: '0'
|
308
|
+
segments:
|
309
|
+
- 0
|
310
|
+
hash: -148961538032619748
|
283
311
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
312
|
+
none: false
|
284
313
|
requirements:
|
285
|
-
- - '>='
|
314
|
+
- - ! '>='
|
286
315
|
- !ruby/object:Gem::Version
|
287
316
|
version: '0'
|
288
317
|
requirements: []
|
289
318
|
rubyforge_project:
|
290
|
-
rubygems_version:
|
319
|
+
rubygems_version: 1.8.23
|
291
320
|
signing_key:
|
292
321
|
specification_version: 2
|
293
322
|
summary: Error reports you can be happy about.
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: cbb055f81d8f22c73d15a07319416223dc2088e8
|
4
|
-
data.tar.gz: 97d3c1ea643d868e725df494d10710bf353a0cd0
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: b59eabe45dd37a73fbc3f5977e1991c84b976b7907d908d6058849d953fca3df3b13c8678e1c1a18fb121854df7d067ec59224e936a9382219fc651bd717c345
|
7
|
-
data.tar.gz: 851867be99923a9b115fde0a06934dae4fe04b4424038c41da5b70cb10e625014298aef0ad9475c891b8482fa44705d8625d7602b13848abb787dad3287b3c4b
|