bugsnag 1.2.10 → 1.2.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/bugsnag.gemspec +2 -2
- data/lib/bugsnag/middleware/rails2_request.rb +5 -0
- data/lib/bugsnag/middleware/rails3_request.rb +9 -4
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.11
|
data/bugsnag.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "bugsnag"
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Smith"]
|
12
|
-
s.date = "2013-01-
|
12
|
+
s.date = "2013-01-15"
|
13
13
|
s.description = "Ruby notifier for bugsnag.com"
|
14
14
|
s.email = "james@bugsnag.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -37,6 +37,11 @@ module Bugsnag::Middleware
|
|
37
37
|
|
38
38
|
# Add a cookies tab
|
39
39
|
notification.add_tab(:cookies, request.cookies) if request.cookies
|
40
|
+
|
41
|
+
# Add the rails version
|
42
|
+
notification.add_tab(:environment, {
|
43
|
+
:railsVersion => Rails::VERSION::STRING
|
44
|
+
})
|
40
45
|
end
|
41
46
|
|
42
47
|
@bugsnag.call(notification)
|
@@ -9,16 +9,21 @@ module Bugsnag::Middleware
|
|
9
9
|
env = notification.request_data[:rack_env]
|
10
10
|
params = env["action_dispatch.request.parameters"]
|
11
11
|
|
12
|
-
# Set the context
|
13
|
-
notification.context = "#{params[:controller]}##{params[:action]}"
|
14
|
-
|
15
|
-
# Augment the request tab
|
16
12
|
if params
|
13
|
+
# Set the context
|
14
|
+
notification.context = "#{params[:controller]}##{params[:action]}"
|
15
|
+
|
16
|
+
# Augment the request tab
|
17
17
|
notification.add_tab(:request, {
|
18
18
|
:railsAction => "#{params[:controller]}##{params[:action]}",
|
19
19
|
:params => params
|
20
20
|
})
|
21
21
|
end
|
22
|
+
|
23
|
+
# Add the rails version
|
24
|
+
notification.add_tab(:environment, {
|
25
|
+
:railsVersion => Rails::VERSION::STRING
|
26
|
+
})
|
22
27
|
end
|
23
28
|
|
24
29
|
@bugsnag.call(notification)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 11
|
10
|
+
version: 1.2.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Smith
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-01-
|
18
|
+
date: 2013-01-15 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|