bugsnag 2.8.3 → 2.8.4
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/VERSION +1 -1
- data/lib/bugsnag/notification.rb +1 -1
- data/lib/bugsnag/railtie.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98754bef4fe1a80b60181d175224dc46b9fa8513
|
4
|
+
data.tar.gz: c430fa486e7d64d9711797fc6a019fec38c442b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58eb4aebb5a8c8cc4c09b9d6cfe145616ba528923c36b5e2439198cfc42b77bb14367aadf108e7af4ca18e873c4a91a5f356fbe2408916596006211e9134e82d
|
7
|
+
data.tar.gz: 86d9e6a36a7a2e44a1f9af847b8637f313370a49ee0a730799f99191854fdfcd78240d27c1210d1ee71b45d8bbd17f6a1ce7c9da05c4ca540d2a0078b2e909b2
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.8.
|
1
|
+
2.8.4
|
data/lib/bugsnag/notification.rb
CHANGED
@@ -309,7 +309,7 @@ module Bugsnag
|
|
309
309
|
meta_data = @meta_data.dup
|
310
310
|
|
311
311
|
exceptions.each do |exception|
|
312
|
-
if exception.
|
312
|
+
if exception.respond_to?(:bugsnag_meta_data) && exception.bugsnag_meta_data
|
313
313
|
exception.bugsnag_meta_data.each do |key, value|
|
314
314
|
add_to_meta_data key, value, meta_data
|
315
315
|
end
|
data/lib/bugsnag/railtie.rb
CHANGED
@@ -12,6 +12,15 @@ module Bugsnag
|
|
12
12
|
load "bugsnag/tasks/bugsnag.rake"
|
13
13
|
end
|
14
14
|
|
15
|
+
# send notifications if a command fails in a 'rails runner' call
|
16
|
+
runner do
|
17
|
+
at_exit do
|
18
|
+
if $!
|
19
|
+
Bugsnag.notify($!)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
15
24
|
config.before_initialize do
|
16
25
|
# Configure bugsnag rails defaults
|
17
26
|
Bugsnag.configure do |config|
|