Commit Graph

407 Commits

Author SHA1 Message Date
Jamis Buck
1fb8ba7592 Don't set the :MimeTypes option if it is nil (causes routing errors on stylesheets and javascripts, somehow)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-15 22:51:43 +00:00
David Heinemeier Hansson
3e7b597ff4 Cant use silence_warnings before active support is loaded
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-15 08:25:46 +00:00
David Heinemeier Hansson
428e0f4e63 Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-15 06:42:07 +00:00
David Heinemeier Hansson
40b7809de5 Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-15 06:40:39 +00:00
David Heinemeier Hansson
a20ad655b5 Moved session and fragment options out
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 19:46:42 +00:00
David Heinemeier Hansson
0f8a3a31a7 Only include dirs that exists in the stats
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 18:43:23 +00:00
David Heinemeier Hansson
c9c0d74b5d Reformed all the config/environments/* files to conform to the new Rails::Configuration approach. Fully backwards compatible.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2235 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 10:23:28 +00:00
David Heinemeier Hansson
514e6704f3 Make it easy to go UTC
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 10:22:57 +00:00
David Heinemeier Hansson
6a0e41c158 Reformed environments files to the new config style
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2232 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 10:07:37 +00:00
David Heinemeier Hansson
6e8e9c20cb Control depedency mechanism, breakpoints, and whiny nils through the config
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 09:58:16 +00:00
David Heinemeier Hansson
a65835968e Fixed pointer to tasks location #2175
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-13 06:15:50 +00:00
David Heinemeier Hansson
284570fd00 Make it even easier to set a new session store and use symbols for log level too
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 18:05:46 +00:00
David Heinemeier Hansson
87e7ed8aef Added Rails::Configuration support for fragment stores
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 17:49:07 +00:00
David Heinemeier Hansson
691f95e448 Use session_id instead of deprecated sessid
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 17:36:43 +00:00
David Heinemeier Hansson
c259ed9e02 Use session_id instead of deprecated sessid
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 17:35:17 +00:00
David Heinemeier Hansson
0d97f055c2 Sessions with an s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 17:32:36 +00:00
David Heinemeier Hansson
d25fe84a01 Added create_session_table, drop_session_table, and purge_session_table as rake tasks for databases that supports migrations (MySQL, PostgreSQL, SQLite) to get a table for use with CGI::Session::ActiveRecordStore. Added configuration of session options through config.session_options in Rails::Configuration
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 17:30:40 +00:00
David Heinemeier Hansson
a16528f715 Added dump of schema version to the db_structure_dump task for databases that support migrations #1835 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-12 05:33:18 +00:00
David Heinemeier Hansson
17250c9157 Fixed script/profiler for Ruby 1.8.2 #1863 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 09:17:38 +00:00
David Heinemeier Hansson
e234115b63 Fixed clone_structure_to_test task for SQLite #1864 [jon@burningbush.us]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 09:16:48 +00:00
David Heinemeier Hansson
dc2a3af133 Dont encourage custom url options to be called with symbol #2047
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 07:25:08 +00:00
David Heinemeier Hansson
e2ba2069e7 Moved config/tasks to lib/tasks and added more documentation to environment.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 07:01:33 +00:00
David Heinemeier Hansson
72ef2bed01 Fixed missing ds
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 06:26:38 +00:00
David Heinemeier Hansson
3cf7a0a460 Added Kernel#silence_warnings and puts it into use throughout the framework
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 04:58:27 +00:00
David Heinemeier Hansson
4836c4081d Fix problem with mime type defaults #2165 [Michael Shuerig]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-11 04:17:14 +00:00
David Heinemeier Hansson
17ef7067c8 Added -m/--mime-types option to the WEBrick server, so you can specify a Apache-style mime.types file to load #2059 [ask@develooper.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 09:07:43 +00:00
David Heinemeier Hansson
b33557b622 Added -c/--svn option to the generator that'll add new files and remove destroyed files using svn add/revert/remove as appropriate #2064 [kevin.clark@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 09:02:55 +00:00
David Heinemeier Hansson
0cd7e6c1e0 Added -c/--charset option to WEBrick controller, so you can specify a default charset (which without changes is UTF-8) #2084 [wejn@box.cz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-09 08:59:07 +00:00
David Heinemeier Hansson
50debfa96c Dont encode the default subject for the test cases since they are within the ascii range
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-06 11:01:23 +00:00
Jamis Buck
b70e2db64a Make the default stats task extendable by modifying the STATS_DIRECTORIES constant
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-05 15:39:20 +00:00
Jamis Buck
9eef247339 Allow the selected environment to define RAILS_DEFAULT_LOGGER, and have Rails::Initializer use it if it exists.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-05 12:36:40 +00:00
David Heinemeier Hansson
558707f61a Silence logger initialization
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 23:05:58 +00:00
David Heinemeier Hansson
9fdd453257 Fix mocks dir
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 20:21:38 +00:00
David Heinemeier Hansson
a4994d077f Fix the spot looking for migrations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 16:24:36 +00:00
David Heinemeier Hansson
6c3be611d4 Fix the spot looking for migrations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 16:22:28 +00:00
David Heinemeier Hansson
177934e1d0 Talk about whats missing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 16:04:33 +00:00
David Heinemeier Hansson
29436edb73 Also configure template view path
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 15:44:19 +00:00
David Heinemeier Hansson
8367316826 Proper clean rakefile
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 15:20:42 +00:00
David Heinemeier Hansson
bc011df210 Moved all the shared tasks from Rakefile into Rails, so that the Rakefile is empty and doesn't require updating. Added Rails::Initializer and Rails::Configuration to abstract all of the common setup out of config/environment.rb (uses config/boot.rb to bootstrap the initializer and paths)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 15:13:06 +00:00
David Heinemeier Hansson
1448d749f5 Fixed the scaffold generator to fail right away if the database isn't accessible instead of in mid-air #1169 [Chad Fowler]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-03 07:29:30 +00:00
Jamis Buck
14b8fa308e Corrected project-local generator location in scripts.rb #2010 [Michael Schuerig]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2099 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-02 10:04:15 +00:00
David Heinemeier Hansson
d54aea29fc Fix documentation for mailer generator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-02 08:50:55 +00:00
Jamis Buck
49c67ea1b7 Don't require the environment just to clear the logs #2093 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2092 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-01 21:36:50 +00:00
Jamis Buck
2a8e33872b Make the default rakefile read *.rake files from config/tasks (for easy extension of the rakefile by e.g. generators)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-31 09:15:09 +00:00
Jamis Buck
b9cae60e85 More rails-switchtower decoupling
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-31 07:46:37 +00:00
Nicholas Seckar
49d5cadbb2 Only load breakpoint in development mode and when BREAKPOINT_SERVER_PORT is defined. Closes #1957
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-31 00:47:51 +00:00
Jamis Buck
bb7f60ca1c Remove switchtower integration from rails
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-30 20:47:09 +00:00
Jamis Buck
b4a5b27bf6 Allow the --toggle-spin switch on process/reaper to be negated
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-24 17:30:00 +00:00
David Heinemeier Hansson
6a4d4460ea Made SwitchTower conform to the other Rakefiles in terms of PKG description and beta gems pushing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-24 09:22:20 +00:00
Nicholas Seckar
7ab71d3892 Replace render_partial with render :partial in scaffold generator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-17 19:36:22 +00:00