Commit Graph

353 Commits

Author SHA1 Message Date
Marcel Molina
f14625bb46 Make help for the console command more explicit about how to specify the desired environment in which to run the console. Closes #2911.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-21 05:33:13 +00:00
Jeremy Kemper
dfa8aa0e1e PostgreSQL: the purge_test_database Rake task shouldn't explicitly specify the template0 template when creating a fresh test database. Closes #2964.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 12:00:46 +00:00
Jeremy Kemper
c2bb269cd5 Allows generator to specify migrations directory. References #2960.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 05:13:59 +00:00
Jeremy Kemper
9b9578fa47 Introducing the session_migration generator. Creates an add_session_table migration. References #2958.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-20 04:21:06 +00:00
Jeremy Kemper
81c5242f43 r3181@asus: jeremy | 2005-11-19 02:52:24 -0800
Mark connections for verification.  Retrieve connection verifies before returning a connection.  Verification tests whether the connection is marked then reconnects if the connection is inactive.  All active connections are marked for verification after a request is handled.  References #428.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-19 10:55:11 +00:00
Jeremy Kemper
97d5f4acdf script/console uses RAILS_ENV environment variable if present. Closes #2932.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 07:33:28 +00:00
Jeremy Kemper
ae76e22731 Windows: eliminate the socket option in database.yml. Closes #2924.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 07:30:05 +00:00
Jeremy Kemper
db871c8d54 Eliminate nil from newly generated logfiles. References #2927.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-18 05:28:00 +00:00
Tobias Lütke
60e425af33 replaced constant Plugin in documentation rake task with plugin local variable. This caused typo's migrations to fail because of name space collisions [Eridius]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 04:58:48 +00:00
Marcel Molina
5cb2aa722d Rename Version constant to VERSION. Closes #2802.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 00:32:16 +00:00
Jeremy Kemper
fc51104fe2 Remove CHANGELOG from apidoc Rake task since it isn't included with new apps anymore.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3063 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-16 22:37:45 +00:00
Jeremy Kemper
9318131e05 Eliminate Subversion dependencies in scripts/plugin. Correct install options. Introduce --force option to reinstall a plugin. Closes #2842.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 23:35:19 +00:00
Jeremy Kemper
d685e2cf18 SQLite: the clone_structure_to_test and purge_test_database Rake tasks should always use the test environment. Reference #2846.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 02:50:42 +00:00
Jeremy Kemper
91853b8a0d SQLite: the clone_structure_to_test Rake task should always use the test environment. References #2846.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-13 01:12:48 +00:00
David Heinemeier Hansson
9e0642a4ac Pulled auto-starting browser: More pain than gain
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2987 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-12 16:26:23 +00:00
David Heinemeier Hansson
8e9484d3c1 Make sure that legacy db tasks also reference :database for SQLite (closes #2830) [kazuhiko@fdiary.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2978 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-11 09:50:42 +00:00
Jeremy Kemper
3488ff6fc6 Pass __FILE__ when evaluating plugins' init.rb. Closes #2817.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 16:25:06 +00:00
Jeremy Kemper
dfda57af85 Better svn status matching for generators. Closes #2814.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 16:14:25 +00:00
David Heinemeier Hansson
7afaa6ed55 Disabled stderr suppressing until activesupport is available also in non-gem mode
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 11:23:20 +00:00
David Heinemeier Hansson
bc223236a6 Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-10 10:45:39 +00:00
Nicholas Seckar
73a697c38a Don't detach or fork for script/server tailing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 22:57:05 +00:00
David Heinemeier Hansson
c7e5c27b51 Added automatic browser launching on OS X when starting script/server [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 22:15:01 +00:00
David Heinemeier Hansson
5879a2e919 Changed all script/* to use /usr/bin/env ruby instead of hard-coded Ruby path. public/dispatcher.* still uses the hard-coded path for compatibility with web servers that dont have Ruby in path [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 21:15:41 +00:00
David Heinemeier Hansson
5c48a89a7f Force RAILS_ENV to be "test" when running tests, so that ENV["RAILS_ENV"] = "production" in config/environment.rb doesnt wreck havok [DHH] (closes #2660)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2955 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 15:11:55 +00:00
Jeremy Kemper
917189b076 Correct versioning in :freeze_gems Rake task. Closes #2778.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2941 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-08 10:43:40 +00:00
Sam Stephenson
b661c9603a Added an omnipresent RailsInfoController with a properties action that delivers an HTML rendering of Rails::Info (but only when local_request? is true). Added a new default index.html which fetches this with Ajax.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-08 04:26:34 +00:00
Scott Barron
c9ae41fe51 Adding new scripts should set them 0755.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 22:05:53 +00:00
David Heinemeier Hansson
cd2b9a9498 Made ready for 0.14.3 (RC4)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2930 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 19:40:27 +00:00
Jamis Buck
c2eb22e5c6 Add 'add_new_scripts' rake task for adding new rails scripts to script/*
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2926 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 18:09:31 +00:00
Jeremy Kemper
e55426a798 Raise in stubby/init.rb if it doesn't have access to directory or config. loaded_plugins is a set of plugin names (so it will be usable with multiple paths, gems, etc).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 18:06:44 +00:00
Jeremy Kemper
850b9c7506 Remove bogus hyphen from script/process/reaper calls to 'ps'. Closes #2767.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 17:57:21 +00:00
Jamis Buck
b49de6b74b Copy lighttpd.conf when it is first needed, instead of on app creation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 17:45:53 +00:00
Sam Stephenson
aec5273f41 Use require_library_or_gem 'fcgi' in script/server
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2920 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 15:35:03 +00:00
Jamis Buck
fa0a5973db Restore access to 'directory' and 'config' inside the plugin eval environment
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2919 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 14:01:56 +00:00
David Heinemeier Hansson
bbe9ee13e1 Make sure to check for FCGI as well as lighttpd
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 13:31:19 +00:00
David Heinemeier Hansson
e85e58f7a9 Added default lighttpd config in config/lighttpd.conf and added a default runner for lighttpd in script/server (works like script/server, but using lighttpd and FastCGI). It will use lighttpd if available, otherwise WEBrick. You can force either or using 'script/server lighttpd' or 'script/server webrick' [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 10:42:52 +00:00
David Heinemeier Hansson
5ca8b5fca4 Added default lighttpd config in config/lighttpd.conf and added a default runner for lighttpd in script/server (works like script/server, but using lighttpd and FastCGI). It will use lighttpd if available, otherwise WEBrick. You can force either or using 'script/server lighttpd' or 'script/server webrick' [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 10:25:36 +00:00
David Heinemeier Hansson
3c8d425bb2 Fail gracefully from svn checks (closes #2700) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 09:46:40 +00:00
Jeremy Kemper
6c434e8b8e New configuration option config.plugin_paths which may be a single path like the default 'vendor/plugins' or an array of paths: ['vendor/plugins', 'lib/plugins']. Plugins are discovered in nested paths, so you can organize your plugins directory as you like. Refactor load_plugin from load_plugins. Simplify initializer unit test. Closes #2757.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 08:09:38 +00:00
Sam Stephenson
5c1eb899de Make use of silence_stderr in script/lighttpd, script/plugin, and Rails::Info
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-07 04:06:05 +00:00
David Heinemeier Hansson
37e2085ff1 Fail gracefully when plugin was not found [Chad Fowler]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2892 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 13:06:38 +00:00
David Heinemeier Hansson
c7da7a38d7 svn:externals is now an explicit option for script/plugin (closes #2755) [Ryan Tomayko]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 07:23:58 +00:00
Sam Stephenson
d3275cadaa Enable HTTP installation of plugins when svn isn't avaialable. Closes #2661. [Chad Fowler]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-06 01:39:32 +00:00
Sam Stephenson
55fab64391 Move info.rb to rails_info.rb and load Rails::Info after initialization
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 18:04:52 +00:00
Sam Stephenson
71b032a0a6 Added script/about to display formatted Rails::Info output
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 14:30:47 +00:00
Sam Stephenson
1f6b09f67c Added Rails::Info to catalog assorted information about a Rails application's environment
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 04:44:33 +00:00
Jeremy Kemper
8c4c196f56 Scaffold-generated controller action gives paginate the plural_ rather than singular_name. Closes #2743.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-05 02:59:58 +00:00
Sam Stephenson
f35792974a script/lighttpd: Detach and exit the forked process
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 21:54:49 +00:00
Sam Stephenson
0c512ca990 script/lighttpd: tail the logfile when running in the foreground, and attempt to guess the port number
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2875 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 20:58:38 +00:00
Jeremy Kemper
fad2aae72b Don't reap the spawner or reaper scripts either. Closes #2727.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-04 05:55:11 +00:00