bugsnag 1.2.10 → 1.2.11

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.
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 1.2.11
5
+ ------
6
+ - Send rails version with exceptions
7
+ - Protect against nil params object when errors happen in rack
8
+
4
9
  1.2.10
5
10
  ------
6
11
  - Added Rack HTTP method (GET, POST, etc) to request tab
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.10
1
+ 1.2.11
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bugsnag"
8
- s.version = "1.2.10"
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-10"
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 10
10
- version: 1.2.10
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-10 00:00:00 Z
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