bugsnag 2.8.3 → 2.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5515a540e3fb2c64492e1b17866d1b98e01e3602
4
- data.tar.gz: 77d5ca101209931e27c4fb25e29203b44f0f5b10
3
+ metadata.gz: 98754bef4fe1a80b60181d175224dc46b9fa8513
4
+ data.tar.gz: c430fa486e7d64d9711797fc6a019fec38c442b4
5
5
  SHA512:
6
- metadata.gz: 0a99a13f3d350116dff3dd9f2312a5b7457d858aad5002bd96a7862916deaefaeca9a9fefb1e4cb54e6e731df1385f31098fdf45a891d18d4e7e96738dadaf4d
7
- data.tar.gz: 142b85aa2765f6845195c7fa20f32955e232a79164dfefa1dbc2c47a0b6ee6c38e3f3c52c3c07f3c25f76e4d79fddfd2907a0bdc361977ef946aecb9646ccf9d
6
+ metadata.gz: 58eb4aebb5a8c8cc4c09b9d6cfe145616ba528923c36b5e2439198cfc42b77bb14367aadf108e7af4ca18e873c4a91a5f356fbe2408916596006211e9134e82d
7
+ data.tar.gz: 86d9e6a36a7a2e44a1f9af847b8637f313370a49ee0a730799f99191854fdfcd78240d27c1210d1ee71b45d8bbd17f6a1ce7c9da05c4ca540d2a0078b2e909b2
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.8.4
5
+ -----
6
+
7
+ - Automatically catch errors in `rails runner`
8
+ - Accept meta_data from any exception that deines `bugsnag_meta_data`
4
9
 
5
10
  2.8.3
6
11
  -----
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.8.3
1
+ 2.8.4
@@ -309,7 +309,7 @@ module Bugsnag
309
309
  meta_data = @meta_data.dup
310
310
 
311
311
  exceptions.each do |exception|
312
- if exception.class.include?(Bugsnag::MetaData) && exception.bugsnag_meta_data
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
@@ -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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.3
4
+ version: 2.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith