Commit Graph

100 Commits

Author SHA1 Message Date
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
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
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
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
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
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
David Heinemeier Hansson
a52132af58 Added demonstration of fixture use to the test case generated by the model generator [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-02 10:15:31 +00:00
Thomas Fuchs
d47f3bcbad Change javascript_include_tag :defaults to not use script.aculo.us loader, which facilitates the use of plugins for future script.aculo.us and third party javascript extensions, and provide register_javascript_include_default for plugins to specify additional JavaScript files to load. Removed scriptaculous.js, slider.js and builder.js
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-01 06:34:40 +00:00
Thomas Fuchs
d8f0a3f93c Update script.aculo.us to V1.5_rc4
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-29 11:48:53 +00:00
Jeremy Kemper
24e3dbb806 Add default Mac + DarwinPorts MySQL socket locations to the app generator.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2800 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-29 07:31:00 +00:00
Jeremy Kemper
4194384704 Don't dirty up the command delegates' base class with methods that belong in the migration generator class.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-29 04:52:59 +00:00
Jeremy Kemper
85513e37bf Migrations may be destroyed: script/destroy migration foo. Closes #2635.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-29 04:47:51 +00:00
David Heinemeier Hansson
25410d53cf Added that plugins can carry generators and that generator stub files can be created along with new plugins using script/generate plugin <name> --with-generator [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2797 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 23:52:34 +00:00
David Heinemeier Hansson
7376da4a2c Removed app/apis as a default empty dir since its automatically created when using script/generate web_service [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 22:01:11 +00:00
David Heinemeier Hansson
0a735ca4b3 Added script/plugin to manage plugins (install, remove, list, etc) [Ryan Tomayko]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2793 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 21:21:07 +00:00
Jeremy Kemper
927b847239 Add Rakefile to plugin generator. Let test_plugins rake task look deeper into plugins' test dirs. Make plugin test cases flunk by default.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 20:28:09 +00:00
David Heinemeier Hansson
5f73ba11ce Added default lighttpd config in config/lighttpd.conf and added a default runner for lighttpd in script/lighttpd (works like script/server, but using lighttpd and FastCGI) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 17:53:47 +00:00
David Heinemeier Hansson
ef3e1928a1 Plugin tests should include test/unit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2785 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 17:50:18 +00:00
David Heinemeier Hansson
66bbc4f4e6 Added plugin generator to create a stub structure for a new plugin in vendor/plugins (see "script/generate plugin" for help) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 16:33:25 +00:00
Jeremy Kemper
d5e48ae7d2 Use the old way of getting args to the scaffold generator and un-screwup the controller name assignment appropriately.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2783 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 15:42:16 +00:00
David Heinemeier Hansson
b31aa2dd57 Added app/services as a default dir in the Rails skeleton and to the load path. Use it to keep classes like MaintenanceService and PaymentGateway [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 13:00:33 +00:00
David Heinemeier Hansson
9bafd35375 Fixed scaffold generator when started with only 1 parameter (closes #2609) [self@mattmower.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-28 07:50:42 +00:00
David Heinemeier Hansson
17816a11ee Proper CSS color definition (closes #2334)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-26 13:26:51 +00:00
Jeremy Kemper
3ab3a70b7c Clarify semantics of ActiveRecord::Base#respond_to? Closes #2560.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-22 16:43:39 +00:00
Jeremy Kemper
d0a3185062 Scaffold generator pays attention to the controller name. Closes #2562.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-22 16:02:53 +00:00
Michael Koziarski
9601f96a70 attempt to fix #2500
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-17 23:19:48 +00:00
Jeremy Kemper
2c64b9d127 suppress mysql_config errors
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-17 04:56:27 +00:00
David Heinemeier Hansson
50a02abd6d Remove util.js
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 16:15:05 +00:00
Jeremy Kemper
6273753a42 Try to figure out which mysql socket to use. Default to /path/to/your/mysql.sock
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 13:47:34 +00:00
Jeremy Kemper
4c4651ad00 Use expand_path for app_name so, e.g., rails . is supported
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 13:22:36 +00:00
Florian Weber
a1f14d1a85 Made the rails command use the application name for database names in the tailored database.yml file.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 09:51:04 +00:00
David Heinemeier Hansson
08917a6c5e Fixed script/performance
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2605 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 02:56:35 +00:00
David Heinemeier Hansson
8ad552a112 Moving perform to performance
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 21:21:56 +00:00
Jeremy Kemper
00656979fe r3619@sedna: jeremy | 2005-10-14 14:41:24 -0700
move scripts
 r3622@sedna:  jeremy | 2005-10-14 14:54:48 -0700
 remove script/perform and script/process in favor of script/perform/profile, etc.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 18:58:07 +00:00
Thomas Fuchs
7d101d5840 Update Prototype to V1.4.0_pre11, script.aculo.us to [2502] and fix the rails generator to include the new .js files [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 16:56:23 +00:00
Jeremy Kemper
31baeeef1b Look here, braces: gimme some elbow room. #2418
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 13:45:20 +00:00
David Heinemeier Hansson
0b70320e04 Dont include script/process dir
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-06 02:21:49 +00:00
David Heinemeier Hansson
7346f3de77 Dont include run
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-06 02:19:51 +00:00
David Heinemeier Hansson
a9f34eaa0f Backed out of script/run portal idea. Muscle memory too deep
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-06 02:05:36 +00:00
David Heinemeier Hansson
0a0ac86845 Removed all the scripts in script/* and replaced it with one generic portal: script/run
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-29 12:18:51 +00:00
Marcel Molina
8e78e9335b Make table_name and controller_name in generators honor AR::Base.pluralize_table_names.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 00:06:39 +00:00
Sam Stephenson
72c3ffc7fb Make the migration generator only check files ending in *.rb when calculating the next file name #2317 [Chad Fowler]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2362 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-27 10:47:47 +00:00
David Heinemeier Hansson
6d336753b9 Added prevention of duplicate migrations from the generator #2240 [fbeausoleil@ftml.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-24 08:42:38 +00:00
David Heinemeier Hansson
dfd0bdf1a0 Fixed that generate scaffold claims all words are reserved #2200, #2211 [alancfrancis@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-17 06:36:04 +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
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
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
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
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