rails 1.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails might be problematic. Click here for more details.

Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +103 -0
  3. metadata +228 -294
  4. data/CHANGELOG +0 -865
  5. data/MIT-LICENSE +0 -20
  6. data/README +0 -153
  7. data/Rakefile +0 -422
  8. data/bin/about +0 -3
  9. data/bin/breakpointer +0 -3
  10. data/bin/console +0 -3
  11. data/bin/destroy +0 -3
  12. data/bin/generate +0 -3
  13. data/bin/performance/benchmarker +0 -3
  14. data/bin/performance/profiler +0 -3
  15. data/bin/plugin +0 -3
  16. data/bin/process/reaper +0 -3
  17. data/bin/process/spawner +0 -3
  18. data/bin/process/spinner +0 -3
  19. data/bin/rails +0 -21
  20. data/bin/runner +0 -3
  21. data/bin/server +0 -3
  22. data/builtin/controllers/rails_info_controller.rb +0 -11
  23. data/configs/apache.conf +0 -40
  24. data/configs/database.yml +0 -85
  25. data/configs/empty.log +0 -0
  26. data/configs/lighttpd.conf +0 -40
  27. data/configs/routes.rb +0 -19
  28. data/dispatches/dispatch.fcgi +0 -24
  29. data/dispatches/dispatch.rb +0 -10
  30. data/dispatches/gateway.cgi +0 -97
  31. data/doc/README_FOR_APP +0 -2
  32. data/environments/boot.rb +0 -19
  33. data/environments/development.rb +0 -19
  34. data/environments/environment.rb +0 -53
  35. data/environments/production.rb +0 -19
  36. data/environments/test.rb +0 -19
  37. data/fresh_rakefile +0 -10
  38. data/helpers/application.rb +0 -4
  39. data/helpers/application_helper.rb +0 -3
  40. data/helpers/test_helper.rb +0 -28
  41. data/html/404.html +0 -8
  42. data/html/500.html +0 -8
  43. data/html/favicon.ico +0 -0
  44. data/html/images/rails.png +0 -0
  45. data/html/index.html +0 -277
  46. data/html/javascripts/controls.js +0 -750
  47. data/html/javascripts/dragdrop.js +0 -584
  48. data/html/javascripts/effects.js +0 -854
  49. data/html/javascripts/prototype.js +0 -1785
  50. data/html/robots.txt +0 -1
  51. data/lib/binding_of_caller.rb +0 -85
  52. data/lib/breakpoint.rb +0 -523
  53. data/lib/breakpoint_client.rb +0 -196
  54. data/lib/code_statistics.rb +0 -107
  55. data/lib/commands/about.rb +0 -2
  56. data/lib/commands/breakpointer.rb +0 -1
  57. data/lib/commands/console.rb +0 -23
  58. data/lib/commands/destroy.rb +0 -6
  59. data/lib/commands/generate.rb +0 -6
  60. data/lib/commands/ncgi/listener +0 -86
  61. data/lib/commands/ncgi/tracker +0 -69
  62. data/lib/commands/performance/benchmarker.rb +0 -24
  63. data/lib/commands/performance/profiler.rb +0 -34
  64. data/lib/commands/plugin.rb +0 -823
  65. data/lib/commands/process/reaper.rb +0 -130
  66. data/lib/commands/process/spawner.rb +0 -52
  67. data/lib/commands/process/spinner.rb +0 -57
  68. data/lib/commands/runner.rb +0 -27
  69. data/lib/commands/server.rb +0 -28
  70. data/lib/commands/servers/lighttpd.rb +0 -60
  71. data/lib/commands/servers/webrick.rb +0 -59
  72. data/lib/commands/update.rb +0 -4
  73. data/lib/commands.rb +0 -17
  74. data/lib/console_sandbox.rb +0 -6
  75. data/lib/dispatcher.rb +0 -99
  76. data/lib/fcgi_handler.rb +0 -189
  77. data/lib/initializer.rb +0 -553
  78. data/lib/rails_generator/base.rb +0 -203
  79. data/lib/rails_generator/commands.rb +0 -509
  80. data/lib/rails_generator/generators/applications/app/USAGE +0 -16
  81. data/lib/rails_generator/generators/applications/app/app_generator.rb +0 -140
  82. data/lib/rails_generator/generators/components/controller/USAGE +0 -30
  83. data/lib/rails_generator/generators/components/controller/controller_generator.rb +0 -38
  84. data/lib/rails_generator/generators/components/controller/templates/controller.rb +0 -10
  85. data/lib/rails_generator/generators/components/controller/templates/functional_test.rb +0 -18
  86. data/lib/rails_generator/generators/components/controller/templates/helper.rb +0 -2
  87. data/lib/rails_generator/generators/components/controller/templates/view.rhtml +0 -2
  88. data/lib/rails_generator/generators/components/mailer/USAGE +0 -18
  89. data/lib/rails_generator/generators/components/mailer/mailer_generator.rb +0 -32
  90. data/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -3
  91. data/lib/rails_generator/generators/components/mailer/templates/mailer.rb +0 -13
  92. data/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +0 -37
  93. data/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -3
  94. data/lib/rails_generator/generators/components/migration/USAGE +0 -14
  95. data/lib/rails_generator/generators/components/migration/migration_generator.rb +0 -7
  96. data/lib/rails_generator/generators/components/migration/templates/migration.rb +0 -7
  97. data/lib/rails_generator/generators/components/model/USAGE +0 -17
  98. data/lib/rails_generator/generators/components/model/model_generator.rb +0 -18
  99. data/lib/rails_generator/generators/components/model/templates/fixtures.yml +0 -5
  100. data/lib/rails_generator/generators/components/model/templates/model.rb +0 -2
  101. data/lib/rails_generator/generators/components/model/templates/unit_test.rb +0 -10
  102. data/lib/rails_generator/generators/components/plugin/USAGE +0 -33
  103. data/lib/rails_generator/generators/components/plugin/plugin_generator.rb +0 -33
  104. data/lib/rails_generator/generators/components/plugin/templates/README +0 -4
  105. data/lib/rails_generator/generators/components/plugin/templates/Rakefile +0 -22
  106. data/lib/rails_generator/generators/components/plugin/templates/USAGE +0 -8
  107. data/lib/rails_generator/generators/components/plugin/templates/generator.rb +0 -8
  108. data/lib/rails_generator/generators/components/plugin/templates/init.rb +0 -1
  109. data/lib/rails_generator/generators/components/plugin/templates/plugin.rb +0 -1
  110. data/lib/rails_generator/generators/components/plugin/templates/tasks.rake +0 -4
  111. data/lib/rails_generator/generators/components/plugin/templates/unit_test.rb +0 -8
  112. data/lib/rails_generator/generators/components/scaffold/USAGE +0 -32
  113. data/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +0 -184
  114. data/lib/rails_generator/generators/components/scaffold/templates/controller.rb +0 -54
  115. data/lib/rails_generator/generators/components/scaffold/templates/form.rhtml +0 -3
  116. data/lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml +0 -1
  117. data/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +0 -98
  118. data/lib/rails_generator/generators/components/scaffold/templates/helper.rb +0 -2
  119. data/lib/rails_generator/generators/components/scaffold/templates/layout.rhtml +0 -13
  120. data/lib/rails_generator/generators/components/scaffold/templates/style.css +0 -74
  121. data/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml +0 -9
  122. data/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml +0 -27
  123. data/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml +0 -8
  124. data/lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml +0 -8
  125. data/lib/rails_generator/generators/components/session_migration/USAGE +0 -15
  126. data/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +0 -12
  127. data/lib/rails_generator/generators/components/session_migration/templates/migration.rb +0 -15
  128. data/lib/rails_generator/generators/components/web_service/USAGE +0 -28
  129. data/lib/rails_generator/generators/components/web_service/templates/api_definition.rb +0 -5
  130. data/lib/rails_generator/generators/components/web_service/templates/controller.rb +0 -8
  131. data/lib/rails_generator/generators/components/web_service/templates/functional_test.rb +0 -19
  132. data/lib/rails_generator/generators/components/web_service/web_service_generator.rb +0 -29
  133. data/lib/rails_generator/lookup.rb +0 -210
  134. data/lib/rails_generator/manifest.rb +0 -53
  135. data/lib/rails_generator/options.rb +0 -140
  136. data/lib/rails_generator/scripts/destroy.rb +0 -7
  137. data/lib/rails_generator/scripts/generate.rb +0 -7
  138. data/lib/rails_generator/scripts/update.rb +0 -12
  139. data/lib/rails_generator/scripts.rb +0 -83
  140. data/lib/rails_generator/simple_logger.rb +0 -46
  141. data/lib/rails_generator/spec.rb +0 -44
  142. data/lib/rails_generator.rb +0 -43
  143. data/lib/rails_info.rb +0 -104
  144. data/lib/rails_version.rb +0 -9
  145. data/lib/railties_path.rb +0 -1
  146. data/lib/rubyprof_ext.rb +0 -35
  147. data/lib/tasks/databases.rake +0 -158
  148. data/lib/tasks/documentation.rake +0 -76
  149. data/lib/tasks/framework.rake +0 -71
  150. data/lib/tasks/javascripts.rake +0 -6
  151. data/lib/tasks/misc.rake +0 -19
  152. data/lib/tasks/rails.rb +0 -8
  153. data/lib/tasks/statistics.rake +0 -16
  154. data/lib/tasks/testing.rake +0 -50
  155. data/lib/test_help.rb +0 -17
  156. data/lib/webrick_server.rb +0 -170
data/bin/server DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/server'
@@ -1,11 +0,0 @@
1
- module Controllers #:nodoc:
2
- class RailsInfoController < ApplicationController
3
- def properties
4
- if local_request?
5
- render :inline => Rails::Info.to_html
6
- else
7
- render :text => '<p>For security purposes, this information is only available to local requests.</p>', :status => 500
8
- end
9
- end
10
- end
11
- end
data/configs/apache.conf DELETED
@@ -1,40 +0,0 @@
1
- # General Apache options
2
- AddHandler fastcgi-script .fcgi
3
- AddHandler cgi-script .cgi
4
- Options +FollowSymLinks +ExecCGI
5
-
6
- # If you don't want Rails to look in certain directories,
7
- # use the following rewrite rules so that Apache won't rewrite certain requests
8
- #
9
- # Example:
10
- # RewriteCond %{REQUEST_URI} ^/notrails.*
11
- # RewriteRule .* - [L]
12
-
13
- # Redirect all requests not available on the filesystem to Rails
14
- # By default the cgi dispatcher is used which is very slow
15
- #
16
- # For better performance replace the dispatcher with the fastcgi one
17
- #
18
- # Example:
19
- # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
20
- RewriteEngine On
21
-
22
- # If your Rails application is accessed via an Alias directive,
23
- # then you MUST also set the RewriteBase in this htaccess file.
24
- #
25
- # Example:
26
- # Alias /myrailsapp /path/to/myrailsapp/public
27
- # RewriteBase /myrailsapp
28
-
29
- RewriteRule ^$ index.html [QSA]
30
- RewriteRule ^([^.]+)$ $1.html [QSA]
31
- RewriteCond %{REQUEST_FILENAME} !-f
32
- RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
33
-
34
- # In case Rails experiences terminal errors
35
- # Instead of displaying this message you can supply a file here which will be rendered instead
36
- #
37
- # Example:
38
- # ErrorDocument 500 /500.html
39
-
40
- ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
data/configs/database.yml DELETED
@@ -1,85 +0,0 @@
1
- # MySQL (default setup). Versions 4.1 and 5.0 are recommended.
2
- #
3
- # Get the fast C bindings:
4
- # gem install mysql
5
- # (on OS X: gem install mysql -- --include=/usr/local/lib)
6
- # And be sure to use new-style password hashing:
7
- # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
8
- development:
9
- adapter: mysql
10
- database: <%= app_name %>_development
11
- username: root
12
- password:
13
- <%= " socket: #{socket}" if socket %>
14
-
15
- # Connect on a TCP socket. If omitted, the adapter will connect on the
16
- # domain socket given by socket instead.
17
- #host: localhost
18
- #port: 3306
19
-
20
- # Warning: The database defined as 'test' will be erased and
21
- # re-generated from your development database when you run 'rake'.
22
- # Do not set this db to the same as development or production.
23
- test:
24
- adapter: mysql
25
- database: <%= app_name %>_test
26
- username: root
27
- password:
28
- <%= " socket: #{socket}" if socket %>
29
-
30
- production:
31
- adapter: mysql
32
- database: <%= app_name %>_production
33
- username: root
34
- password:
35
- <%= " socket: #{socket}" if socket %>
36
-
37
-
38
- # PostgreSQL versions 7.4 - 8.1
39
- #
40
- # Get the C bindings:
41
- # gem install postgres
42
- # or use the pure-Ruby bindings on Windows:
43
- # gem install postgres-pr
44
- postgresql_example:
45
- adapter: postgresql
46
- database: <%= app_name %>_development
47
- username: <%= app_name %>
48
- password:
49
-
50
- # Connect on a TCP socket. Omitted by default since the client uses a
51
- # domain socket that doesn't need configuration.
52
- #host: remote-database
53
- #port: 5432
54
-
55
- # Schema search path. The server defaults to $user,public
56
- #schema_search_path: myapp,sharedapp,public
57
-
58
- # Character set encoding. The server defaults to sql_ascii.
59
- #encoding: UTF8
60
-
61
- # Minimum log levels, in increasing order:
62
- # debug5, debug4, debug3, debug2, debug1,
63
- # info, notice, warning, error, log, fatal, or panic
64
- # The server defaults to notice.
65
- #min_messages: warning
66
-
67
-
68
- # SQLite version 2.x
69
- # gem install sqlite-ruby
70
- sqlite_example:
71
- adapter: sqlite
72
- database: db/development.sqlite2
73
-
74
-
75
- # SQLite version 3.x
76
- # gem install sqlite3-ruby
77
- sqlite3_example:
78
- adapter: sqlite3
79
- database: db/development.sqlite3
80
-
81
-
82
- # In-memory SQLite 3 database. Useful for tests.
83
- sqlite3_in_memory_example:
84
- adapter: sqlite3
85
- database: ":memory:"
data/configs/empty.log DELETED
File without changes
@@ -1,40 +0,0 @@
1
- # Default configuration file for the lighttpd web server
2
- # Start using ./script/server lighttpd
3
-
4
- server.port = 3000
5
-
6
- server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi" )
7
- server.error-handler-404 = "/dispatch.fcgi"
8
- server.document-root = "public/"
9
-
10
- server.errorlog = "log/lighttpd.error.log"
11
- accesslog.filename = "log/lighttpd.access.log"
12
-
13
- url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
14
-
15
- # Change *-procs to 2 if you need to use Upload Progress or other tasks that
16
- # *need* to execute a second request while the first is still pending.
17
- fastcgi.server = ( ".fcgi" =>
18
- ( "localhost" =>
19
- (
20
- "min-procs" => 1,
21
- "max-procs" => 1,
22
- "socket" => "log/fcgi.socket",
23
- "bin-path" => "public/dispatch.fcgi",
24
- "bin-environment" => ( "RAILS_ENV" => "development" )
25
- )
26
- )
27
- )
28
-
29
- mimetype.assign = (
30
- ".css" => "text/css",
31
- ".gif" => "image/gif",
32
- ".htm" => "text/html",
33
- ".html" => "text/html",
34
- ".jpeg" => "image/jpeg",
35
- ".jpg" => "image/jpeg",
36
- ".js" => "text/javascript",
37
- ".png" => "image/png",
38
- ".swf" => "application/x-shockwave-flash",
39
- ".txt" => "text/plain"
40
- )
data/configs/routes.rb DELETED
@@ -1,19 +0,0 @@
1
- ActionController::Routing::Routes.draw do |map|
2
- # Add your own custom routes here.
3
- # The priority is based upon order of creation: first created -> highest priority.
4
-
5
- # Here's a sample route:
6
- # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
7
- # Keep in mind you can assign values other than :controller and :action
8
-
9
- # You can have the root of your site routed by hooking up ''
10
- # -- just remember to delete public/index.html.
11
- # map.connect '', :controller => "welcome"
12
-
13
- # Allow downloading Web Service WSDL as a file with an extension
14
- # instead of a file named 'wsdl'
15
- map.connect ':controller/service.wsdl', :action => 'wsdl'
16
-
17
- # Install the default route as the lowest priority.
18
- map.connect ':controller/:action/:id'
19
- end
@@ -1,24 +0,0 @@
1
- #!/usr/local/bin/ruby
2
- #
3
- # You may specify the path to the FastCGI crash log (a log of unhandled
4
- # exceptions which forced the FastCGI instance to exit, great for debugging)
5
- # and the number of requests to process before running garbage collection.
6
- #
7
- # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
8
- # and the GC period is nil (turned off). A reasonable number of requests
9
- # could range from 10-100 depending on the memory footprint of your app.
10
- #
11
- # Example:
12
- # # Default log path, normal GC behavior.
13
- # RailsFCGIHandler.process!
14
- #
15
- # # Default log path, 50 requests between GC.
16
- # RailsFCGIHandler.process! nil, 50
17
- #
18
- # # Custom log path, normal GC behavior.
19
- # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
20
- #
21
- require File.dirname(__FILE__) + "/../config/environment"
22
- require 'fcgi_handler'
23
-
24
- RailsFCGIHandler.process!
@@ -1,10 +0,0 @@
1
- #!/usr/local/bin/ruby
2
-
3
- require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4
-
5
- # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
6
- # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
7
- require "dispatcher"
8
-
9
- ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10
- Dispatcher.dispatch
@@ -1,97 +0,0 @@
1
- #!/usr/local/bin/ruby
2
-
3
- require 'drb'
4
-
5
- # This file includes an experimental gateway CGI implementation. It will work
6
- # only on platforms which support both fork and sockets.
7
- #
8
- # To enable it edit public/.htaccess and replace dispatch.cgi with gateway.cgi.
9
- #
10
- # Next, create the directory log/drb_gateway and grant the apache user rw access
11
- # to said directory.
12
- #
13
- # On the next request to your server, the gateway tracker should start up, along
14
- # with a few listener processes. This setup should provide you with much better
15
- # speeds than dispatch.cgi.
16
- #
17
- # Keep in mind that the first request made to the server will be slow, as the
18
- # tracker and listeners will have to load. Also, the tracker and listeners will
19
- # shutdown after a period if inactivity. You can set this value below -- the
20
- # default is 90 seconds.
21
-
22
- TrackerSocket = File.expand_path(File.join(File.dirname(__FILE__), '../log/drb_gateway/tracker.sock'))
23
- DieAfter = 90 # Seconds
24
- Listeners = 3
25
-
26
- def message(s)
27
- $stderr.puts "gateway.cgi: #{s}" if ENV && ENV["DEBUG_GATEWAY"]
28
- end
29
-
30
- def listener_socket(number)
31
- File.expand_path(File.join(File.dirname(__FILE__), "../log/drb_gateway/listener_#{number}.sock"))
32
- end
33
-
34
- unless File.exists? TrackerSocket
35
- message "Starting tracker and #{Listeners} listeners"
36
- fork do
37
- Process.setsid
38
- STDIN.reopen "/dev/null"
39
- STDOUT.reopen "/dev/null", "a"
40
-
41
- root = File.expand_path(File.dirname(__FILE__) + '/..')
42
-
43
- message "starting tracker"
44
- fork do
45
- ARGV.clear
46
- ARGV << TrackerSocket << Listeners.to_s << DieAfter.to_s
47
- load File.join(root, 'script', 'tracker')
48
- end
49
-
50
- message "starting listeners"
51
- require File.join(root, 'config/environment.rb')
52
- Listeners.times do |number|
53
- fork do
54
- ARGV.clear
55
- ARGV << listener_socket(number) << DieAfter.to_s
56
- load File.join(root, 'script', 'listener')
57
- end
58
- end
59
- end
60
-
61
- message "waiting for tracker and listener to arise..."
62
- ready = false
63
- 10.times do
64
- sleep 0.5
65
- break if (ready = File.exists?(TrackerSocket) && File.exists?(listener_socket(0)))
66
- end
67
-
68
- if ready
69
- message "tracker and listener are ready"
70
- else
71
- message "Waited 5 seconds, listener and tracker not ready... dropping request"
72
- Kernel.exit 1
73
- end
74
- end
75
-
76
- DRb.start_service
77
-
78
- message "connecting to tracker"
79
- tracker = DRbObject.new_with_uri("drbunix:#{TrackerSocket}")
80
-
81
- input = $stdin.read
82
- $stdin.close
83
-
84
- env = ENV.inspect
85
-
86
- output = nil
87
- tracker.with_listener do |number|
88
- message "connecting to listener #{number}"
89
- socket = listener_socket(number)
90
- listener = DRbObject.new_with_uri("drbunix:#{socket}")
91
- output = listener.process(env, input)
92
- message "listener #{number} has finished, writing output"
93
- end
94
-
95
- $stdout.write output
96
- $stdout.flush
97
- $stdout.close
data/doc/README_FOR_APP DELETED
@@ -1,2 +0,0 @@
1
- Use this README file to introduce your application and point to useful places in the API for learning more.
2
- Run "rake appdoc" to generate API documentation for your models and controllers.
data/environments/boot.rb DELETED
@@ -1,19 +0,0 @@
1
- # Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
2
-
3
- unless defined?(RAILS_ROOT)
4
- root_path = File.join(File.dirname(__FILE__), '..')
5
- unless RUBY_PLATFORM =~ /mswin32/
6
- require 'pathname'
7
- root_path = Pathname.new(root_path).cleanpath(true).to_s
8
- end
9
- RAILS_ROOT = root_path
10
- end
11
-
12
- if File.directory?("#{RAILS_ROOT}/vendor/rails")
13
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
14
- else
15
- require 'rubygems'
16
- require 'initializer'
17
- end
18
-
19
- Rails::Initializer.run(:set_load_path)
@@ -1,19 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # In the development environment your application's code is reloaded on
4
- # every request. This slows down response time but is perfect for development
5
- # since you don't have to restart the webserver when you make code changes.
6
- config.cache_classes = false
7
-
8
- # Log error messages when you accidentally call methods on nil.
9
- config.whiny_nils = true
10
-
11
- # Enable the breakpoint server that script/breakpointer connects to
12
- config.breakpoint_server = true
13
-
14
- # Show full error reports and disable caching
15
- config.action_controller.consider_all_requests_local = true
16
- config.action_controller.perform_caching = false
17
-
18
- # Don't care if the mailer can't send
19
- config.action_mailer.raise_delivery_errors = false
@@ -1,53 +0,0 @@
1
- # Be sure to restart your web server when you modify this file.
2
-
3
- # Uncomment below to force Rails into production mode when
4
- # you don't control web/app server and can't set it the proper way
5
- # ENV['RAILS_ENV'] ||= 'production'
6
-
7
- # Bootstrap the Rails environment, frameworks, and default configuration
8
- require File.join(File.dirname(__FILE__), 'boot')
9
-
10
- Rails::Initializer.run do |config|
11
- # Settings in config/environments/* take precedence those specified here
12
-
13
- # Skip frameworks you're not going to use
14
- # config.frameworks -= [ :action_web_service, :action_mailer ]
15
-
16
- # Add additional load paths for your own custom dirs
17
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
18
-
19
- # Force all environments to use the same logger level
20
- # (by default production uses :info, the others :debug)
21
- # config.log_level = :debug
22
-
23
- # Use the database for sessions instead of the file system
24
- # (create the session table with 'rake create_sessions_table')
25
- # config.action_controller.session_store = :active_record_store
26
-
27
- # Enable page/fragment caching by setting a file-based store
28
- # (remember to create the caching directory and make it readable to the application)
29
- # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
30
-
31
- # Activate observers that should always be running
32
- # config.active_record.observers = :cacher, :garbage_collector
33
-
34
- # Make Active Record use UTC-base instead of local time
35
- # config.active_record.default_timezone = :utc
36
-
37
- # Use Active Record's schema dumper instead of SQL when creating the test database
38
- # (enables use of different database adapters for development and test environments)
39
- # config.active_record.schema_format = :ruby
40
-
41
- # See Rails::Configuration for more options
42
- end
43
-
44
- # Add new inflection rules using the following format
45
- # (all these examples are active by default):
46
- # Inflector.inflections do |inflect|
47
- # inflect.plural /^(ox)$/i, '\1en'
48
- # inflect.singular /^(ox)en/i, '\1'
49
- # inflect.irregular 'person', 'people'
50
- # inflect.uncountable %w( fish sheep )
51
- # end
52
-
53
- # Include your application configuration below
@@ -1,19 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # The production environment is meant for finished, "live" apps.
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Use a different logger for distributed setups
8
- # config.logger = SyslogLogger.new
9
-
10
-
11
- # Full error reports are disabled and caching is turned on
12
- config.action_controller.consider_all_requests_local = false
13
- config.action_controller.perform_caching = true
14
-
15
- # Enable serving of images, stylesheets, and javascripts from an asset server
16
- # config.action_controller.asset_host = "http://assets.example.com"
17
-
18
- # Disable delivery errors if you bad email addresses should just be ignored
19
- # config.action_mailer.raise_delivery_errors = false
data/environments/test.rb DELETED
@@ -1,19 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # The test environment is used exclusively to run your application's
4
- # test suite. You never need to work with it otherwise. Remember that
5
- # your test database is "scratch space" for the test suite and is wiped
6
- # and recreated between test runs. Don't rely on the data there!
7
- config.cache_classes = true
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.action_controller.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Tell ActionMailer not to deliver emails to the real world.
17
- # The :test delivery method accumulates sent emails in the
18
- # ActionMailer::Base.deliveries array.
19
- config.action_mailer.delivery_method = :test
data/fresh_rakefile DELETED
@@ -1,10 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/switchtower.rake, and they will automatically be available to Rake.
3
-
4
- require(File.join(File.dirname(__FILE__), 'config', 'boot'))
5
-
6
- require 'rake'
7
- require 'rake/testtask'
8
- require 'rake/rdoctask'
9
-
10
- require 'tasks/rails'
@@ -1,4 +0,0 @@
1
- # Filters added to this controller will be run for all controllers in the application.
2
- # Likewise, all the methods added will be available for all controllers.
3
- class ApplicationController < ActionController::Base
4
- end
@@ -1,3 +0,0 @@
1
- # Methods added to this helper will be available to all templates in the application.
2
- module ApplicationHelper
3
- end
@@ -1,28 +0,0 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
- require 'test_help'
4
-
5
- class Test::Unit::TestCase
6
- # Transactional fixtures accelerate your tests by wrapping each test method
7
- # in a transaction that's rolled back on completion. This ensures that the
8
- # test database remains unchanged so your fixtures don't have to be reloaded
9
- # between every test method. Fewer database queries means faster tests.
10
- #
11
- # Read Mike Clark's excellent walkthrough at
12
- # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
- #
14
- # Every Active Record database supports transactions except MyISAM tables
15
- # in MySQL. Turn off transactional fixtures in this case; however, if you
16
- # don't care one way or the other, switching from MyISAM to InnoDB tables
17
- # is recommended.
18
- self.use_transactional_fixtures = true
19
-
20
- # Instantiated fixtures are slow, but give you @david where otherwise you
21
- # would need people(:david). If you don't want to migrate your existing
22
- # test cases which use the @david style and don't mind the speed hit (each
23
- # instantiated fixtures translates to a database query per test method),
24
- # then set this back to true.
25
- self.use_instantiated_fixtures = false
26
-
27
- # Add more helper methods to be used by all tests here...
28
- end
data/html/404.html DELETED
@@ -1,8 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
- "http://www.w3.org/TR/html4/loose.dtd">
3
- <html>
4
- <body>
5
- <h1>File not found</h1>
6
- <p>Change this error message for pages not found in public/404.html</p>
7
- </body>
8
- </html>
data/html/500.html DELETED
@@ -1,8 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
- "http://www.w3.org/TR/html4/loose.dtd">
3
- <html>
4
- <body>
5
- <h1>Application error (Apache)</h1>
6
- <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>
7
- </body>
8
- </html>
data/html/favicon.ico DELETED
File without changes
Binary file