bugsnag 2.8.5 → 2.8.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c82e8e7e46403a193b059ff577ea4b7808ab2f82
4
- data.tar.gz: 12c42851511672d1a2209fc6c46effbef3447e6f
3
+ metadata.gz: 9ebe125f07a4a2afd8e873ce95df608085afa4a2
4
+ data.tar.gz: 34b35b4affa3ec05ba974bd379e917043d16be9f
5
5
  SHA512:
6
- metadata.gz: 4ee30f99540b90d2d898bc8037e2ce2f534a52ca30c8d57ecff9313557c6af717a90c691ac781cfad56af133b6ad0ae7a5a4eff46b4579ebba7881c52333a14f
7
- data.tar.gz: 227828a21ae4cf499392bc41c44639db5f6decf7d9515c46a4363d809b4b5e9256af4d3f3f66a5628d16ab9b2aa3ffc516b8f7afe6807d84a32ab165ba67e4de
6
+ metadata.gz: ff650953a205f95032b1cf7f4d06be225d0e1f0bcc24ce3d84f6c5ffbf0d2f1a82699bbcf44b9a5a29e5e478733ff18adcd418a8197b8fc95bb016693923e123
7
+ data.tar.gz: f5b7ea42d4cfb05b663fab08f5b09f3844480ba80ee06c550f2773e08f21effb51257170bcb3f7884825e3fb6e2e5afefde9c6bb97bae8c134b72732fef2189d
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.8.6
5
+ -----
6
+
7
+ - Don't report SystemExit from `rails runner`
8
+ - Fix for stacktrace including custom bugsnag middleware
9
+ - Fix reporting of errors in rails-defined rake tasks
10
+
4
11
  2.8.5
5
12
  -----
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.8.5
1
+ 2.8.6
@@ -92,6 +92,7 @@ module Bugsnag
92
92
  unless ex.is_a?(Exception) || (defined?(Java::JavaLang::Throwable) && ex.is_a?(Java::JavaLang::Throwable))
93
93
  Bugsnag.warn("Converting non-Exception to RuntimeError: #{ex.inspect}")
94
94
  ex = RuntimeError.new(ex.to_s)
95
+ ex.set_backtrace caller
95
96
  end
96
97
 
97
98
  @exceptions << ex
@@ -16,7 +16,7 @@ module Bugsnag
16
16
  runner do
17
17
  at_exit do
18
18
  if $!
19
- Bugsnag.notify($!)
19
+ Bugsnag.auto_notify($!)
20
20
  end
21
21
  end
22
22
  end
@@ -2,36 +2,23 @@ require 'bugsnag'
2
2
 
3
3
  Rake::TaskManager.record_task_metadata = true
4
4
 
5
- module Bugsnag::Rake
6
- def self.included(base)
7
- base.extend ClassMethods
8
- base.class_eval do
9
- class << self
10
- alias_method :original_define_task, :define_task
11
- alias_method :define_task, :bugsnag_define_task
12
- end
13
- end
14
- end
5
+ class Rake::Task
6
+
7
+ def execute_with_bugsnag(args=nil)
8
+ old_task = Bugsnag.configuration.request_data[:bugsnag_running_task]
9
+ Bugsnag.set_request_data :bugsnag_running_task, self
15
10
 
16
- module ClassMethods
17
- def bugsnag_define_task(*args, &block)
18
- task = self.original_define_task(*args) do |*block_args|
19
- begin
20
- old_task = Bugsnag.configuration.request_data[:bugsnag_running_task]
21
- Bugsnag.set_request_data :bugsnag_running_task, task
11
+ execute_without_bugsnag(args)
22
12
 
23
- yield(*block_args) if block_given?
24
- rescue Exception => e
25
- Bugsnag.auto_notify(e)
26
- raise
27
- ensure
28
- Bugsnag.set_request_data :bugsnag_running_task, old_task
29
- end
30
- end
31
- end
13
+ rescue Exception => ex
14
+ Bugsnag.auto_notify(ex)
15
+ raise
16
+ ensure
17
+ Bugsnag.set_request_data :bugsnag_running_task, old_task
32
18
  end
19
+
20
+ alias_method :execute_without_bugsnag, :execute
21
+ alias_method :execute, :execute_with_bugsnag
33
22
  end
34
23
 
35
24
  Bugsnag.configuration.internal_middleware.use(Bugsnag::Middleware::Rake)
36
-
37
- Rake::Task.send(:include, Bugsnag::Rake) if defined?(Rake::Task)
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: 2.8.5
4
+ version: 2.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-18 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -190,3 +190,4 @@ signing_key:
190
190
  specification_version: 4
191
191
  summary: Ruby notifier for bugsnag.com
192
192
  test_files: []
193
+ has_rdoc: