Commit f2b9af95ee46a799901bf3c686a28b2a0039403f
1 parent
5d9ffe65
Exists in
master
and in
1 other branch
Add backtrace to emails, add awesome_print, update err notification style.
Conflicts: Gemfile Gemfile.lock app/views/mailer/err_notification.text.erb
Showing
3 changed files
with
45 additions
and
37 deletions
Show diff stats
Gemfile
@@ -17,6 +17,7 @@ platform :ruby do | @@ -17,6 +17,7 @@ platform :ruby do | ||
17 | end | 17 | end |
18 | 18 | ||
19 | group :development, :test do | 19 | group :development, :test do |
20 | + gem 'awesome_print' | ||
20 | gem 'rspec-rails', '~> 2.5' | 21 | gem 'rspec-rails', '~> 2.5' |
21 | gem 'webmock', :require => false | 22 | gem 'webmock', :require => false |
22 | end | 23 | end |
Gemfile.lock
@@ -35,11 +35,12 @@ GEM | @@ -35,11 +35,12 @@ GEM | ||
35 | activemodel (= 3.0.5) | 35 | activemodel (= 3.0.5) |
36 | activesupport (= 3.0.5) | 36 | activesupport (= 3.0.5) |
37 | activesupport (3.0.5) | 37 | activesupport (3.0.5) |
38 | - addressable (2.2.5) | ||
39 | - arel (2.0.9) | 38 | + addressable (2.2.6) |
39 | + arel (2.0.10) | ||
40 | + awesome_print (0.4.0) | ||
40 | bcrypt-ruby (2.1.4) | 41 | bcrypt-ruby (2.1.4) |
41 | - bson (1.3.0) | ||
42 | - bson_ext (1.3.0) | 42 | + bson (1.3.1) |
43 | + bson_ext (1.3.1) | ||
43 | builder (2.1.2) | 44 | builder (2.1.2) |
44 | crack (0.1.8) | 45 | crack (0.1.8) |
45 | database_cleaner (0.6.7) | 46 | database_cleaner (0.6.7) |
@@ -47,7 +48,8 @@ GEM | @@ -47,7 +48,8 @@ GEM | ||
47 | bcrypt-ruby (~> 2.1.2) | 48 | bcrypt-ruby (~> 2.1.2) |
48 | warden (~> 1.0.2) | 49 | warden (~> 1.0.2) |
49 | diff-lcs (1.1.2) | 50 | diff-lcs (1.1.2) |
50 | - email_spec (1.1.1) | 51 | + email_spec (1.2.1) |
52 | + mail (~> 2.2) | ||
51 | rspec (~> 2.0) | 53 | rspec (~> 2.0) |
52 | erubis (2.6.6) | 54 | erubis (2.6.6) |
53 | abstract (>= 1.0.0) | 55 | abstract (>= 1.0.0) |
@@ -55,40 +57,40 @@ GEM | @@ -55,40 +57,40 @@ GEM | ||
55 | factory_girl_rails (1.0.1) | 57 | factory_girl_rails (1.0.1) |
56 | factory_girl (~> 1.3) | 58 | factory_girl (~> 1.3) |
57 | railties (>= 3.0.0) | 59 | railties (>= 3.0.0) |
58 | - haml (3.0.25) | 60 | + haml (3.1.2) |
59 | happymapper (0.3.2) | 61 | happymapper (0.3.2) |
60 | libxml-ruby (~> 1.1.3) | 62 | libxml-ruby (~> 1.1.3) |
61 | - i18n (0.5.0) | 63 | + i18n (0.6.0) |
62 | libxml-ruby (1.1.4) | 64 | libxml-ruby (1.1.4) |
63 | lighthouse-api (2.0) | 65 | lighthouse-api (2.0) |
64 | activeresource (>= 3.0.0) | 66 | activeresource (>= 3.0.0) |
65 | activesupport (>= 3.0.0) | 67 | activesupport (>= 3.0.0) |
66 | - mail (2.2.17) | 68 | + mail (2.2.19) |
67 | activesupport (>= 2.3.6) | 69 | activesupport (>= 2.3.6) |
68 | i18n (>= 0.4.0) | 70 | i18n (>= 0.4.0) |
69 | mime-types (~> 1.16) | 71 | mime-types (~> 1.16) |
70 | treetop (~> 1.4.8) | 72 | treetop (~> 1.4.8) |
71 | mime-types (1.16) | 73 | mime-types (1.16) |
72 | - mongo (1.3.0) | ||
73 | - bson (>= 1.3.0) | 74 | + mongo (1.3.1) |
75 | + bson (>= 1.3.1) | ||
74 | mongoid (2.0.0.rc.8) | 76 | mongoid (2.0.0.rc.8) |
75 | activemodel (~> 3.0) | 77 | activemodel (~> 3.0) |
76 | mongo (~> 1.2) | 78 | mongo (~> 1.2) |
77 | tzinfo (~> 0.3.22) | 79 | tzinfo (~> 0.3.22) |
78 | will_paginate (~> 3.0.pre) | 80 | will_paginate (~> 3.0.pre) |
79 | - mongoid_rails_migrations (0.0.10) | ||
80 | - activesupport (~> 3.0.0) | ||
81 | - bundler (>= 0.9.19) | ||
82 | - rails (~> 3.0.0) | ||
83 | - railties (~> 3.0.0) | ||
84 | - nokogiri (1.4.4) | ||
85 | - pivotal-tracker (0.2.0) | 81 | + mongoid_rails_migrations (0.0.14) |
82 | + activesupport (>= 3.0.0) | ||
83 | + bundler (>= 1.0.0) | ||
84 | + rails (>= 3.0.0) | ||
85 | + railties (>= 3.0.0) | ||
86 | + nokogiri (1.4.3.1) | ||
87 | + pivotal-tracker (0.3.1) | ||
86 | builder | 88 | builder |
87 | - happymapper (>= 0.2.4) | ||
88 | - nokogiri (~> 1.4.1) | ||
89 | - rest-client (~> 1.5.1) | 89 | + happymapper (>= 0.3.2) |
90 | + nokogiri (~> 1.4.3.1) | ||
91 | + rest-client (~> 1.6.0) | ||
90 | polyglot (0.3.1) | 92 | polyglot (0.3.1) |
91 | - rack (1.2.2) | 93 | + rack (1.2.3) |
92 | rack-mount (0.6.14) | 94 | rack-mount (0.6.14) |
93 | rack (>= 1.0.0) | 95 | rack (>= 1.0.0) |
94 | rack-test (0.5.7) | 96 | rack-test (0.5.7) |
@@ -106,31 +108,31 @@ GEM | @@ -106,31 +108,31 @@ GEM | ||
106 | activesupport (= 3.0.5) | 108 | activesupport (= 3.0.5) |
107 | rake (>= 0.8.7) | 109 | rake (>= 0.8.7) |
108 | thor (~> 0.14.4) | 110 | thor (~> 0.14.4) |
109 | - rake (0.8.7) | ||
110 | - rest-client (1.5.1) | 111 | + rake (0.9.2) |
112 | + rest-client (1.6.3) | ||
111 | mime-types (>= 1.16) | 113 | mime-types (>= 1.16) |
112 | - rspec (2.5.0) | ||
113 | - rspec-core (~> 2.5.0) | ||
114 | - rspec-expectations (~> 2.5.0) | ||
115 | - rspec-mocks (~> 2.5.0) | ||
116 | - rspec-core (2.5.1) | ||
117 | - rspec-expectations (2.5.0) | 114 | + rspec (2.6.0) |
115 | + rspec-core (~> 2.6.0) | ||
116 | + rspec-expectations (~> 2.6.0) | ||
117 | + rspec-mocks (~> 2.6.0) | ||
118 | + rspec-core (2.6.4) | ||
119 | + rspec-expectations (2.6.0) | ||
118 | diff-lcs (~> 1.1.2) | 120 | diff-lcs (~> 1.1.2) |
119 | - rspec-mocks (2.5.0) | ||
120 | - rspec-rails (2.5.0) | 121 | + rspec-mocks (2.6.0) |
122 | + rspec-rails (2.6.1) | ||
121 | actionpack (~> 3.0) | 123 | actionpack (~> 3.0) |
122 | activesupport (~> 3.0) | 124 | activesupport (~> 3.0) |
123 | railties (~> 3.0) | 125 | railties (~> 3.0) |
124 | - rspec (~> 2.5.0) | 126 | + rspec (~> 2.6.0) |
125 | thor (0.14.6) | 127 | thor (0.14.6) |
126 | treetop (1.4.9) | 128 | treetop (1.4.9) |
127 | polyglot (>= 0.3.1) | 129 | polyglot (>= 0.3.1) |
128 | - tzinfo (0.3.26) | 130 | + tzinfo (0.3.28) |
129 | useragent (0.3.1) | 131 | useragent (0.3.1) |
130 | - warden (1.0.3) | ||
131 | - rack (>= 1.0.0) | ||
132 | - webmock (1.6.2) | ||
133 | - addressable (>= 2.2.2) | 132 | + warden (1.0.4) |
133 | + rack (>= 1.0) | ||
134 | + webmock (1.6.4) | ||
135 | + addressable (~> 2.2, > 2.2.5) | ||
134 | crack (>= 0.1.7) | 136 | crack (>= 0.1.7) |
135 | will_paginate (3.0.pre2) | 137 | will_paginate (3.0.pre2) |
136 | 138 | ||
@@ -138,6 +140,7 @@ PLATFORMS | @@ -138,6 +140,7 @@ PLATFORMS | ||
138 | ruby | 140 | ruby |
139 | 141 | ||
140 | DEPENDENCIES | 142 | DEPENDENCIES |
143 | + awesome_print | ||
141 | bson_ext (~> 1.2) | 144 | bson_ext (~> 1.2) |
142 | database_cleaner (~> 0.6.0) | 145 | database_cleaner (~> 0.6.0) |
143 | devise (~> 1.1.8) | 146 | devise (~> 1.1.8) |
app/views/mailer/err_notification.text.erb
@@ -4,4 +4,8 @@ This err has occurred <%= pluralize @notice.err.notices_count, 'time' %>. You sh | @@ -4,4 +4,8 @@ This err has occurred <%= pluralize @notice.err.notices_count, 'time' %>. You sh | ||
4 | 4 | ||
5 | <%= app_err_url(@app, @notice.err) %> | 5 | <%= app_err_url(@app, @notice.err) %> |
6 | 6 | ||
7 | +Backtrace follows: | ||
8 | + | ||
9 | +<%= @notice.backtrace.collect { |l| l ? " #{l['file']}:#{l['number']}" : nil }.compact.join("\n") %> | ||
10 | + | ||
7 | <%= render :partial => 'signature' %> | 11 | <%= render :partial => 'signature' %> |