about summary refs log tree commit homepage
path: root/test/rails/app-1.2.3
diff options
context:
space:
mode:
Diffstat (limited to 'test/rails/app-1.2.3')
-rw-r--r--test/rails/app-1.2.3/.gitignore2
-rw-r--r--test/rails/app-1.2.3/Rakefile7
-rw-r--r--test/rails/app-1.2.3/app/controllers/application.rb6
-rw-r--r--test/rails/app-1.2.3/app/controllers/foo_controller.rb36
-rw-r--r--test/rails/app-1.2.3/app/helpers/application_helper.rb4
-rw-r--r--test/rails/app-1.2.3/config/boot.rb11
-rw-r--r--test/rails/app-1.2.3/config/database.yml12
-rw-r--r--test/rails/app-1.2.3/config/environment.rb13
-rw-r--r--test/rails/app-1.2.3/config/environments/development.rb9
-rw-r--r--test/rails/app-1.2.3/config/environments/production.rb5
-rw-r--r--test/rails/app-1.2.3/config/routes.rb6
-rw-r--r--test/rails/app-1.2.3/db/.gitignore0
-rw-r--r--test/rails/app-1.2.3/log/.gitignore1
-rw-r--r--test/rails/app-1.2.3/public/404.html1
-rw-r--r--test/rails/app-1.2.3/public/500.html1
15 files changed, 0 insertions, 114 deletions
diff --git a/test/rails/app-1.2.3/.gitignore b/test/rails/app-1.2.3/.gitignore
deleted file mode 100644
index f451f91..0000000
--- a/test/rails/app-1.2.3/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/tmp
-/vendor
diff --git a/test/rails/app-1.2.3/Rakefile b/test/rails/app-1.2.3/Rakefile
deleted file mode 100644
index fbebfca..0000000
--- a/test/rails/app-1.2.3/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-1.2.3/app/controllers/application.rb b/test/rails/app-1.2.3/app/controllers/application.rb
deleted file mode 100644
index e72474f..0000000
--- a/test/rails/app-1.2.3/app/controllers/application.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- encoding: binary -*-
-
-class ApplicationController < ActionController::Base
-  # Pick a unique cookie name to distinguish our session data from others'
-  session :session_key => "_unicorn_rails_test.#{rand}"
-end
diff --git a/test/rails/app-1.2.3/app/controllers/foo_controller.rb b/test/rails/app-1.2.3/app/controllers/foo_controller.rb
deleted file mode 100644
index 52b7947..0000000
--- a/test/rails/app-1.2.3/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 #$$"
-    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-1.2.3/app/helpers/application_helper.rb b/test/rails/app-1.2.3/app/helpers/application_helper.rb
deleted file mode 100644
index d9889b3..0000000
--- a/test/rails/app-1.2.3/app/helpers/application_helper.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# -*- encoding: binary -*-
-
-module ApplicationHelper
-end
diff --git a/test/rails/app-1.2.3/config/boot.rb b/test/rails/app-1.2.3/config/boot.rb
deleted file mode 100644
index 84a5c18..0000000
--- a/test/rails/app-1.2.3/config/boot.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# -*- encoding: binary -*-
-
-unless defined?(RAILS_ROOT)
-  root_path = File.join(File.dirname(__FILE__), '..')
-  RAILS_ROOT = root_path
-end
-
-unless defined?(Rails::Initializer)
-  require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
-  Rails::Initializer.run(:set_load_path)
-end
diff --git a/test/rails/app-1.2.3/config/database.yml b/test/rails/app-1.2.3/config/database.yml
deleted file mode 100644
index 9f77843..0000000
--- a/test/rails/app-1.2.3/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-1.2.3/config/environment.rb b/test/rails/app-1.2.3/config/environment.rb
deleted file mode 100644
index e230a66..0000000
--- a/test/rails/app-1.2.3/config/environment.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# -*- encoding: binary -*-
-
-unless defined? RAILS_GEM_VERSION
-  RAILS_GEM_VERSION = ENV['UNICORN_RAILS_VERSION'] # || '1.2.3'
-end
-
-# Bootstrap the Rails environment, frameworks, and default configuration
-require File.join(File.dirname(__FILE__), 'boot')
-
-Rails::Initializer.run do |config|
-  config.frameworks -= [ :action_web_service, :action_mailer ]
-  config.action_controller.session_store = :active_record_store
-end
diff --git a/test/rails/app-1.2.3/config/environments/development.rb b/test/rails/app-1.2.3/config/environments/development.rb
deleted file mode 100644
index 9d78f5e..0000000
--- a/test/rails/app-1.2.3/config/environments/development.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-# -*- encoding: binary -*-
-
-config.cache_classes = false
-config.whiny_nils = true
-config.breakpoint_server = true
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching = false
-config.action_view.cache_template_extensions = false
-config.action_view.debug_rjs = true
diff --git a/test/rails/app-1.2.3/config/environments/production.rb b/test/rails/app-1.2.3/config/environments/production.rb
deleted file mode 100644
index 1e049b2..0000000
--- a/test/rails/app-1.2.3/config/environments/production.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- 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-1.2.3/config/routes.rb b/test/rails/app-1.2.3/config/routes.rb
deleted file mode 100644
index 70816dc..0000000
--- a/test/rails/app-1.2.3/config/routes.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- encoding: binary -*-
-
-ActionController::Routing::Routes.draw do |map|
-  map.connect ':controller/:action/:id.:format'
-  map.connect ':controller/:action/:id'
-end
diff --git a/test/rails/app-1.2.3/db/.gitignore b/test/rails/app-1.2.3/db/.gitignore
deleted file mode 100644
index e69de29..0000000
--- a/test/rails/app-1.2.3/db/.gitignore
+++ /dev/null
diff --git a/test/rails/app-1.2.3/log/.gitignore b/test/rails/app-1.2.3/log/.gitignore
deleted file mode 100644
index 397b4a7..0000000
--- a/test/rails/app-1.2.3/log/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.log
diff --git a/test/rails/app-1.2.3/public/404.html b/test/rails/app-1.2.3/public/404.html
deleted file mode 100644
index 44d986c..0000000
--- a/test/rails/app-1.2.3/public/404.html
+++ /dev/null
@@ -1 +0,0 @@
-404 Not Found
diff --git a/test/rails/app-1.2.3/public/500.html b/test/rails/app-1.2.3/public/500.html
deleted file mode 100644
index e534a49..0000000
--- a/test/rails/app-1.2.3/public/500.html
+++ /dev/null
@@ -1 +0,0 @@
-500 Internal Server Error