mime_fallback 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +40 -0
- data/Rakefile +38 -0
- data/lib/mime_fallback/negotiation_extensions.rb +31 -0
- data/lib/mime_fallback/railtie.rb +14 -0
- data/lib/mime_fallback/resolver.rb +21 -0
- data/lib/mime_fallback/type.rb +20 -0
- data/lib/mime_fallback/version.rb +3 -0
- data/lib/mime_fallback.rb +9 -0
- data/lib/tasks/mime_fallback_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +14 -0
- data/test/dummy/app/controllers/test_controller.rb +6 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/test/_shared.html.erb +2 -0
- data/test/dummy/app/views/test/_split_again.html.erb +1 -0
- data/test/dummy/app/views/test/_split_again.mobile.erb +1 -0
- data/test/dummy/app/views/test/basic.html.erb +2 -0
- data/test/dummy/app/views/test/basic.mobile.erb +2 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +11 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +356 -0
- data/test/dummy/memory +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6b36a21a75ddb9a45aa6e9133c79a3c7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c360bf7b66d29ebdf71b5814574b5fed +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e0ac75c1efdaac1b74d439c004c3b09f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ec2d15616d5d09eb1693b761c72948ce +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/mime_fallback_test.rb +7 -0
- data/test/test_controller_test.rb +23 -0
- data/test/test_helper.rb +15 -0
- 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,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
|
File without changes
|
@@ -0,0 +1,356 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
6
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
+
Connecting to database specified by database.yml
|
12
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
13
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
14
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
22
|
+
Processing by TestController#basic as MOBILE
|
23
|
+
Completed 500 Internal Server Error in 4.9ms
|
24
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
25
|
+
Connecting to database specified by database.yml
|
26
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
27
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
28
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36
|
+
Processing by TestController#basic as MOBILE
|
37
|
+
Completed 500 Internal Server Error in 3.6ms
|
38
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
39
|
+
Connecting to database specified by database.yml
|
40
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
41
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
42
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
49
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
50
|
+
Processing by TestController#basic as MOBILE
|
51
|
+
Completed 500 Internal Server Error in 3.4ms
|
52
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
53
|
+
Connecting to database specified by database.yml
|
54
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64
|
+
Processing by TestController#basic as MOBILE
|
65
|
+
Completed 500 Internal Server Error in 3.8ms
|
66
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
67
|
+
Connecting to database specified by database.yml
|
68
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
69
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
70
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
84
|
+
Connecting to database specified by database.yml
|
85
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
86
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
87
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
94
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
95
|
+
Processing by TestController#basic as HTML
|
96
|
+
Parameters: {"mobile"=>"true"}
|
97
|
+
Completed 500 Internal Server Error in 0.9ms
|
98
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
99
|
+
Connecting to database specified by database.yml
|
100
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
102
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
109
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
116
|
+
Connecting to database specified by database.yml
|
117
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
118
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
126
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
127
|
+
Processing by TestController#basic as HTML
|
128
|
+
Parameters: {"mobile"=>"true"}
|
129
|
+
Completed 500 Internal Server Error in 6.5ms
|
130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
+
Connecting to database specified by database.yml
|
132
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
142
|
+
Processing by TestController#basic as HTML
|
143
|
+
Parameters: {"mobile"=>"true"}
|
144
|
+
Completed 500 Internal Server Error in 5.1ms
|
145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
146
|
+
Connecting to database specified by database.yml
|
147
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
148
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
149
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
156
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
157
|
+
Processing by TestController#basic as HTML
|
158
|
+
Parameters: {"mobile"=>"true"}
|
159
|
+
Completed 500 Internal Server Error in 4.4ms
|
160
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
161
|
+
Connecting to database specified by database.yml
|
162
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
163
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
164
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
172
|
+
Processing by TestController#basic as HTML
|
173
|
+
Parameters: {"mobile"=>"true"}
|
174
|
+
Completed 500 Internal Server Error in 3.8ms
|
175
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
176
|
+
Connecting to database specified by database.yml
|
177
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
178
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
179
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
186
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
187
|
+
Processing by TestController#basic as HTML
|
188
|
+
Parameters: {"mobile"=>"true"}
|
189
|
+
Completed 500 Internal Server Error in 3.5ms
|
190
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191
|
+
Connecting to database specified by database.yml
|
192
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
193
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
194
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
201
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
202
|
+
Processing by TestController#basic as HTML
|
203
|
+
Parameters: {"mobile"=>"true"}
|
204
|
+
Completed 500 Internal Server Error in 4.5ms
|
205
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
206
|
+
Connecting to database specified by database.yml
|
207
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
208
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
209
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
216
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
217
|
+
Processing by TestController#basic as HTML
|
218
|
+
Parameters: {"mobile"=>"true"}
|
219
|
+
Completed 500 Internal Server Error in 5.2ms
|
220
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
221
|
+
Connecting to database specified by database.yml
|
222
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
223
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
224
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
231
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
232
|
+
Processing by TestController#basic as HTML
|
233
|
+
Parameters: {"mobile"=>"true"}
|
234
|
+
Completed 500 Internal Server Error in 0.2ms
|
235
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
236
|
+
Connecting to database specified by database.yml
|
237
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
238
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
|
+
Processing by TestController#basic as HTML
|
248
|
+
Parameters: {"mobile"=>"true"}
|
249
|
+
Completed 500 Internal Server Error in 5.1ms
|
250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
251
|
+
Connecting to database specified by database.yml
|
252
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
253
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
254
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
262
|
+
Processing by TestController#basic as HTML
|
263
|
+
Parameters: {"mobile"=>"true"}
|
264
|
+
Completed 500 Internal Server Error in 5.2ms
|
265
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
266
|
+
Connecting to database specified by database.yml
|
267
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
268
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
269
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
276
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
277
|
+
Processing by TestController#basic as HTML
|
278
|
+
Parameters: {"mobile"=>"true"}
|
279
|
+
Completed 500 Internal Server Error in 11.5ms
|
280
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
281
|
+
Connecting to database specified by database.yml
|
282
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
283
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
284
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
298
|
+
Connecting to database specified by database.yml
|
299
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
300
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
301
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
308
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
315
|
+
Connecting to database specified by database.yml
|
316
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
317
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
318
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
325
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
332
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
333
|
+
----------------------------
|
334
|
+
MimeFallbackTest: test_truth
|
335
|
+
----------------------------
|
336
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
337
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
347
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m 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>
|