r3_exception_logger 0.1.10 → 0.1.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.
Files changed (36) hide show
  1. data/History.txt +75 -0
  2. data/LICENSE +20 -0
  3. data/README.old +107 -0
  4. data/README.rdoc +154 -0
  5. data/Rakefile +66 -0
  6. data/VERSION.yml +5 -0
  7. data/app/controllers/logged_exceptions_controller.rb +86 -0
  8. data/app/helpers/logged_exceptions_helper.rb +40 -0
  9. data/app/models/logged_exception.rb +79 -0
  10. data/app/views/layouts/logged_exceptions.html.erb +19 -0
  11. data/app/views/logged_exceptions/_exceptions.html.erb +31 -0
  12. data/app/views/logged_exceptions/_feed.html.erb +3 -0
  13. data/app/views/logged_exceptions/_show.html.erb +23 -0
  14. data/app/views/logged_exceptions/destroy.js.erb +2 -0
  15. data/app/views/logged_exceptions/destroy_all.js.erb +2 -0
  16. data/app/views/logged_exceptions/feed.rss.builder +20 -0
  17. data/app/views/logged_exceptions/index.html.erb +46 -0
  18. data/app/views/logged_exceptions/index.js.erb +2 -0
  19. data/app/views/logged_exceptions/query.js.erb +2 -0
  20. data/app/views/logged_exceptions/show.html.erb +8 -0
  21. data/app/views/logged_exceptions/show.js.erb +2 -0
  22. data/config/initializers/date_formats.rb +5 -0
  23. data/config/locales/en.yml +16 -0
  24. data/config/routes.rb +11 -0
  25. data/exception_logger.gemspec +23 -0
  26. data/public/javascripts/exception_logger.js +69 -0
  27. data/public/stylesheets/exception_logger.css +325 -0
  28. data/r3_exception_logger-0.1.10.gem +0 -0
  29. data/test/controllers/logged_exceptions_controller_test.rb +196 -0
  30. data/test/models/logged_exception_test.rb +39 -0
  31. data/test/rails_root/Gemfile +52 -0
  32. data/test/rails_root/Gemfile.lock +146 -0
  33. data/test/rails_root/app/controllers/application_controller.rb +5 -0
  34. data/test/rails_root/test/factories/exception_logger.rb +142 -0
  35. data/test/test_helper.rb +10 -0
  36. metadata +36 -1
Binary file
@@ -0,0 +1,196 @@
1
+ require 'test_helper'
2
+
3
+ class LoggedExceptionsControllerTest < ActionController::TestCase
4
+
5
+ tests LoggedExceptionsController
6
+
7
+ context "whitout javascript" do
8
+
9
+ context "on GET to #index" do
10
+
11
+ setup do
12
+ @exception = Factory(:logged_exception, :id => 123)
13
+ get :index
14
+ end
15
+
16
+ should respond_with(:success)
17
+ should render_template(:index)
18
+ should "query all unique exception names" do
19
+ assert_not_nil assigns(:exception_names)
20
+ assert_equal ["FunnyError"], assigns(:exception_names)
21
+ end
22
+ should "query all unique controller and action names" do
23
+ assert_not_nil assigns(:controller_actions)
24
+ assert_equal ["Main/index"], assigns(:controller_actions)
25
+ end
26
+ should "set exceptions variable for view" do
27
+ assert_not_nil assigns(:exceptions)
28
+ assert_equal [@exception], assigns(:exceptions)
29
+ end
30
+ should render_with_layout :logged_exceptions
31
+ should_not set_the_flash
32
+
33
+ end
34
+
35
+ context "on GET to #show for exception 123" do
36
+
37
+ setup do
38
+ @exception = Factory(:logged_exception, :id => 123)
39
+ get :show, :id => "123"
40
+ end
41
+
42
+ should respond_with(:success)
43
+ should render_template(:show)
44
+ should "set exception variable for view" do
45
+ assert_not_nil assigns(:exception)
46
+ assert_equal @exception, assigns(:exception)
47
+ end
48
+ should render_with_layout :logged_exceptions
49
+ should_not set_the_flash
50
+
51
+ end
52
+
53
+ end
54
+
55
+ context "with javascript" do
56
+
57
+ setup do
58
+ @exception = Factory(:logged_exception, :id => 123)
59
+ end
60
+
61
+ context "on XHR to #index" do
62
+
63
+ setup do
64
+ xhr :post, :index
65
+ end
66
+
67
+ should respond_with(:success)
68
+ should "query all unique exception names" do
69
+ assert_not_nil assigns(:exception_names)
70
+ assert_equal ["FunnyError"], assigns(:exception_names)
71
+ end
72
+ should "query all unique controller and action names" do
73
+ assert_not_nil assigns(:controller_actions)
74
+ assert_equal ["Main/index"], assigns(:controller_actions)
75
+ end
76
+ should "set exceptions variable for view" do
77
+ assert_not_nil assigns(:exceptions)
78
+ assert_equal [@exception], assigns(:exceptions)
79
+ end
80
+ should_not set_the_flash
81
+
82
+ end
83
+
84
+ context "on XHR to #show" do
85
+
86
+ setup do
87
+ xhr :post, :show, :id => "123"
88
+ end
89
+
90
+ should respond_with(:success)
91
+ should "set exception variable for view" do
92
+ assert_not_nil assigns(:exception)
93
+ assert_equal @exception, assigns(:exception)
94
+ end
95
+ should_not set_the_flash
96
+
97
+ end
98
+
99
+ context "on XHR to #query" do
100
+
101
+ context "when querying for date ranges" do
102
+ setup do
103
+ xhr :post, :query, :date_ranges_filter => "1"
104
+ end
105
+
106
+ should respond_with(:success)
107
+ should "set exceptions variable for view" do
108
+ assert_not_nil assigns(:exceptions)
109
+ assert_equal @exception, assigns(:exceptions).first
110
+ end
111
+ should_not set_the_flash
112
+
113
+ end
114
+
115
+ context "when querying for exception names" do
116
+
117
+ setup do
118
+ xhr :post, :query, :exception_names_filter => "FunnyError"
119
+ end
120
+
121
+ should respond_with(:success)
122
+ should "set exceptions variable for view" do
123
+ assert_not_nil assigns(:exceptions)
124
+ assert_equal @exception, assigns(:exceptions).first
125
+ end
126
+ should_not set_the_flash
127
+
128
+ end
129
+
130
+ context "when querying for controller actions" do
131
+
132
+ setup do
133
+ xhr :post, :query, :controller_actions_filter => "Main/index"
134
+ end
135
+
136
+ should respond_with(:success)
137
+ should "set exceptions variable for view" do
138
+ assert_not_nil assigns(:exceptions)
139
+ assert_equal @exception, assigns(:exceptions).first
140
+ end
141
+ should_not set_the_flash
142
+
143
+ end
144
+
145
+ context "when querying using all parameters" do
146
+
147
+ setup do
148
+ xhr :post, :query, :date_ranges_filter => "1", :exception_names_filter => "FunnyError", :controller_actions_filter => "Main/index"
149
+ end
150
+
151
+ should respond_with(:success)
152
+ should "set exceptions variable for view" do
153
+ assert_not_nil assigns(:exceptions)
154
+ assert_equal @exception, assigns(:exceptions).first
155
+ end
156
+ should_not set_the_flash
157
+
158
+ end
159
+
160
+ end
161
+
162
+ context "on XHR to destroy_all" do
163
+
164
+ context "with valid ids" do
165
+
166
+ setup do
167
+ xhr :post, :destroy_all, :ids => ["123"]
168
+ end
169
+
170
+ should respond_with(:success)
171
+ should "delete the exceptions" do
172
+ assert_equal 0, LoggedException.count
173
+ end
174
+ should_not set_the_flash
175
+
176
+ end
177
+
178
+ context "without valid ids" do
179
+
180
+ setup do
181
+ xhr :post, :destroy_all, :ids => []
182
+ end
183
+
184
+ should respond_with(:success)
185
+ should "not delete an exception" do
186
+ assert_equal 1, LoggedException.count
187
+ end
188
+ should_not set_the_flash
189
+
190
+ end
191
+
192
+ end
193
+
194
+ end
195
+
196
+ end
@@ -0,0 +1,39 @@
1
+ require 'test_helper'
2
+
3
+ class LoggedExceptionTest < ActiveSupport::TestCase
4
+
5
+ context "A logged exception" do
6
+ setup do
7
+ @logged_exception = Factory(:logged_exception)
8
+ end
9
+
10
+ should "respond to exception_class" do
11
+ assert_respond_to @logged_exception, :exception_class
12
+ end
13
+
14
+ should "respond to controller_name" do
15
+ assert_respond_to @logged_exception, :controller_name
16
+ end
17
+
18
+ should "respond to action_name" do
19
+ assert_respond_to @logged_exception, :action_name
20
+ end
21
+
22
+ should "respond to message" do
23
+ assert_respond_to @logged_exception, :message
24
+ end
25
+
26
+ should "respond to backtrace" do
27
+ assert_respond_to @logged_exception, :backtrace
28
+ end
29
+
30
+ should "respond to environment" do
31
+ assert_respond_to @logged_exception, :environment
32
+ end
33
+
34
+ should "respond to request" do
35
+ assert_respond_to @logged_exception, :request
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,52 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'rails', '3.0.0.rc'
4
+
5
+ # Bundle edge Rails instead:
6
+ # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
+
8
+ gem 'sqlite3-ruby', :require => 'sqlite3'
9
+
10
+ #gem 'mocha'
11
+
12
+ #gem 'formtastic', "1.0.0.beta", :git => "git://github.com/justinfrench/formtastic.git", :branch => "rails3"
13
+
14
+ gem 'shoulda', '>= 2.11.3'
15
+ gem 'factory_girl_rails', '>= 1.0.0'
16
+ gem 'nokogiri', '>= 1.4.3.1'
17
+
18
+ gem 'capybara', ">= 0.3.9"
19
+ gem 'database_cleaner', ">= 0.5.2"
20
+ gem 'cucumber-rails', '>= 0.3.2'
21
+ gem 'cucumber', '>= 0.8.5'
22
+ gem 'launchy', '>= 0.3.7'
23
+
24
+ # exception logger depends on:
25
+ gem "will_paginate", ">= 3.0.pre2"
26
+ gem "meta_where", ">= 0.5.2"
27
+ gem "i18n", ">= 0.4.1"
28
+
29
+ # exception logger
30
+ gem 'exception_logger'#, :path => '../..'
31
+
32
+ # Use unicorn as the web server
33
+ # gem 'unicorn'
34
+
35
+ # Deploy with Capistrano
36
+ # gem 'capistrano'
37
+
38
+ # To use debugger
39
+ # gem 'ruby-debug'
40
+
41
+ # Bundle the extra gems:
42
+ # gem 'bj'
43
+ # gem 'nokogiri', '1.4.1'
44
+ # gem 'sqlite3-ruby', :require => 'sqlite3'
45
+ # gem 'aws-s3', :require => 'aws/s3'
46
+
47
+ # Bundle gems for the local environment. Make sure to
48
+ # put test-only gems in this group so their generators
49
+ # and rake tasks are available in development mode:
50
+ # group :development, :test do
51
+ # gem 'webrat'
52
+ # end
@@ -0,0 +1,146 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ abstract (1.0.0)
5
+ actionmailer (3.0.0.rc)
6
+ actionpack (= 3.0.0.rc)
7
+ mail (~> 2.2.5)
8
+ actionpack (3.0.0.rc)
9
+ activemodel (= 3.0.0.rc)
10
+ activesupport (= 3.0.0.rc)
11
+ builder (~> 2.1.2)
12
+ erubis (~> 2.6.6)
13
+ i18n (~> 0.4.1)
14
+ rack (~> 1.2.1)
15
+ rack-mount (~> 0.6.9)
16
+ rack-test (~> 0.5.4)
17
+ tzinfo (~> 0.3.22)
18
+ activemodel (3.0.0.rc)
19
+ activesupport (= 3.0.0.rc)
20
+ builder (~> 2.1.2)
21
+ i18n (~> 0.4.1)
22
+ activerecord (3.0.0.rc)
23
+ activemodel (= 3.0.0.rc)
24
+ activesupport (= 3.0.0.rc)
25
+ arel (~> 0.4.0)
26
+ tzinfo (~> 0.3.22)
27
+ activeresource (3.0.0.rc)
28
+ activemodel (= 3.0.0.rc)
29
+ activesupport (= 3.0.0.rc)
30
+ activesupport (3.0.0.rc)
31
+ arel (0.4.0)
32
+ activesupport (>= 3.0.0.beta)
33
+ builder (2.1.2)
34
+ capybara (0.4.1.2)
35
+ celerity (>= 0.7.9)
36
+ culerity (>= 0.2.4)
37
+ mime-types (>= 1.16)
38
+ nokogiri (>= 1.3.3)
39
+ rack (>= 1.0.0)
40
+ rack-test (>= 0.5.4)
41
+ selenium-webdriver (>= 0.0.27)
42
+ xpath (~> 0.1.3)
43
+ celerity (0.8.8)
44
+ childprocess (0.1.7)
45
+ ffi (~> 0.6.3)
46
+ configuration (1.2.0)
47
+ cucumber (0.10.0)
48
+ builder (>= 2.1.2)
49
+ diff-lcs (~> 1.1.2)
50
+ gherkin (~> 2.3.2)
51
+ json (~> 1.4.6)
52
+ term-ansicolor (~> 1.0.5)
53
+ cucumber-rails (0.3.2)
54
+ cucumber (>= 0.8.0)
55
+ culerity (0.2.15)
56
+ database_cleaner (0.6.4)
57
+ diff-lcs (1.1.2)
58
+ erubis (2.6.6)
59
+ abstract (>= 1.0.0)
60
+ exception_logger (0.1.6)
61
+ i18n (>= 0.4.1)
62
+ meta_where (>= 0.5.2)
63
+ rails (>= 3.0.0.rc)
64
+ will_paginate (>= 3.0.pre2)
65
+ factory_girl (1.3.3)
66
+ factory_girl_rails (1.0)
67
+ factory_girl (~> 1.3)
68
+ rails (>= 3.0.0.beta4)
69
+ ffi (0.6.3)
70
+ rake (>= 0.8.7)
71
+ gherkin (2.3.3)
72
+ json (~> 1.4.6)
73
+ i18n (0.4.2)
74
+ json (1.4.6)
75
+ json_pure (1.5.1)
76
+ launchy (0.3.7)
77
+ configuration (>= 0.0.5)
78
+ rake (>= 0.8.1)
79
+ mail (2.2.15)
80
+ activesupport (>= 2.3.6)
81
+ i18n (>= 0.4.0)
82
+ mime-types (~> 1.16)
83
+ treetop (~> 1.4.8)
84
+ meta_where (0.5.2)
85
+ activerecord (>= 3.0.0.beta4)
86
+ activesupport (>= 3.0.0.beta4)
87
+ arel (>= 0.4.0)
88
+ mime-types (1.16)
89
+ nokogiri (1.4.4)
90
+ polyglot (0.3.1)
91
+ rack (1.2.1)
92
+ rack-mount (0.6.13)
93
+ rack (>= 1.0.0)
94
+ rack-test (0.5.7)
95
+ rack (>= 1.0)
96
+ rails (3.0.0.rc)
97
+ actionmailer (= 3.0.0.rc)
98
+ actionpack (= 3.0.0.rc)
99
+ activerecord (= 3.0.0.rc)
100
+ activeresource (= 3.0.0.rc)
101
+ activesupport (= 3.0.0.rc)
102
+ bundler (>= 1.0.0.rc.1)
103
+ railties (= 3.0.0.rc)
104
+ railties (3.0.0.rc)
105
+ actionpack (= 3.0.0.rc)
106
+ activesupport (= 3.0.0.rc)
107
+ rake (>= 0.8.3)
108
+ thor (~> 0.14.0)
109
+ rake (0.8.7)
110
+ rubyzip (0.9.4)
111
+ selenium-webdriver (0.1.3)
112
+ childprocess (~> 0.1.5)
113
+ ffi (~> 0.6.3)
114
+ json_pure
115
+ rubyzip
116
+ shoulda (2.11.3)
117
+ sqlite3 (1.3.3)
118
+ sqlite3-ruby (1.3.3)
119
+ sqlite3 (>= 1.3.3)
120
+ term-ansicolor (1.0.5)
121
+ thor (0.14.6)
122
+ treetop (1.4.9)
123
+ polyglot (>= 0.3.1)
124
+ tzinfo (0.3.24)
125
+ will_paginate (3.0.pre2)
126
+ xpath (0.1.3)
127
+ nokogiri (~> 1.3)
128
+
129
+ PLATFORMS
130
+ ruby
131
+
132
+ DEPENDENCIES
133
+ capybara (>= 0.3.9)
134
+ cucumber (>= 0.8.5)
135
+ cucumber-rails (>= 0.3.2)
136
+ database_cleaner (>= 0.5.2)
137
+ exception_logger
138
+ factory_girl_rails (>= 1.0.0)
139
+ i18n (>= 0.4.1)
140
+ launchy (>= 0.3.7)
141
+ meta_where (>= 0.5.2)
142
+ nokogiri (>= 1.4.3.1)
143
+ rails (= 3.0.0.rc)
144
+ shoulda (>= 2.11.3)
145
+ sqlite3-ruby
146
+ will_paginate (>= 3.0.pre2)
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ include ExceptionLogger::ExceptionLoggable
3
+ rescue_from Exception, :with => :log_exception_handler
4
+ protect_from_forgery
5
+ end
@@ -0,0 +1,142 @@
1
+ Factory.define :logged_exception do |le|
2
+ le.exception_class "FunnyError"
3
+ le.controller_name "main"
4
+ le.action_name "index"
5
+ le.message "Bender: Ahhh, what an awful dream. Ones and zeroes everywhere... and I thought I saw a two.
6
+ Fry: Don't worry, Bender: there's no such thing as two."
7
+ le.backtrace "[RAILS_ROOT]/app/controllers/main_controller.rb:8:in `initialize'
8
+ [RAILS_ROOT]/app/controllers/main_controller.rb:8:in `initialize'
9
+ [RAILS_ROOT]/app/controllers/main_controller.rb:8:in `exception'
10
+ [RAILS_ROOT]/app/controllers/main_controller.rb:8:in `raise'
11
+ [RAILS_ROOT]/app/controllers/main_controller.rb:8:in `index'
12
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
13
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
14
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/abstract_controller/base.rb:136:in `process_action'
15
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal/rendering.rb:11:in `process_action'
16
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/abstract_controller/callbacks.rb:18:in `process_action'
17
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb:449:in `_run__557109792__process_action__199225275__callbacks'
18
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb:404:in `send'
19
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb:404:in `_run_process_action_callbacks'
20
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb:93:in `send'
21
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb:93:in `run_callbacks'
22
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/abstract_controller/callbacks.rb:17:in `process_action'
23
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
24
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/notifications.rb:52:in `instrument'
25
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
26
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/notifications.rb:52:in `instrument'
27
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
28
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal/rescue.rb:17:in `process_action'
29
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/abstract_controller/base.rb:105:in `process'
30
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/abstract_controller/rendering.rb:40:in `process'
31
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal.rb:133:in `dispatch'
32
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
33
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_controller/metal.rb:173
34
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:62:in `call'
35
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
36
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:27:in `call'
37
+ /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.9/lib/rack/mount/route_set.rb:148:in `call'
38
+ /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.9/lib/rack/mount/code_generation.rb:89:in `recognize'
39
+ /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.9/lib/rack/mount/code_generation.rb:66:in `optimized_each'
40
+ /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.9/lib/rack/mount/code_generation.rb:88:in `recognize'
41
+ /usr/lib/ruby/gems/1.8/gems/rack-mount-0.6.9/lib/rack/mount/route_set.rb:139:in `call'
42
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:489:in `call'
43
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/static.rb:30:in `call'
44
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/head.rb:14:in `call'
45
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in `call'
46
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
47
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/flash.rb:177:in `call'
48
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
49
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/cookies.rb:268:in `call'
50
+ /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0.rc/lib/active_record/query_cache.rb:32:in `call'
51
+ /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0.rc/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
52
+ /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0.rc/lib/active_record/query_cache.rb:12:in `cache'
53
+ /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0.rc/lib/active_record/query_cache.rb:31:in `call'
54
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
55
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/callbacks.rb:410:in `_run_call_callbacks'
56
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
57
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/sendfile.rb:107:in `call'
58
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
59
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/show_exceptions.rb:48:in `call'
60
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/rack/logger.rb:13:in `call'
61
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/runtime.rb:17:in `call'
62
+ /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.rc/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
63
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/lock.rb:11:in `call'
64
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/lock.rb:11:in `synchronize'
65
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/lock.rb:11:in `call'
66
+ /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.rc/lib/action_dispatch/middleware/static.rb:30:in `call'
67
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/application.rb:168:in `call'
68
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/application.rb:77:in `send'
69
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/application.rb:77:in `method_missing'
70
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/rack/log_tailer.rb:15:in `call'
71
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
72
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/chunked.rb:15:in `call'
73
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/mongrel.rb:67:in `process'
74
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
75
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
76
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
77
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
78
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
79
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
80
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
81
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
82
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
83
+ /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
84
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/mongrel.rb:38:in `run'
85
+ /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:213:in `start'
86
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/commands/server.rb:65:in `start'
87
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/commands.rb:30
88
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/commands.rb:27:in `tap'
89
+ /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/commands.rb:27
90
+ script/rails:6:in `require'
91
+ script/rails:6"
92
+ le.environment "* GATEWAY_INTERFACE : CGI/1.2
93
+ * HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
94
+ * HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
95
+ * HTTP_ACCEPT_ENCODING : gzip,deflate
96
+ * HTTP_ACCEPT_LANGUAGE : de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
97
+ * HTTP_CACHE_CONTROL : max-age=0
98
+ * HTTP_CONNECTION : keep-alive
99
+ * HTTP_HOST : bender:3000
100
+ * HTTP_KEEP_ALIVE : 115
101
+ * HTTP_USER_AGENT : YourPreferedBrowser
102
+ * HTTP_VERSION : HTTP/1.1
103
+ * PATH_INFO : /
104
+ * QUERY_STRING :
105
+ * REMOTE_ADDR : localhost
106
+ * REQUEST_METHOD : GET
107
+ * REQUEST_PATH : /
108
+ * REQUEST_URI : /
109
+ * SCRIPT_NAME :
110
+ * SERVER_NAME : bender
111
+ * SERVER_PORT : 3000
112
+ * SERVER_PROTOCOL : HTTP/1.1
113
+ * SERVER_SOFTWARE : Mongrel 1.1.5
114
+ * action_controller.instance : #<MainController:0xb6bb49f8>
115
+ * action_dispatch.cookies : langen
116
+ * action_dispatch.parameter_filter : passwordpassword_confirmation
117
+ * action_dispatch.remote_ip : localhost
118
+ * action_dispatch.request.content_type :
119
+ * action_dispatch.request.formats : text/html
120
+ * action_dispatch.request.parameters : actionindexcontrollermain
121
+ * action_dispatch.request.path_parameters : controllermainactionindex
122
+ * action_dispatch.request.query_parameters :
123
+ * action_dispatch.request.request_parameters :
124
+ * action_dispatch.request.unsigned_session_cookie:
125
+ * rack.errors : #<IO:0xb78b7560>
126
+ * rack.input : #<StringIO:0xb6d352f0>
127
+ * rack.multiprocess : false
128
+ * rack.multithread : false
129
+ * rack.request.query_hash :
130
+ * rack.request.query_string :
131
+ * rack.run_once : false
132
+ * rack.session :
133
+ * rack.session.options : securefalsehttponlytrueexpire_afterdomainidpath/
134
+ * rack.url_scheme : http
135
+ * rack.version : 11
136
+ * Process: 911
137
+ * Server : somewhere"
138
+ le.request "* URL: http://bender:3000/
139
+ * Format: text/html
140
+ * Parameters: {'action'=>'index', 'controller'=>'main'}
141
+ * Rails Root: /path_to_your_application/YourApplication"
142
+ end