mime_fallback 0.0.1

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 (62) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +40 -0
  4. data/Rakefile +38 -0
  5. data/lib/mime_fallback/negotiation_extensions.rb +31 -0
  6. data/lib/mime_fallback/railtie.rb +14 -0
  7. data/lib/mime_fallback/resolver.rb +21 -0
  8. data/lib/mime_fallback/type.rb +20 -0
  9. data/lib/mime_fallback/version.rb +3 -0
  10. data/lib/mime_fallback.rb +9 -0
  11. data/lib/tasks/mime_fallback_tasks.rake +4 -0
  12. data/test/dummy/README.rdoc +261 -0
  13. data/test/dummy/Rakefile +7 -0
  14. data/test/dummy/app/assets/javascripts/application.js +15 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  16. data/test/dummy/app/controllers/application_controller.rb +14 -0
  17. data/test/dummy/app/controllers/test_controller.rb +6 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  20. data/test/dummy/app/views/test/_shared.html.erb +2 -0
  21. data/test/dummy/app/views/test/_split_again.html.erb +1 -0
  22. data/test/dummy/app/views/test/_split_again.mobile.erb +1 -0
  23. data/test/dummy/app/views/test/basic.html.erb +2 -0
  24. data/test/dummy/app/views/test/basic.mobile.erb +2 -0
  25. data/test/dummy/config/application.rb +59 -0
  26. data/test/dummy/config/boot.rb +10 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +37 -0
  30. data/test/dummy/config/environments/production.rb +67 -0
  31. data/test/dummy/config/environments/test.rb +37 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/inflections.rb +15 -0
  34. data/test/dummy/config/initializers/mime_types.rb +11 -0
  35. data/test/dummy/config/initializers/secret_token.rb +7 -0
  36. data/test/dummy/config/initializers/session_store.rb +8 -0
  37. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  38. data/test/dummy/config/locales/en.yml +5 -0
  39. data/test/dummy/config/routes.rb +3 -0
  40. data/test/dummy/config.ru +4 -0
  41. data/test/dummy/db/test.sqlite3 +0 -0
  42. data/test/dummy/log/test.log +356 -0
  43. data/test/dummy/memory +0 -0
  44. data/test/dummy/public/404.html +26 -0
  45. data/test/dummy/public/422.html +26 -0
  46. data/test/dummy/public/500.html +25 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/dummy/script/rails +6 -0
  49. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  50. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sprockets/6b36a21a75ddb9a45aa6e9133c79a3c7 +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/c360bf7b66d29ebdf71b5814574b5fed +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/e0ac75c1efdaac1b74d439c004c3b09f +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/ec2d15616d5d09eb1693b761c72948ce +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  59. data/test/mime_fallback_test.rb +7 -0
  60. data/test/test_controller_test.rb +23 -0
  61. data/test/test_helper.rb +15 -0
  62. metadata +182 -0
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: "memory"
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: "memory"
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: "memory"
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Raise exception on mass assignment protection for Active Record models
26
+ config.active_record.mass_assignment_sanitizer = :strict
27
+
28
+ # Log the query plan for queries taking more than this (works
29
+ # with SQLite, MySQL, and PostgreSQL)
30
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
31
+
32
+ # Do not compress assets
33
+ config.assets.compress = false
34
+
35
+ # Expands the lines which load the assets
36
+ config.assets.debug = true
37
+ end
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
6
+
7
+ MimeFallback::Type.register_alias "text/html", :mobile, [], :html
8
+
9
+ # Rails doesn't handle wildcard mime types, so we need to hardcode
10
+ # this as an alias to html so we don't 404.
11
+ # Mime::LOOKUP['text/*'] = Mime::HTML
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '9f9e7582816afcde3b2533373cb666a96808d6c7e9cf9e5021dc8b28c1b4e540bb1a6d326fac732634567c73901bab82b1c948c6019c136f46586647a4ba90ac'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Dummy::Application.routes.draw do
2
+ get 'test/basic', :to => 'test#basic'
3
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
File without changes
@@ -0,0 +1,356 @@
1
+ Connecting to database specified by database.yml
2
+  (0.2ms) begin transaction
3
+  (0.0ms) rollback transaction
4
+ Connecting to database specified by database.yml
5
+  (0.2ms) begin transaction
6
+  (0.0ms) rollback transaction
7
+  (0.0ms) begin transaction
8
+  (0.1ms) rollback transaction
9
+  (0.0ms) begin transaction
10
+  (0.0ms) rollback transaction
11
+ Connecting to database specified by database.yml
12
+  (0.2ms) begin transaction
13
+  (0.0ms) rollback transaction
14
+  (0.0ms) begin transaction
15
+ Processing by TestController#basic as HTML
16
+ Rendered test/_split_again.html.erb (0.2ms)
17
+ Rendered test/_shared.html.erb (1.0ms)
18
+ Rendered test/basic.html.erb within layouts/application (4.3ms)
19
+ Completed 200 OK in 13.9ms (Views: 13.5ms | ActiveRecord: 0.0ms)
20
+  (0.1ms) rollback transaction
21
+  (0.0ms) begin transaction
22
+ Processing by TestController#basic as MOBILE
23
+ Completed 500 Internal Server Error in 4.9ms
24
+  (0.1ms) rollback transaction
25
+ Connecting to database specified by database.yml
26
+  (0.2ms) begin transaction
27
+  (0.0ms) rollback transaction
28
+  (0.0ms) begin transaction
29
+ Processing by TestController#basic as HTML
30
+ Rendered test/_split_again.html.erb (0.2ms)
31
+ Rendered test/_shared.html.erb (0.8ms)
32
+ Rendered test/basic.html.erb within layouts/application (2.9ms)
33
+ Completed 200 OK in 7.7ms (Views: 7.5ms | ActiveRecord: 0.0ms)
34
+  (0.1ms) rollback transaction
35
+  (0.0ms) begin transaction
36
+ Processing by TestController#basic as MOBILE
37
+ Completed 500 Internal Server Error in 3.6ms
38
+  (0.0ms) rollback transaction
39
+ Connecting to database specified by database.yml
40
+  (0.2ms) begin transaction
41
+  (0.0ms) rollback transaction
42
+  (0.0ms) begin transaction
43
+ Processing by TestController#basic as HTML
44
+ Rendered test/_split_again.html.erb (0.2ms)
45
+ Rendered test/_shared.html.erb (0.8ms)
46
+ Rendered test/basic.html.erb within layouts/application (3.0ms)
47
+ Completed 200 OK in 8.1ms (Views: 7.9ms | ActiveRecord: 0.0ms)
48
+  (0.1ms) rollback transaction
49
+  (0.0ms) begin transaction
50
+ Processing by TestController#basic as MOBILE
51
+ Completed 500 Internal Server Error in 3.4ms
52
+  (0.0ms) rollback transaction
53
+ Connecting to database specified by database.yml
54
+  (0.2ms) begin transaction
55
+  (0.0ms) rollback transaction
56
+  (0.0ms) begin transaction
57
+ Processing by TestController#basic as HTML
58
+ Rendered test/_split_again.html.erb (0.2ms)
59
+ Rendered test/_shared.html.erb (0.8ms)
60
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
61
+ Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
62
+  (0.0ms) rollback transaction
63
+  (0.0ms) begin transaction
64
+ Processing by TestController#basic as MOBILE
65
+ Completed 500 Internal Server Error in 3.8ms
66
+  (0.0ms) rollback transaction
67
+ Connecting to database specified by database.yml
68
+  (0.2ms) begin transaction
69
+  (0.0ms) rollback transaction
70
+  (0.0ms) begin transaction
71
+ Processing by TestController#basic as HTML
72
+ Rendered test/_split_again.html.erb (0.2ms)
73
+ Rendered test/_shared.html.erb (0.8ms)
74
+ Rendered test/basic.html.erb within layouts/application (2.7ms)
75
+ Completed 200 OK in 7.4ms (Views: 7.2ms | ActiveRecord: 0.0ms)
76
+  (0.1ms) rollback transaction
77
+  (0.0ms) begin transaction
78
+ Processing by TestController#basic as HTML
79
+ Parameters: {"mobile"=>"true"}
80
+ Rendered test/_split_again.html.erb (0.0ms)
81
+ Rendered test/_shared.html.erb (0.2ms)
82
+ Completed 200 OK in 1.3ms (Views: 1.2ms | ActiveRecord: 0.0ms)
83
+  (0.0ms) rollback transaction
84
+ Connecting to database specified by database.yml
85
+  (0.2ms) begin transaction
86
+  (0.0ms) rollback transaction
87
+  (0.0ms) begin transaction
88
+ Processing by TestController#basic as HTML
89
+ Rendered test/_split_again.html.erb (0.2ms)
90
+ Rendered test/_shared.html.erb (0.8ms)
91
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
92
+ Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
93
+  (0.1ms) rollback transaction
94
+  (0.0ms) begin transaction
95
+ Processing by TestController#basic as HTML
96
+ Parameters: {"mobile"=>"true"}
97
+ Completed 500 Internal Server Error in 0.9ms
98
+  (0.0ms) rollback transaction
99
+ Connecting to database specified by database.yml
100
+  (0.2ms) begin transaction
101
+  (0.0ms) rollback transaction
102
+  (0.0ms) begin transaction
103
+ Processing by TestController#basic as HTML
104
+ Rendered test/_split_again.html.erb (0.2ms)
105
+ Rendered test/_shared.html.erb (0.8ms)
106
+ Rendered test/basic.html.erb within layouts/application (2.7ms)
107
+ Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
108
+  (0.1ms) rollback transaction
109
+  (0.0ms) begin transaction
110
+ Processing by TestController#basic as HTML
111
+ Parameters: {"mobile"=>"true"}
112
+ Rendered test/_split_again.html.erb (0.0ms)
113
+ Rendered test/_shared.html.erb (0.2ms)
114
+ Completed 200 OK in 1.6ms (Views: 1.4ms | ActiveRecord: 0.0ms)
115
+  (0.0ms) rollback transaction
116
+ Connecting to database specified by database.yml
117
+  (0.2ms) begin transaction
118
+  (0.0ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+ Processing by TestController#basic as HTML
121
+ Rendered test/_split_again.html.erb (0.3ms)
122
+ Rendered test/_shared.html.erb (1.3ms)
123
+ Rendered test/basic.html.erb within layouts/application (4.8ms)
124
+ Completed 200 OK in 12.0ms (Views: 11.6ms | ActiveRecord: 0.0ms)
125
+  (0.1ms) rollback transaction
126
+  (0.0ms) begin transaction
127
+ Processing by TestController#basic as HTML
128
+ Parameters: {"mobile"=>"true"}
129
+ Completed 500 Internal Server Error in 6.5ms
130
+  (0.1ms) rollback transaction
131
+ Connecting to database specified by database.yml
132
+  (0.2ms) begin transaction
133
+  (0.0ms) rollback transaction
134
+  (0.0ms) begin transaction
135
+ Processing by TestController#basic as HTML
136
+ Rendered test/_split_again.html.erb (0.3ms)
137
+ Rendered test/_shared.html.erb (2.0ms)
138
+ Rendered test/basic.html.erb within layouts/application (16.5ms)
139
+ Completed 200 OK in 35.2ms (Views: 34.9ms | ActiveRecord: 0.0ms)
140
+  (0.1ms) rollback transaction
141
+  (0.0ms) begin transaction
142
+ Processing by TestController#basic as HTML
143
+ Parameters: {"mobile"=>"true"}
144
+ Completed 500 Internal Server Error in 5.1ms
145
+  (0.0ms) rollback transaction
146
+ Connecting to database specified by database.yml
147
+  (0.2ms) begin transaction
148
+  (0.0ms) rollback transaction
149
+  (0.0ms) begin transaction
150
+ Processing by TestController#basic as HTML
151
+ Rendered test/_split_again.html.erb (0.2ms)
152
+ Rendered test/_shared.html.erb (0.8ms)
153
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
154
+ Completed 200 OK in 7.5ms (Views: 7.3ms | ActiveRecord: 0.0ms)
155
+  (0.1ms) rollback transaction
156
+  (0.0ms) begin transaction
157
+ Processing by TestController#basic as HTML
158
+ Parameters: {"mobile"=>"true"}
159
+ Completed 500 Internal Server Error in 4.4ms
160
+  (0.0ms) rollback transaction
161
+ Connecting to database specified by database.yml
162
+  (0.2ms) begin transaction
163
+  (0.0ms) rollback transaction
164
+  (0.0ms) begin transaction
165
+ Processing by TestController#basic as HTML
166
+ Rendered test/_split_again.html.erb (0.2ms)
167
+ Rendered test/_shared.html.erb (0.8ms)
168
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
169
+ Completed 200 OK in 7.6ms (Views: 7.4ms | ActiveRecord: 0.0ms)
170
+  (0.1ms) rollback transaction
171
+  (0.0ms) begin transaction
172
+ Processing by TestController#basic as HTML
173
+ Parameters: {"mobile"=>"true"}
174
+ Completed 500 Internal Server Error in 3.8ms
175
+  (0.0ms) rollback transaction
176
+ Connecting to database specified by database.yml
177
+  (0.2ms) begin transaction
178
+  (0.0ms) rollback transaction
179
+  (0.0ms) begin transaction
180
+ Processing by TestController#basic as HTML
181
+ Rendered test/_split_again.html.erb (0.2ms)
182
+ Rendered test/_shared.html.erb (0.8ms)
183
+ Rendered test/basic.html.erb within layouts/application (2.6ms)
184
+ Completed 200 OK in 7.5ms (Views: 7.2ms | ActiveRecord: 0.0ms)
185
+  (0.0ms) rollback transaction
186
+  (0.0ms) begin transaction
187
+ Processing by TestController#basic as HTML
188
+ Parameters: {"mobile"=>"true"}
189
+ Completed 500 Internal Server Error in 3.5ms
190
+  (0.0ms) rollback transaction
191
+ Connecting to database specified by database.yml
192
+  (0.2ms) begin transaction
193
+  (0.0ms) rollback transaction
194
+  (0.0ms) begin transaction
195
+ Processing by TestController#basic as HTML
196
+ Rendered test/_split_again.html.erb (0.2ms)
197
+ Rendered test/_shared.html.erb (0.8ms)
198
+ Rendered test/basic.html.erb within layouts/application (2.6ms)
199
+ Completed 200 OK in 7.4ms (Views: 7.2ms | ActiveRecord: 0.0ms)
200
+  (0.1ms) rollback transaction
201
+  (0.0ms) begin transaction
202
+ Processing by TestController#basic as HTML
203
+ Parameters: {"mobile"=>"true"}
204
+ Completed 500 Internal Server Error in 4.5ms
205
+  (0.1ms) rollback transaction
206
+ Connecting to database specified by database.yml
207
+  (0.2ms) begin transaction
208
+  (0.0ms) rollback transaction
209
+  (0.0ms) begin transaction
210
+ Processing by TestController#basic as HTML
211
+ Rendered test/_split_again.html.erb (0.2ms)
212
+ Rendered test/_shared.html.erb (0.8ms)
213
+ Rendered test/basic.html.erb within layouts/application (2.7ms)
214
+ Completed 200 OK in 7.9ms (Views: 7.7ms | ActiveRecord: 0.0ms)
215
+  (0.1ms) rollback transaction
216
+  (0.0ms) begin transaction
217
+ Processing by TestController#basic as HTML
218
+ Parameters: {"mobile"=>"true"}
219
+ Completed 500 Internal Server Error in 5.2ms
220
+  (0.0ms) rollback transaction
221
+ Connecting to database specified by database.yml
222
+  (0.2ms) begin transaction
223
+  (0.0ms) rollback transaction
224
+  (0.0ms) begin transaction
225
+ Processing by TestController#basic as HTML
226
+ Rendered test/_split_again.html.erb (0.2ms)
227
+ Rendered test/_shared.html.erb (0.8ms)
228
+ Rendered test/basic.html.erb within layouts/application (2.7ms)
229
+ Completed 200 OK in 7.9ms (Views: 7.7ms | ActiveRecord: 0.0ms)
230
+  (0.0ms) rollback transaction
231
+  (0.0ms) begin transaction
232
+ Processing by TestController#basic as HTML
233
+ Parameters: {"mobile"=>"true"}
234
+ Completed 500 Internal Server Error in 0.2ms
235
+  (0.0ms) rollback transaction
236
+ Connecting to database specified by database.yml
237
+  (0.2ms) begin transaction
238
+  (0.0ms) rollback transaction
239
+  (0.0ms) begin transaction
240
+ Processing by TestController#basic as HTML
241
+ Rendered test/_split_again.html.erb (0.2ms)
242
+ Rendered test/_shared.html.erb (0.8ms)
243
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
244
+ Completed 200 OK in 8.0ms (Views: 7.8ms | ActiveRecord: 0.0ms)
245
+  (0.1ms) rollback transaction
246
+  (0.0ms) begin transaction
247
+ Processing by TestController#basic as HTML
248
+ Parameters: {"mobile"=>"true"}
249
+ Completed 500 Internal Server Error in 5.1ms
250
+  (0.0ms) rollback transaction
251
+ Connecting to database specified by database.yml
252
+  (0.2ms) begin transaction
253
+  (0.0ms) rollback transaction
254
+  (0.0ms) begin transaction
255
+ Processing by TestController#basic as HTML
256
+ Rendered test/_split_again.html.erb (0.3ms)
257
+ Rendered test/_shared.html.erb (1.1ms)
258
+ Rendered test/basic.html.erb within layouts/application (4.0ms)
259
+ Completed 200 OK in 10.1ms (Views: 9.8ms | ActiveRecord: 0.0ms)
260
+  (0.0ms) rollback transaction
261
+  (0.0ms) begin transaction
262
+ Processing by TestController#basic as HTML
263
+ Parameters: {"mobile"=>"true"}
264
+ Completed 500 Internal Server Error in 5.2ms
265
+  (0.0ms) rollback transaction
266
+ Connecting to database specified by database.yml
267
+  (0.2ms) begin transaction
268
+  (0.0ms) rollback transaction
269
+  (0.0ms) begin transaction
270
+ Processing by TestController#basic as HTML
271
+ Rendered test/_split_again.html.erb (0.2ms)
272
+ Rendered test/_shared.html.erb (0.8ms)
273
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
274
+ Completed 200 OK in 8.5ms (Views: 8.3ms | ActiveRecord: 0.0ms)
275
+  (0.1ms) rollback transaction
276
+  (0.0ms) begin transaction
277
+ Processing by TestController#basic as HTML
278
+ Parameters: {"mobile"=>"true"}
279
+ Completed 500 Internal Server Error in 11.5ms
280
+  (0.1ms) rollback transaction
281
+ Connecting to database specified by database.yml
282
+  (0.2ms) begin transaction
283
+  (0.0ms) rollback transaction
284
+  (0.0ms) begin transaction
285
+ Processing by TestController#basic as HTML
286
+ Rendered test/_split_again.html.erb (0.2ms)
287
+ Rendered test/_shared.html.erb (0.8ms)
288
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
289
+ Completed 200 OK in 8.6ms (Views: 8.3ms | ActiveRecord: 0.0ms)
290
+  (0.1ms) rollback transaction
291
+  (0.0ms) begin transaction
292
+ Processing by TestController#basic as HTML
293
+ Parameters: {"mobile"=>"true"}
294
+ Rendered test/_split_again.mobile.erb (0.4ms)
295
+ Rendered test/_shared.html.erb (3.5ms)
296
+ Completed 200 OK in 11.3ms (Views: 11.0ms | ActiveRecord: 0.0ms)
297
+  (0.1ms) rollback transaction
298
+ Connecting to database specified by database.yml
299
+  (0.2ms) begin transaction
300
+  (0.0ms) rollback transaction
301
+  (0.0ms) begin transaction
302
+ Processing by TestController#basic as HTML
303
+ Rendered test/_split_again.html.erb (0.2ms)
304
+ Rendered test/_shared.html.erb (0.8ms)
305
+ Rendered test/basic.html.erb within layouts/application (2.7ms)
306
+ Completed 200 OK in 7.8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
307
+  (0.1ms) rollback transaction
308
+  (0.0ms) begin transaction
309
+ Processing by TestController#basic as HTML
310
+ Parameters: {"mobile"=>"true"}
311
+ Rendered test/_split_again.mobile.erb (0.2ms)
312
+ Rendered test/_shared.html.erb (0.8ms)
313
+ Completed 200 OK in 3.9ms (Views: 3.8ms | ActiveRecord: 0.0ms)
314
+  (0.0ms) rollback transaction
315
+ Connecting to database specified by database.yml
316
+  (0.2ms) begin transaction
317
+  (0.0ms) rollback transaction
318
+  (0.0ms) begin transaction
319
+ Processing by TestController#basic as HTML
320
+ Rendered test/_split_again.html.erb (0.2ms)
321
+ Rendered test/_shared.html.erb (0.8ms)
322
+ Rendered test/basic.html.erb within layouts/application (2.8ms)
323
+ Completed 200 OK in 7.5ms (Views: 7.2ms | ActiveRecord: 0.0ms)
324
+  (0.1ms) rollback transaction
325
+  (0.0ms) begin transaction
326
+ Processing by TestController#basic as HTML
327
+ Parameters: {"mobile"=>"true"}
328
+ Rendered test/_split_again.mobile.erb (0.2ms)
329
+ Rendered test/_shared.html.erb (0.8ms)
330
+ Completed 200 OK in 3.9ms (Views: 3.8ms | ActiveRecord: 0.0ms)
331
+  (0.0ms) rollback transaction
332
+  (0.2ms) begin transaction
333
+ ----------------------------
334
+ MimeFallbackTest: test_truth
335
+ ----------------------------
336
+  (0.0ms) rollback transaction
337
+  (0.0ms) begin transaction
338
+ ---------------------------------------
339
+ TestControllerTest: test_rendering_html
340
+ ---------------------------------------
341
+ Processing by TestController#basic as HTML
342
+ Rendered test/_split_again.html.erb (0.2ms)
343
+ Rendered test/_shared.html.erb (0.9ms)
344
+ Rendered test/basic.html.erb within layouts/application (1.7ms)
345
+ Completed 200 OK in 56ms (Views: 55.8ms | ActiveRecord: 0.0ms)
346
+  (0.1ms) rollback transaction
347
+  (0.0ms) begin transaction
348
+ -----------------------------------------
349
+ TestControllerTest: test_rendering_mobile
350
+ -----------------------------------------
351
+ Processing by TestController#basic as HTML
352
+ Parameters: {"mobile"=>"true"}
353
+ Rendered test/_split_again.mobile.erb (0.3ms)
354
+ Rendered test/_shared.html.erb (1.0ms)
355
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
356
+  (0.1ms) rollback transaction
data/test/dummy/memory ADDED
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>