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 +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/bugsnag/notification.rb +1 -0
- data/lib/bugsnag/railtie.rb +1 -1
- data/lib/bugsnag/rake.rb +14 -27
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ebe125f07a4a2afd8e873ce95df608085afa4a2
|
4
|
+
data.tar.gz: 34b35b4affa3ec05ba974bd379e917043d16be9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff650953a205f95032b1cf7f4d06be225d0e1f0bcc24ce3d84f6c5ffbf0d2f1a82699bbcf44b9a5a29e5e478733ff18adcd418a8197b8fc95bb016693923e123
|
7
|
+
data.tar.gz: f5b7ea42d4cfb05b663fab08f5b09f3844480ba80ee06c550f2773e08f21effb51257170bcb3f7884825e3fb6e2e5afefde9c6bb97bae8c134b72732fef2189d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.8.
|
1
|
+
2.8.6
|
data/lib/bugsnag/notification.rb
CHANGED
@@ -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
|
data/lib/bugsnag/railtie.rb
CHANGED
data/lib/bugsnag/rake.rb
CHANGED
@@ -2,36 +2,23 @@ require 'bugsnag'
|
|
2
2
|
|
3
3
|
Rake::TaskManager.record_task_metadata = true
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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.
|
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-
|
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:
|