From 8e55e561a1bcba57bf429c9c2111ec5351fcb1b3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Jun 2010 22:53:28 +0000 Subject: move Rails 2.3.x test to Rails 2.3.8 This allows us to gets rid of the Rack 1.0.1 dependency when running Rails tests since previous versions of Rails 2.3.x needed Rack 1.0.1, where as Rails 2.2.x and below could be used with any version of Rack (under Unicorn only). --- FAQ | 5 +- GNUmakefile | 7 +- test/rails/app-2.3.5/.gitignore | 2 - test/rails/app-2.3.5/Rakefile | 7 -- .../app/controllers/application_controller.rb | 5 - .../app-2.3.5/app/controllers/foo_controller.rb | 36 ------- .../app-2.3.5/app/helpers/application_helper.rb | 4 - test/rails/app-2.3.5/config/boot.rb | 109 --------------------- test/rails/app-2.3.5/config/database.yml | 12 --- test/rails/app-2.3.5/config/environment.rb | 17 ---- .../app-2.3.5/config/environments/development.rb | 7 -- .../app-2.3.5/config/environments/production.rb | 6 -- test/rails/app-2.3.5/config/routes.rb | 6 -- test/rails/app-2.3.5/db/.gitignore | 0 test/rails/app-2.3.5/log/.gitignore | 1 - test/rails/app-2.3.5/public/404.html | 1 - test/rails/app-2.3.5/public/500.html | 1 - test/rails/app-2.3.5/public/x.txt | 1 - test/rails/app-2.3.8/.gitignore | 2 + test/rails/app-2.3.8/Rakefile | 7 ++ .../app/controllers/application_controller.rb | 5 + .../app-2.3.8/app/controllers/foo_controller.rb | 36 +++++++ .../app-2.3.8/app/helpers/application_helper.rb | 4 + test/rails/app-2.3.8/config/boot.rb | 109 +++++++++++++++++++++ test/rails/app-2.3.8/config/database.yml | 12 +++ test/rails/app-2.3.8/config/environment.rb | 17 ++++ .../app-2.3.8/config/environments/development.rb | 7 ++ .../app-2.3.8/config/environments/production.rb | 6 ++ test/rails/app-2.3.8/config/routes.rb | 6 ++ test/rails/app-2.3.8/db/.gitignore | 0 test/rails/app-2.3.8/log/.gitignore | 1 + test/rails/app-2.3.8/public/404.html | 1 + test/rails/app-2.3.8/public/500.html | 1 + test/rails/app-2.3.8/public/x.txt | 1 + 34 files changed, 224 insertions(+), 218 deletions(-) delete mode 100644 test/rails/app-2.3.5/.gitignore delete mode 100644 test/rails/app-2.3.5/Rakefile delete mode 100644 test/rails/app-2.3.5/app/controllers/application_controller.rb delete mode 100644 test/rails/app-2.3.5/app/controllers/foo_controller.rb delete mode 100644 test/rails/app-2.3.5/app/helpers/application_helper.rb delete mode 100644 test/rails/app-2.3.5/config/boot.rb delete mode 100644 test/rails/app-2.3.5/config/database.yml delete mode 100644 test/rails/app-2.3.5/config/environment.rb delete mode 100644 test/rails/app-2.3.5/config/environments/development.rb delete mode 100644 test/rails/app-2.3.5/config/environments/production.rb delete mode 100644 test/rails/app-2.3.5/config/routes.rb delete mode 100644 test/rails/app-2.3.5/db/.gitignore delete mode 100644 test/rails/app-2.3.5/log/.gitignore delete mode 100644 test/rails/app-2.3.5/public/404.html delete mode 100644 test/rails/app-2.3.5/public/500.html delete mode 100644 test/rails/app-2.3.5/public/x.txt create mode 100644 test/rails/app-2.3.8/.gitignore create mode 100644 test/rails/app-2.3.8/Rakefile create mode 100644 test/rails/app-2.3.8/app/controllers/application_controller.rb create mode 100644 test/rails/app-2.3.8/app/controllers/foo_controller.rb create mode 100644 test/rails/app-2.3.8/app/helpers/application_helper.rb create mode 100644 test/rails/app-2.3.8/config/boot.rb create mode 100644 test/rails/app-2.3.8/config/database.yml create mode 100644 test/rails/app-2.3.8/config/environment.rb create mode 100644 test/rails/app-2.3.8/config/environments/development.rb create mode 100644 test/rails/app-2.3.8/config/environments/production.rb create mode 100644 test/rails/app-2.3.8/config/routes.rb create mode 100644 test/rails/app-2.3.8/db/.gitignore create mode 100644 test/rails/app-2.3.8/log/.gitignore create mode 100644 test/rails/app-2.3.8/public/404.html create mode 100644 test/rails/app-2.3.8/public/500.html create mode 100644 test/rails/app-2.3.8/public/x.txt diff --git a/FAQ b/FAQ index 75f373b..c84a8af 100644 --- a/FAQ +++ b/FAQ @@ -1,11 +1,12 @@ = Frequently Asked Questions about Unicorn -=== I've installed Rack 1.1.x, why can't Unicorn load Rails? +=== I've installed Rack 1.1.x, why can't Unicorn load Rails (2.3.5)? Rails 2.3.5 is not compatible with Rack 1.1.x. Unicorn is compatible with both Rack 1.1.x and Rack 1.0.x, and RubyGems will load the latest version of Rack installed on the system. Uninstalling the Rack 1.1.x -gem should solve gem loading issues with Rails 2.3.x. +gem should solve gem loading issues with Rails 2.3.5. Rails 2.3.6 +and later correctly support Rack 1.1.x. === Why are my redirects going to "http" URLs when my site uses https? diff --git a/GNUmakefile b/GNUmakefile index ca25518..35df2f2 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -208,6 +208,11 @@ $(rails_git)/info/cloned-stamp: git clone --mirror -q $(rails_git_url) $(rails_git) > $@ +$(rails_git)/info/v2.3.8-stamp: $(rails_git)/info/cloned-stamp + cd $(rails_git) && git fetch + cd $(rails_git) && git rev-parse --verify refs/tags/v2.3.8 + > $@ + rails_tests := $(addsuffix .r,$(addprefix $(T_r).,$(rails_vers))) test-rails: $(rails_tests) $(T_r).%.r: t = $(addsuffix $(log_suffix),$@) @@ -218,7 +223,7 @@ $(T_r).%.r: export PATH := $(test_prefix)/bin:$(PATH) $(T_r).%.r: export RUBYLIB := $(test_prefix):$(test_prefix)/lib:$(RUBYLIB) $(T_r).%.r: export UNICORN_RAILS_TEST_VERSION = $(rv) $(T_r).%.r: export RAILS_GIT_REPO = $(CURDIR)/$(rails_git) -$(T_r).%.r: $(test_prefix)/.stamp $(rails_git)/info/cloned-stamp +$(T_r).%.r: $(test_prefix)/.stamp $(rails_git)/info/v2.3.8-stamp $(run_test) ifneq ($(VERSION),) diff --git a/test/rails/app-2.3.5/.gitignore b/test/rails/app-2.3.5/.gitignore deleted file mode 100644 index f451f91..0000000 --- a/test/rails/app-2.3.5/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/tmp -/vendor diff --git a/test/rails/app-2.3.5/Rakefile b/test/rails/app-2.3.5/Rakefile deleted file mode 100644 index fbebfca..0000000 --- a/test/rails/app-2.3.5/Rakefile +++ /dev/null @@ -1,7 +0,0 @@ -require(File.join(File.dirname(__FILE__), 'config', 'boot')) - -require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' - -require 'tasks/rails' diff --git a/test/rails/app-2.3.5/app/controllers/application_controller.rb b/test/rails/app-2.3.5/app/controllers/application_controller.rb deleted file mode 100644 index 07c333e..0000000 --- a/test/rails/app-2.3.5/app/controllers/application_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -# -*- encoding: binary -*- - -class ApplicationController < ActionController::Base - helper :all -end diff --git a/test/rails/app-2.3.5/app/controllers/foo_controller.rb b/test/rails/app-2.3.5/app/controllers/foo_controller.rb deleted file mode 100644 index 54ca1ed..0000000 --- a/test/rails/app-2.3.5/app/controllers/foo_controller.rb +++ /dev/null @@ -1,36 +0,0 @@ -# -*- encoding: binary -*- - -require 'digest/sha1' -class FooController < ApplicationController - def index - render :text => "FOO\n" - end - - def xcookie - cookies["foo"] = "cookie-#$$-#{session[:gotta_use_the_session_in_2_3]}" - render :text => "" - end - - def xnotice - flash[:notice] = "session #$$" - render :text => "" - end - - def xpost - if request.post? - digest = Digest::SHA1.new - out = "params: #{params.inspect}\n" - if file = params[:file] - loop do - buf = file.read(4096) or break - digest.update(buf) - end - out << "sha1: #{digest.to_s}\n" - end - headers['content-type'] = 'text/plain' - render :text => out - else - render :status => 403, :text => "need post\n" - end - end -end diff --git a/test/rails/app-2.3.5/app/helpers/application_helper.rb b/test/rails/app-2.3.5/app/helpers/application_helper.rb deleted file mode 100644 index d9889b3..0000000 --- a/test/rails/app-2.3.5/app/helpers/application_helper.rb +++ /dev/null @@ -1,4 +0,0 @@ -# -*- encoding: binary -*- - -module ApplicationHelper -end diff --git a/test/rails/app-2.3.5/config/boot.rb b/test/rails/app-2.3.5/config/boot.rb deleted file mode 100644 index b6c80d5..0000000 --- a/test/rails/app-2.3.5/config/boot.rb +++ /dev/null @@ -1,109 +0,0 @@ -# -*- encoding: binary -*- - -RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) - -module Rails - class << self - def boot! - unless booted? - preinitialize - pick_boot.run - end - end - - def booted? - defined? Rails::Initializer - end - - def pick_boot - (vendor_rails? ? VendorBoot : GemBoot).new - end - - def vendor_rails? - File.exist?("#{RAILS_ROOT}/vendor/rails") - end - - def preinitialize - load(preinitializer_path) if File.exist?(preinitializer_path) - end - - def preinitializer_path - "#{RAILS_ROOT}/config/preinitializer.rb" - end - end - - class Boot - def run - load_initializer - Rails::Initializer.run(:set_load_path) - end - end - - class VendorBoot < Boot - def load_initializer - require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" - Rails::Initializer.run(:install_gem_spec_stubs) - Rails::GemDependency.add_frozen_gem_path - end - end - - class GemBoot < Boot - def load_initializer - self.class.load_rubygems - load_rails_gem - require 'initializer' - end - - def load_rails_gem - if version = self.class.gem_version - gem 'rails', version - else - gem 'rails' - end - rescue Gem::LoadError => load_error - $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.) - exit 1 - end - - class << self - def rubygems_version - Gem::RubyGemsVersion rescue nil - end - - def gem_version - if defined? RAILS_GEM_VERSION - RAILS_GEM_VERSION - elsif ENV.include?('RAILS_GEM_VERSION') - ENV['RAILS_GEM_VERSION'] - else - parse_gem_version(read_environment_rb) - end - end - - def load_rubygems - require 'rubygems' - min_version = '1.3.1' - unless rubygems_version >= min_version - $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.) - exit 1 - end - - rescue LoadError - $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org) - exit 1 - end - - def parse_gem_version(text) - $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/ - end - - private - def read_environment_rb - File.read("#{RAILS_ROOT}/config/environment.rb") - end - end - end -end - -# All that for this: -Rails.boot! diff --git a/test/rails/app-2.3.5/config/database.yml b/test/rails/app-2.3.5/config/database.yml deleted file mode 100644 index 9f77843..0000000 --- a/test/rails/app-2.3.5/config/database.yml +++ /dev/null @@ -1,12 +0,0 @@ -development: - adapter: sqlite3 - database: db/development.sqlite3 - timeout: 5000 -test: - adapter: sqlite3 - database: db/test.sqlite3 - timeout: 5000 -production: - adapter: sqlite3 - database: db/production.sqlite3 - timeout: 5000 diff --git a/test/rails/app-2.3.5/config/environment.rb b/test/rails/app-2.3.5/config/environment.rb deleted file mode 100644 index 6eb092c..0000000 --- a/test/rails/app-2.3.5/config/environment.rb +++ /dev/null @@ -1,17 +0,0 @@ -# -*- encoding: binary -*- - -unless defined? RAILS_GEM_VERSION - RAILS_GEM_VERSION = ENV['UNICORN_RAILS_VERSION'] -end - -# Bootstrap the Rails environment, frameworks, and default configuration -require File.join(File.dirname(__FILE__), 'boot') - -Rails::Initializer.run do |config| - config.frameworks -= [ :active_resource, :action_mailer ] - config.action_controller.session_store = :active_record_store - config.action_controller.session = { - :session_key => "_unicorn_rails_test.#{rand}", - :secret => "#{rand}#{rand}#{rand}#{rand}", - } -end diff --git a/test/rails/app-2.3.5/config/environments/development.rb b/test/rails/app-2.3.5/config/environments/development.rb deleted file mode 100644 index 3d381d2..0000000 --- a/test/rails/app-2.3.5/config/environments/development.rb +++ /dev/null @@ -1,7 +0,0 @@ -# -*- encoding: binary -*- - -config.cache_classes = false -config.whiny_nils = true -config.action_controller.consider_all_requests_local = true -config.action_view.debug_rjs = true -config.action_controller.perform_caching = false diff --git a/test/rails/app-2.3.5/config/environments/production.rb b/test/rails/app-2.3.5/config/environments/production.rb deleted file mode 100644 index 08710a4..0000000 --- a/test/rails/app-2.3.5/config/environments/production.rb +++ /dev/null @@ -1,6 +0,0 @@ -# -*- encoding: binary -*- - -config.cache_classes = true -config.action_controller.consider_all_requests_local = false -config.action_controller.perform_caching = true -config.action_view.cache_template_loading = true diff --git a/test/rails/app-2.3.5/config/routes.rb b/test/rails/app-2.3.5/config/routes.rb deleted file mode 100644 index ac7877c..0000000 --- a/test/rails/app-2.3.5/config/routes.rb +++ /dev/null @@ -1,6 +0,0 @@ -# -*- encoding: binary -*- - -ActionController::Routing::Routes.draw do |map| - map.connect ':controller/:action/:id' - map.connect ':controller/:action/:id.:format' -end diff --git a/test/rails/app-2.3.5/db/.gitignore b/test/rails/app-2.3.5/db/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/test/rails/app-2.3.5/log/.gitignore b/test/rails/app-2.3.5/log/.gitignore deleted file mode 100644 index 397b4a7..0000000 --- a/test/rails/app-2.3.5/log/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.log diff --git a/test/rails/app-2.3.5/public/404.html b/test/rails/app-2.3.5/public/404.html deleted file mode 100644 index 44d986c..0000000 --- a/test/rails/app-2.3.5/public/404.html +++ /dev/null @@ -1 +0,0 @@ -404 Not Found diff --git a/test/rails/app-2.3.5/public/500.html b/test/rails/app-2.3.5/public/500.html deleted file mode 100644 index e534a49..0000000 --- a/test/rails/app-2.3.5/public/500.html +++ /dev/null @@ -1 +0,0 @@ -500 Internal Server Error diff --git a/test/rails/app-2.3.5/public/x.txt b/test/rails/app-2.3.5/public/x.txt deleted file mode 100644 index e427984..0000000 --- a/test/rails/app-2.3.5/public/x.txt +++ /dev/null @@ -1 +0,0 @@ -HELLO diff --git a/test/rails/app-2.3.8/.gitignore b/test/rails/app-2.3.8/.gitignore new file mode 100644 index 0000000..f451f91 --- /dev/null +++ b/test/rails/app-2.3.8/.gitignore @@ -0,0 +1,2 @@ +/tmp +/vendor diff --git a/test/rails/app-2.3.8/Rakefile b/test/rails/app-2.3.8/Rakefile new file mode 100644 index 0000000..fbebfca --- /dev/null +++ b/test/rails/app-2.3.8/Rakefile @@ -0,0 +1,7 @@ +require(File.join(File.dirname(__FILE__), 'config', 'boot')) + +require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' + +require 'tasks/rails' diff --git a/test/rails/app-2.3.8/app/controllers/application_controller.rb b/test/rails/app-2.3.8/app/controllers/application_controller.rb new file mode 100644 index 0000000..07c333e --- /dev/null +++ b/test/rails/app-2.3.8/app/controllers/application_controller.rb @@ -0,0 +1,5 @@ +# -*- encoding: binary -*- + +class ApplicationController < ActionController::Base + helper :all +end diff --git a/test/rails/app-2.3.8/app/controllers/foo_controller.rb b/test/rails/app-2.3.8/app/controllers/foo_controller.rb new file mode 100644 index 0000000..54ca1ed --- /dev/null +++ b/test/rails/app-2.3.8/app/controllers/foo_controller.rb @@ -0,0 +1,36 @@ +# -*- encoding: binary -*- + +require 'digest/sha1' +class FooController < ApplicationController + def index + render :text => "FOO\n" + end + + def xcookie + cookies["foo"] = "cookie-#$$-#{session[:gotta_use_the_session_in_2_3]}" + render :text => "" + end + + def xnotice + flash[:notice] = "session #$$" + render :text => "" + end + + def xpost + if request.post? + digest = Digest::SHA1.new + out = "params: #{params.inspect}\n" + if file = params[:file] + loop do + buf = file.read(4096) or break + digest.update(buf) + end + out << "sha1: #{digest.to_s}\n" + end + headers['content-type'] = 'text/plain' + render :text => out + else + render :status => 403, :text => "need post\n" + end + end +end diff --git a/test/rails/app-2.3.8/app/helpers/application_helper.rb b/test/rails/app-2.3.8/app/helpers/application_helper.rb new file mode 100644 index 0000000..d9889b3 --- /dev/null +++ b/test/rails/app-2.3.8/app/helpers/application_helper.rb @@ -0,0 +1,4 @@ +# -*- encoding: binary -*- + +module ApplicationHelper +end diff --git a/test/rails/app-2.3.8/config/boot.rb b/test/rails/app-2.3.8/config/boot.rb new file mode 100644 index 0000000..b6c80d5 --- /dev/null +++ b/test/rails/app-2.3.8/config/boot.rb @@ -0,0 +1,109 @@ +# -*- encoding: binary -*- + +RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) + +module Rails + class << self + def boot! + unless booted? + preinitialize + pick_boot.run + end + end + + def booted? + defined? Rails::Initializer + end + + def pick_boot + (vendor_rails? ? VendorBoot : GemBoot).new + end + + def vendor_rails? + File.exist?("#{RAILS_ROOT}/vendor/rails") + end + + def preinitialize + load(preinitializer_path) if File.exist?(preinitializer_path) + end + + def preinitializer_path + "#{RAILS_ROOT}/config/preinitializer.rb" + end + end + + class Boot + def run + load_initializer + Rails::Initializer.run(:set_load_path) + end + end + + class VendorBoot < Boot + def load_initializer + require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" + Rails::Initializer.run(:install_gem_spec_stubs) + Rails::GemDependency.add_frozen_gem_path + end + end + + class GemBoot < Boot + def load_initializer + self.class.load_rubygems + load_rails_gem + require 'initializer' + end + + def load_rails_gem + if version = self.class.gem_version + gem 'rails', version + else + gem 'rails' + end + rescue Gem::LoadError => load_error + $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.) + exit 1 + end + + class << self + def rubygems_version + Gem::RubyGemsVersion rescue nil + end + + def gem_version + if defined? RAILS_GEM_VERSION + RAILS_GEM_VERSION + elsif ENV.include?('RAILS_GEM_VERSION') + ENV['RAILS_GEM_VERSION'] + else + parse_gem_version(read_environment_rb) + end + end + + def load_rubygems + require 'rubygems' + min_version = '1.3.1' + unless rubygems_version >= min_version + $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.) + exit 1 + end + + rescue LoadError + $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org) + exit 1 + end + + def parse_gem_version(text) + $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/ + end + + private + def read_environment_rb + File.read("#{RAILS_ROOT}/config/environment.rb") + end + end + end +end + +# All that for this: +Rails.boot! diff --git a/test/rails/app-2.3.8/config/database.yml b/test/rails/app-2.3.8/config/database.yml new file mode 100644 index 0000000..9f77843 --- /dev/null +++ b/test/rails/app-2.3.8/config/database.yml @@ -0,0 +1,12 @@ +development: + adapter: sqlite3 + database: db/development.sqlite3 + timeout: 5000 +test: + adapter: sqlite3 + database: db/test.sqlite3 + timeout: 5000 +production: + adapter: sqlite3 + database: db/production.sqlite3 + timeout: 5000 diff --git a/test/rails/app-2.3.8/config/environment.rb b/test/rails/app-2.3.8/config/environment.rb new file mode 100644 index 0000000..6eb092c --- /dev/null +++ b/test/rails/app-2.3.8/config/environment.rb @@ -0,0 +1,17 @@ +# -*- encoding: binary -*- + +unless defined? RAILS_GEM_VERSION + RAILS_GEM_VERSION = ENV['UNICORN_RAILS_VERSION'] +end + +# Bootstrap the Rails environment, frameworks, and default configuration +require File.join(File.dirname(__FILE__), 'boot') + +Rails::Initializer.run do |config| + config.frameworks -= [ :active_resource, :action_mailer ] + config.action_controller.session_store = :active_record_store + config.action_controller.session = { + :session_key => "_unicorn_rails_test.#{rand}", + :secret => "#{rand}#{rand}#{rand}#{rand}", + } +end diff --git a/test/rails/app-2.3.8/config/environments/development.rb b/test/rails/app-2.3.8/config/environments/development.rb new file mode 100644 index 0000000..3d381d2 --- /dev/null +++ b/test/rails/app-2.3.8/config/environments/development.rb @@ -0,0 +1,7 @@ +# -*- encoding: binary -*- + +config.cache_classes = false +config.whiny_nils = true +config.action_controller.consider_all_requests_local = true +config.action_view.debug_rjs = true +config.action_controller.perform_caching = false diff --git a/test/rails/app-2.3.8/config/environments/production.rb b/test/rails/app-2.3.8/config/environments/production.rb new file mode 100644 index 0000000..08710a4 --- /dev/null +++ b/test/rails/app-2.3.8/config/environments/production.rb @@ -0,0 +1,6 @@ +# -*- encoding: binary -*- + +config.cache_classes = true +config.action_controller.consider_all_requests_local = false +config.action_controller.perform_caching = true +config.action_view.cache_template_loading = true diff --git a/test/rails/app-2.3.8/config/routes.rb b/test/rails/app-2.3.8/config/routes.rb new file mode 100644 index 0000000..ac7877c --- /dev/null +++ b/test/rails/app-2.3.8/config/routes.rb @@ -0,0 +1,6 @@ +# -*- encoding: binary -*- + +ActionController::Routing::Routes.draw do |map| + map.connect ':controller/:action/:id' + map.connect ':controller/:action/:id.:format' +end diff --git a/test/rails/app-2.3.8/db/.gitignore b/test/rails/app-2.3.8/db/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/rails/app-2.3.8/log/.gitignore b/test/rails/app-2.3.8/log/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/test/rails/app-2.3.8/log/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/test/rails/app-2.3.8/public/404.html b/test/rails/app-2.3.8/public/404.html new file mode 100644 index 0000000..44d986c --- /dev/null +++ b/test/rails/app-2.3.8/public/404.html @@ -0,0 +1 @@ +404 Not Found diff --git a/test/rails/app-2.3.8/public/500.html b/test/rails/app-2.3.8/public/500.html new file mode 100644 index 0000000..e534a49 --- /dev/null +++ b/test/rails/app-2.3.8/public/500.html @@ -0,0 +1 @@ +500 Internal Server Error diff --git a/test/rails/app-2.3.8/public/x.txt b/test/rails/app-2.3.8/public/x.txt new file mode 100644 index 0000000..e427984 --- /dev/null +++ b/test/rails/app-2.3.8/public/x.txt @@ -0,0 +1 @@ +HELLO -- cgit v1.2.3-24-ge0c7