bugsnag 1.8.7 → 1.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -16
- data/VERSION +1 -1
- data/lib/bugsnag.rb +1 -1
- data/lib/bugsnag/notification.rb +9 -2
- data/spec/notification_spec.rb +8 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea6c2fbc0b0da06935be5460b6c2a8980f6efea
|
4
|
+
data.tar.gz: 027990caadb74dc2e16a309bb426c3d305ef3fd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 039998cab22c0fbe6e6ad0c7dbd59874b8892fce56fb356c5204dfb1f3cbd4e24794472c3c210253e0c0af9f9a814e99ce1d46efa20c2a8a181ff4f6507af3af
|
7
|
+
data.tar.gz: 7bf8ea09e3bd673e3e5563510b3e3521c923fb4c0643319b4f50492981256d707e573d2b8f94c41b3cc054dd429ddeb1e1f9669f1538476cb5827a353a50be65
|
data/CHANGELOG.md
CHANGED
@@ -1,34 +1,33 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
-
1.8.
|
4
|
+
1.8.8
|
5
5
|
-----
|
6
|
+
- Prepare 'severity' feature for release
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
-
|
8
|
+
1.8.7
|
9
|
+
-----
|
10
|
+
- Fix capistrano when `rake` is not set. #87
|
11
|
+
- Fix capistrano when `Rails` is not loaded. #85
|
12
|
+
- Various cleanup
|
10
13
|
|
11
14
|
1.8.6
|
12
15
|
-----
|
13
|
-
|
14
|
-
- proxy support in the bugsnag deploy notification rake task
|
16
|
+
- Proxy support in the bugsnag deploy notification rake task
|
15
17
|
|
16
18
|
1.8.5
|
17
19
|
-----
|
18
|
-
|
19
|
-
-
|
20
|
-
- delayed_job support
|
20
|
+
- Capistrano3 support (for real)
|
21
|
+
- delayed_job support
|
21
22
|
|
22
23
|
1.8.4
|
23
24
|
-----
|
24
|
-
|
25
|
-
- support for per-notification api keys
|
25
|
+
- Support for per-notification api keys
|
26
26
|
|
27
27
|
1.8.3
|
28
28
|
-----
|
29
|
-
|
30
|
-
-
|
31
|
-
- allow `set :bugsnag_api_key, foo` in capistrano
|
29
|
+
- Capistrano3 support
|
30
|
+
- Allow `set :bugsnag_api_key, foo` in capistrano
|
32
31
|
|
33
32
|
1.8.2
|
34
33
|
-----
|
@@ -195,7 +194,7 @@ Changelog
|
|
195
194
|
|
196
195
|
1.2.7
|
197
196
|
-----
|
198
|
-
- Protect against rare exception-unwrapping infinite loop
|
197
|
+
- Protect against rare exception-unwrapping infinite loop
|
199
198
|
(only in some exceptions using the `original_exception` pattern)
|
200
199
|
|
201
200
|
1.2.6
|
@@ -239,7 +238,7 @@ Changelog
|
|
239
238
|
|
240
239
|
1.1.4
|
241
240
|
-----
|
242
|
-
- Move Bugsnag rack middleware later in the middleware stack, fixes
|
241
|
+
- Move Bugsnag rack middleware later in the middleware stack, fixes
|
243
242
|
issue where development exception may not have been delivered
|
244
243
|
|
245
244
|
1.1.3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.8
|
data/lib/bugsnag.rb
CHANGED
@@ -62,7 +62,7 @@ module Bugsnag
|
|
62
62
|
# error class
|
63
63
|
def auto_notify(exception, overrides=nil, request_data=nil)
|
64
64
|
overrides ||= {}
|
65
|
-
overrides.merge!({:severity => "
|
65
|
+
overrides.merge!({:severity => "error"})
|
66
66
|
notify_or_ignore(exception, overrides, request_data) if configuration.auto_notify
|
67
67
|
end
|
68
68
|
|
data/lib/bugsnag/notification.rb
CHANGED
@@ -15,7 +15,9 @@ module Bugsnag
|
|
15
15
|
|
16
16
|
MAX_EXCEPTIONS_TO_UNWRAP = 5
|
17
17
|
|
18
|
-
SUPPORTED_SEVERITIES = ["
|
18
|
+
SUPPORTED_SEVERITIES = ["error", "warning", "info"]
|
19
|
+
|
20
|
+
CURRENT_PAYLOAD_VERSION = "2"
|
19
21
|
|
20
22
|
# HTTParty settings
|
21
23
|
headers "Content-Type" => "application/json"
|
@@ -145,7 +147,11 @@ module Bugsnag
|
|
145
147
|
end
|
146
148
|
|
147
149
|
def severity
|
148
|
-
@severity || "
|
150
|
+
@severity || "warning"
|
151
|
+
end
|
152
|
+
|
153
|
+
def payload_version
|
154
|
+
CURRENT_PAYLOAD_VERSION
|
149
155
|
end
|
150
156
|
|
151
157
|
def grouping_hash=(grouping_hash)
|
@@ -216,6 +222,7 @@ module Bugsnag
|
|
216
222
|
},
|
217
223
|
:context => self.context,
|
218
224
|
:user => @user,
|
225
|
+
:payloadVersion => payload_version,
|
219
226
|
:exceptions => exception_list,
|
220
227
|
:severity => self.severity,
|
221
228
|
:groupingHash => self.grouping_hash,
|
data/spec/notification_spec.rb
CHANGED
@@ -267,10 +267,10 @@ describe Bugsnag::Notification do
|
|
267
267
|
})
|
268
268
|
end
|
269
269
|
|
270
|
-
it "defaults to
|
270
|
+
it "defaults to warning severity" do
|
271
271
|
expect(Bugsnag::Notification).to receive(:deliver_exception_payload) do |endpoint, payload|
|
272
272
|
event = get_event_from_payload(payload)
|
273
|
-
expect(event[:severity]).to eq("
|
273
|
+
expect(event[:severity]).to eq("warning")
|
274
274
|
end
|
275
275
|
|
276
276
|
Bugsnag.notify(BugsnagTestException.new("It crashed"))
|
@@ -279,23 +279,24 @@ describe Bugsnag::Notification do
|
|
279
279
|
it "does not accept a bad severity in overrides" do
|
280
280
|
expect(Bugsnag::Notification).to receive(:deliver_exception_payload) do |endpoint, payload|
|
281
281
|
event = get_event_from_payload(payload)
|
282
|
-
expect(event[:severity]).to eq("
|
282
|
+
expect(event[:severity]).to eq("warning")
|
283
283
|
end
|
284
284
|
|
285
285
|
Bugsnag.notify(BugsnagTestException.new("It crashed"), {
|
286
|
-
:severity => "
|
286
|
+
:severity => "fatal"
|
287
287
|
})
|
288
288
|
end
|
289
289
|
|
290
|
-
it "autonotifies
|
290
|
+
it "autonotifies errors" do
|
291
291
|
expect(Bugsnag::Notification).to receive(:deliver_exception_payload) do |endpoint, payload|
|
292
292
|
event = get_event_from_payload(payload)
|
293
|
-
expect(event[:severity]).to eq("
|
293
|
+
expect(event[:severity]).to eq("error")
|
294
294
|
end
|
295
295
|
|
296
296
|
Bugsnag.auto_notify(BugsnagTestException.new("It crashed"))
|
297
297
|
end
|
298
298
|
|
299
|
+
|
299
300
|
it "accepts a context in overrides" do
|
300
301
|
expect(Bugsnag::Notification).to receive(:deliver_exception_payload) do |endpoint, payload|
|
301
302
|
event = get_event_from_payload(payload)
|
@@ -664,7 +665,7 @@ describe Bugsnag::Notification do
|
|
664
665
|
notify_test_exception
|
665
666
|
end
|
666
667
|
|
667
|
-
it "sets the timeout time to the value in the configuration" do
|
668
|
+
it "sets the timeout time to the value in the configuration" do
|
668
669
|
Bugsnag.configure do |config|
|
669
670
|
config.timeout = 10
|
670
671
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.2.
|
164
|
+
rubygems_version: 2.2.2
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: Ruby notifier for bugsnag.com
|