jeremyevans-exception_notification 1.0.20100106 → 1.0.20100223

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.
Files changed (2) hide show
  1. data/lib/exception_notifier.rb +1 -13
  2. metadata +2 -2
@@ -47,20 +47,8 @@ class ExceptionNotifier < ActionMailer::Base
47
47
 
48
48
  body data.merge({ :controller => controller, :request => request,
49
49
  :exception => exception, :host => (request.env["HTTP_X_FORWARDED_HOST"] || request.env["HTTP_HOST"]),
50
- :backtrace => sanitize_backtrace(exception.backtrace),
50
+ :backtrace => exception.backtrace,
51
51
  :rails_root => rails_root, :data => data,
52
52
  :sections => sections })
53
53
  end
54
-
55
- private
56
-
57
- def sanitize_backtrace(trace)
58
- re = Regexp.new(/^#{Regexp.escape(rails_root)}/)
59
- trace.map { |line| Pathname.new(line.gsub(re, "[RAILS_ROOT]")).cleanpath.to_s }
60
- end
61
-
62
- def rails_root
63
- @rails_root ||= Pathname.new(RAILS_ROOT).cleanpath.to_s
64
- end
65
-
66
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeremyevans-exception_notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20100106
4
+ version: 1.0.20100223
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails Core Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-06 00:00:00 -08:00
12
+ date: 2010-03-23 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15