diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-08 15:10:04 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-08 16:02:13 -0700 |
commit | 84081b4508c51d04a4a9019fcffe0e034b0b2d39 (patch) | |
tree | 3b53874b79b0a897ac7924a245d8939859d2f565 /test/rails/app-2.2.2 | |
parent | e9b8313d80c9ca870a25f7047454c98b81dd7c85 (diff) | |
download | unicorn-84081b4508c51d04a4a9019fcffe0e034b0b2d39.tar.gz |
This ensures any string literals that pop up in *our* code will just be a bag of bytes. This shouldn't affect/fix/break existing apps in most cases, but most constants will always have the "correct" encoding (none!) to be consistent with HTTP/socket expectations. Since this comment affects things only on a per-source basis, it won't affect existing apps with the exception of strings we pass to the Rack application. This will eventually allow us to get rid of that Unicorn::Z constant, too.
Diffstat (limited to 'test/rails/app-2.2.2')
8 files changed, 16 insertions, 0 deletions
diff --git a/test/rails/app-2.2.2/app/controllers/application.rb b/test/rails/app-2.2.2/app/controllers/application.rb index 09705d1..e7bb740 100644 --- a/test/rails/app-2.2.2/app/controllers/application.rb +++ b/test/rails/app-2.2.2/app/controllers/application.rb @@ -1,2 +1,4 @@ +# -*- encoding: binary -*- + class ApplicationController < ActionController::Base end diff --git a/test/rails/app-2.2.2/app/controllers/foo_controller.rb b/test/rails/app-2.2.2/app/controllers/foo_controller.rb index 8d877d1..52b7947 100644 --- a/test/rails/app-2.2.2/app/controllers/foo_controller.rb +++ b/test/rails/app-2.2.2/app/controllers/foo_controller.rb @@ -1,3 +1,5 @@ +# -*- encoding: binary -*- + require 'digest/sha1' class FooController < ApplicationController def index diff --git a/test/rails/app-2.2.2/app/helpers/application_helper.rb b/test/rails/app-2.2.2/app/helpers/application_helper.rb index de6be79..d9889b3 100644 --- a/test/rails/app-2.2.2/app/helpers/application_helper.rb +++ b/test/rails/app-2.2.2/app/helpers/application_helper.rb @@ -1,2 +1,4 @@ +# -*- encoding: binary -*- + module ApplicationHelper end diff --git a/test/rails/app-2.2.2/config/boot.rb b/test/rails/app-2.2.2/config/boot.rb index 0a51688..e357f0a 100644 --- a/test/rails/app-2.2.2/config/boot.rb +++ b/test/rails/app-2.2.2/config/boot.rb @@ -1,3 +1,5 @@ +# -*- encoding: binary -*- + # Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb diff --git a/test/rails/app-2.2.2/config/environment.rb b/test/rails/app-2.2.2/config/environment.rb index 7c720f6..9961f08 100644 --- a/test/rails/app-2.2.2/config/environment.rb +++ b/test/rails/app-2.2.2/config/environment.rb @@ -1,3 +1,5 @@ +# -*- encoding: binary -*- + unless defined? RAILS_GEM_VERSION RAILS_GEM_VERSION = ENV['UNICORN_RAILS_VERSION'] end diff --git a/test/rails/app-2.2.2/config/environments/development.rb b/test/rails/app-2.2.2/config/environments/development.rb index 7f49032..37f523f 100644 --- a/test/rails/app-2.2.2/config/environments/development.rb +++ b/test/rails/app-2.2.2/config/environments/development.rb @@ -1,3 +1,5 @@ +# -*- encoding: binary -*- + config.cache_classes = false config.whiny_nils = true config.action_controller.consider_all_requests_local = true diff --git a/test/rails/app-2.2.2/config/environments/production.rb b/test/rails/app-2.2.2/config/environments/production.rb index c4059e3..1e049b2 100644 --- a/test/rails/app-2.2.2/config/environments/production.rb +++ b/test/rails/app-2.2.2/config/environments/production.rb @@ -1,3 +1,5 @@ +# -*- encoding: binary -*- + config.cache_classes = true config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true diff --git a/test/rails/app-2.2.2/config/routes.rb b/test/rails/app-2.2.2/config/routes.rb index 774028f..70816dc 100644 --- a/test/rails/app-2.2.2/config/routes.rb +++ b/test/rails/app-2.2.2/config/routes.rb @@ -1,3 +1,5 @@ +# -*- encoding: binary -*- + ActionController::Routing::Routes.draw do |map| map.connect ':controller/:action/:id.:format' map.connect ':controller/:action/:id' |