Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.techno-weenie.net/projects/mephisto@512 567b1171-46fb-0310-a4c9-b4bef9110e78
- Loading branch information
technoweenie
committed
Dec 29, 2005
0 parents
commit f58fd64
Showing
39 changed files
with
4,743 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/switchtower.rake, and they will automatically be available to Rake. | ||
|
||
require(File.join(File.dirname(__FILE__), 'config', 'boot')) | ||
|
||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
|
||
require 'tasks/rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Filters added to this controller will be run for all controllers in the application. | ||
# Likewise, all the methods added will be available for all controllers. | ||
class ApplicationController < ActionController::Base | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Methods added to this helper will be available to all templates in the application. | ||
module ApplicationHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb | ||
|
||
unless defined?(RAILS_ROOT) | ||
root_path = File.join(File.dirname(__FILE__), '..') | ||
unless RUBY_PLATFORM =~ /mswin32/ | ||
require 'pathname' | ||
root_path = Pathname.new(root_path).cleanpath(true).to_s | ||
end | ||
RAILS_ROOT = root_path | ||
end | ||
|
||
if File.directory?("#{RAILS_ROOT}/vendor/rails") | ||
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" | ||
else | ||
require 'rubygems' | ||
require 'initializer' | ||
end | ||
|
||
Rails::Initializer.run(:set_load_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# MySQL (default setup). Versions 4.1 and 5.0 are recommended. | ||
# | ||
# Install the MySQL driver: | ||
# gem install mysql | ||
# On MacOS X: | ||
# gem install mysql -- --include=/usr/local/lib | ||
# On Windows: | ||
# There is no gem for Windows. Install mysql.so from RubyForApache. | ||
# http://rubyforge.org/projects/rubyforapache | ||
# | ||
# And be sure to use new-style password hashing: | ||
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | ||
development: | ||
adapter: mysql | ||
database: mephisto_development | ||
username: root | ||
password: | ||
host: localhost | ||
|
||
# Warning: The database defined as 'test' will be erased and | ||
# re-generated from your development database when you run 'rake'. | ||
# Do not set this db to the same as development or production. | ||
test: | ||
adapter: mysql | ||
database: mephisto_test | ||
username: root | ||
password: | ||
host: localhost | ||
|
||
production: | ||
adapter: mysql | ||
database: mephisto_production | ||
username: root | ||
password: | ||
host: localhost | ||
|
||
|
||
### Example database connections. You can safely delete these. ### | ||
|
||
# PostgreSQL versions 7.4 - 8.1 | ||
# | ||
# Get the C bindings: | ||
# gem install postgres | ||
# or use the pure-Ruby bindings on Windows: | ||
# gem install postgres-pr | ||
postgresql_example: | ||
adapter: postgresql | ||
database: mephisto_development | ||
username: mephisto | ||
password: | ||
|
||
# Connect on a TCP socket. Omitted by default since the client uses a | ||
# domain socket that doesn't need configuration. Windows does not have | ||
# domain sockets, so uncomment these lines. | ||
#host: localhost | ||
#port: 5432 | ||
|
||
# Schema search path. The server defaults to $user,public | ||
#schema_search_path: myapp,sharedapp,public | ||
|
||
# Character set encoding. The server defaults to sql_ascii. | ||
#encoding: UTF8 | ||
|
||
# Minimum log levels, in increasing order: | ||
# debug5, debug4, debug3, debug2, debug1, | ||
# info, notice, warning, error, log, fatal, or panic | ||
# The server defaults to notice. | ||
#min_messages: warning | ||
|
||
|
||
# SQLite version 2.x | ||
# gem install sqlite-ruby | ||
sqlite_example: | ||
adapter: sqlite | ||
database: db/development.sqlite2 | ||
|
||
|
||
# SQLite version 3.x | ||
# gem install sqlite3-ruby | ||
sqlite3_example: | ||
adapter: sqlite3 | ||
database: db/development.sqlite3 | ||
|
||
|
||
# In-memory SQLite 3 database. Useful for tests. | ||
sqlite3_in_memory_example: | ||
adapter: sqlite3 | ||
database: ":memory:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Be sure to restart your web server when you modify this file. | ||
|
||
# Uncomment below to force Rails into production mode when | ||
# you don't control web/app server and can't set it the proper way | ||
# ENV['RAILS_ENV'] ||= 'production' | ||
|
||
# Bootstrap the Rails environment, frameworks, and default configuration | ||
require File.join(File.dirname(__FILE__), 'boot') | ||
|
||
Rails::Initializer.run do |config| | ||
# Settings in config/environments/* take precedence those specified here | ||
|
||
# Skip frameworks you're not going to use | ||
# config.frameworks -= [ :action_web_service, :action_mailer ] | ||
|
||
# Add additional load paths for your own custom dirs | ||
# config.load_paths += %W( #{RAILS_ROOT}/extras ) | ||
|
||
# Force all environments to use the same logger level | ||
# (by default production uses :info, the others :debug) | ||
# config.log_level = :debug | ||
|
||
# Use the database for sessions instead of the file system | ||
# (create the session table with 'rake create_sessions_table') | ||
# config.action_controller.session_store = :active_record_store | ||
|
||
# Enable page/fragment caching by setting a file-based store | ||
# (remember to create the caching directory and make it readable to the application) | ||
# config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache" | ||
|
||
# Activate observers that should always be running | ||
# config.active_record.observers = :cacher, :garbage_collector | ||
|
||
# Make Active Record use UTC-base instead of local time | ||
# config.active_record.default_timezone = :utc | ||
|
||
# Use Active Record's schema dumper instead of SQL when creating the test database | ||
# (enables use of different database adapters for development and test environments) | ||
# config.active_record.schema_format = :ruby | ||
|
||
# See Rails::Configuration for more options | ||
end | ||
|
||
# Add new inflection rules using the following format | ||
# (all these examples are active by default): | ||
# Inflector.inflections do |inflect| | ||
# inflect.plural /^(ox)$/i, '\1en' | ||
# inflect.singular /^(ox)en/i, '\1' | ||
# inflect.irregular 'person', 'people' | ||
# inflect.uncountable %w( fish sheep ) | ||
# end | ||
|
||
# Include your application configuration below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Settings specified here will take precedence over those in config/environment.rb | ||
|
||
# In the development environment your application's code is reloaded on | ||
# every request. This slows down response time but is perfect for development | ||
# since you don't have to restart the webserver when you make code changes. | ||
config.cache_classes = false | ||
|
||
# Log error messages when you accidentally call methods on nil. | ||
config.whiny_nils = true | ||
|
||
# Enable the breakpoint server that script/breakpointer connects to | ||
config.breakpoint_server = true | ||
|
||
# Show full error reports and disable caching | ||
config.action_controller.consider_all_requests_local = true | ||
config.action_controller.perform_caching = false | ||
|
||
# Don't care if the mailer can't send | ||
config.action_mailer.raise_delivery_errors = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Settings specified here will take precedence over those in config/environment.rb | ||
|
||
# The production environment is meant for finished, "live" apps. | ||
# Code is not reloaded between requests | ||
config.cache_classes = true | ||
|
||
# Use a different logger for distributed setups | ||
# config.logger = SyslogLogger.new | ||
|
||
|
||
# Full error reports are disabled and caching is turned on | ||
config.action_controller.consider_all_requests_local = false | ||
config.action_controller.perform_caching = true | ||
|
||
# Enable serving of images, stylesheets, and javascripts from an asset server | ||
# config.action_controller.asset_host = "http://assets.example.com" | ||
|
||
# Disable delivery errors if you bad email addresses should just be ignored | ||
# config.action_mailer.raise_delivery_errors = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Settings specified here will take precedence over those in config/environment.rb | ||
|
||
# The test environment is used exclusively to run your application's | ||
# test suite. You never need to work with it otherwise. Remember that | ||
# your test database is "scratch space" for the test suite and is wiped | ||
# and recreated between test runs. Don't rely on the data there! | ||
config.cache_classes = true | ||
|
||
# Log error messages when you accidentally call methods on nil. | ||
config.whiny_nils = true | ||
|
||
# Show full error reports and disable caching | ||
config.action_controller.consider_all_requests_local = true | ||
config.action_controller.perform_caching = false | ||
|
||
# Tell ActionMailer not to deliver emails to the real world. | ||
# The :test delivery method accumulates sent emails in the | ||
# ActionMailer::Base.deliveries array. | ||
config.action_mailer.delivery_method = :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ActionController::Routing::Routes.draw do |map| | ||
# Add your own custom routes here. | ||
# The priority is based upon order of creation: first created -> highest priority. | ||
|
||
# Here's a sample route: | ||
# map.connect 'products/:id', :controller => 'catalog', :action => 'view' | ||
# Keep in mind you can assign values other than :controller and :action | ||
|
||
# You can have the root of your site routed by hooking up '' | ||
# -- just remember to delete public/index.html. | ||
# map.connect '', :controller => "welcome" | ||
|
||
# Allow downloading Web Service WSDL as a file with an extension | ||
# instead of a file named 'wsdl' | ||
map.connect ':controller/service.wsdl', :action => 'wsdl' | ||
|
||
# Install the default route as the lowest priority. | ||
map.connect ':controller/:action/:id' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Use this README file to introduce your application and point to useful places in the API for learning more. | ||
Run "rake appdoc" to generate API documentation for your models and controllers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# General Apache options | ||
AddHandler fastcgi-script .fcgi | ||
AddHandler cgi-script .cgi | ||
Options +FollowSymLinks +ExecCGI | ||
|
||
# If you don't want Rails to look in certain directories, | ||
# use the following rewrite rules so that Apache won't rewrite certain requests | ||
# | ||
# Example: | ||
# RewriteCond %{REQUEST_URI} ^/notrails.* | ||
# RewriteRule .* - [L] | ||
|
||
# Redirect all requests not available on the filesystem to Rails | ||
# By default the cgi dispatcher is used which is very slow | ||
# | ||
# For better performance replace the dispatcher with the fastcgi one | ||
# | ||
# Example: | ||
# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] | ||
RewriteEngine On | ||
|
||
# If your Rails application is accessed via an Alias directive, | ||
# then you MUST also set the RewriteBase in this htaccess file. | ||
# | ||
# Example: | ||
# Alias /myrailsapp /path/to/myrailsapp/public | ||
# RewriteBase /myrailsapp | ||
|
||
RewriteRule ^$ index.html [QSA] | ||
RewriteRule ^([^.]+)$ $1.html [QSA] | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^(.*)$ dispatch.cgi [QSA,L] | ||
|
||
# In case Rails experiences terminal errors | ||
# Instead of displaying this message you can supply a file here which will be rendered instead | ||
# | ||
# Example: | ||
# ErrorDocument 500 /500.html | ||
|
||
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
"http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<body> | ||
<h1>File not found</h1> | ||
<p>Change this error message for pages not found in public/404.html</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
"http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<body> | ||
<h1>Application error (Apache)</h1> | ||
<p>Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/opt/local/bin/ruby | ||
|
||
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) | ||
|
||
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: | ||
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired | ||
require "dispatcher" | ||
|
||
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) | ||
Dispatcher.dispatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/opt/local/bin/ruby | ||
# | ||
# You may specify the path to the FastCGI crash log (a log of unhandled | ||
# exceptions which forced the FastCGI instance to exit, great for debugging) | ||
# and the number of requests to process before running garbage collection. | ||
# | ||
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log | ||
# and the GC period is nil (turned off). A reasonable number of requests | ||
# could range from 10-100 depending on the memory footprint of your app. | ||
# | ||
# Example: | ||
# # Default log path, normal GC behavior. | ||
# RailsFCGIHandler.process! | ||
# | ||
# # Default log path, 50 requests between GC. | ||
# RailsFCGIHandler.process! nil, 50 | ||
# | ||
# # Custom log path, normal GC behavior. | ||
# RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log' | ||
# | ||
require File.dirname(__FILE__) + "/../config/environment" | ||
require 'fcgi_handler' | ||
|
||
RailsFCGIHandler.process! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/opt/local/bin/ruby | ||
|
||
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) | ||
|
||
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: | ||
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired | ||
require "dispatcher" | ||
|
||
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) | ||
Dispatcher.dispatch |
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.