Commit Graph

272 Commits

Author SHA1 Message Date
David Heinemeier Hansson
dbb6403923 Added exception shallowing if the DRb server can't be started (not worth making a fuss about to distract new users) #779 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 17:37:49 +00:00
David Heinemeier Hansson
10be1c59f8 Added an empty favicon.ico file to the public directory of new applications (so the logs are not spammed by its absence)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 17:22:56 +00:00
David Heinemeier Hansson
7ba3903db6 Fixed that scaffold generator new template should use local variable instead of instance variable #778 [Dan Peterson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@859 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:37:08 +00:00
David Heinemeier Hansson
10a86b21fb Allow unit tests to run on a remote server for PostgreSQL #781 [adamm@galacticasoftware.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@856 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:18:27 +00:00
David Heinemeier Hansson
2581806abd Added web_service generator (run ./script/generate web_service for help) #776 [Leon Bredt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:01:52 +00:00
David Heinemeier Hansson
12c775f20c Added app/apis and components to code statistics report #729 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:32:02 +00:00
David Heinemeier Hansson
5718eb190c Fixed WEBrick server to use ABSOLUTE_RAILS_ROOT instead of working_directory #687 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:24:21 +00:00
David Heinemeier Hansson
6d566e82b4 Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]. Moved all active support dependencies into active support
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@838 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 12:20:53 +00:00
David Heinemeier Hansson
db41d2dd5c Fixed -h/--help for generate and destroy generators #331
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 11:42:17 +00:00
David Heinemeier Hansson
5da277b182 Added begin/rescue around the FCGI dispatcher so no uncaught exceptions can bubble up to kill the process (logs to log/fastcgi.crash.log)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@831 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-04 12:12:55 +00:00
David Heinemeier Hansson
4ba8d08481 Removed a fix that was caused by a bug in RubyGems 0.8.5
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-28 13:58:42 +00:00
David Heinemeier Hansson
6650da43c8 Fixed that association#count would produce invalid sql when called sequentialy #659 [kanis@comcard.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-28 09:07:03 +00:00
David Heinemeier Hansson
38ea84aab6 Fixed test/mocks/testing to the correct test/mocks/test #740
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:43:08 +00:00
David Heinemeier Hansson
12e1eae87e Added early failure if the Ruby version isn't 1.8.2 or above #735
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:40:10 +00:00
David Heinemeier Hansson
f46515619f Fixed the missing shebang in main "rails" script #736
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:35:12 +00:00
David Heinemeier Hansson
99fca6330d Marked for release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-24 13:16:41 +00:00
David Heinemeier Hansson
df99b68f57 Changed default IP binding for WEBrick from 127.0.0.1 to 0.0.0.0 so that the server is accessible both locally and remotely #696 [Marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-23 12:26:25 +00:00
David Heinemeier Hansson
ab3a813364 Fixed that script/server -d was broken so daemon mode couldn't be used #687 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 23:04:42 +00:00
David Heinemeier Hansson
1402bb7a25 Upgraded to breakpoint 92
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@721 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 22:28:11 +00:00
David Heinemeier Hansson
69d0f50206 Added support for independent components residing in /components
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-20 13:58:03 +00:00
David Heinemeier Hansson
b008b6f194 Added --sandbox option to script/console that'll roll back all changes made to the database when you quit #672 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-19 21:57:43 +00:00
David Heinemeier Hansson
2af41fc036 Added 'recent' as a rake target that'll run tests for files that changed in the last 10 minutes #612 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 20:12:27 +00:00
David Heinemeier Hansson
7cac2b5e73 Changed script/console to default to development environment and drop --no-inspect (I caed) #650 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-17 19:36:49 +00:00
David Heinemeier Hansson
098fa94356 Fixed documentation snafus #575, #576, #577, #585
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 14:15:53 +00:00
David Heinemeier Hansson
aef06f3b60 Added that running test_units and test_functional now performs the clone_structure_to_test as well #566 [rasputnik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 14:08:38 +00:00
David Heinemeier Hansson
daee6fd92a Added new generator framework that informs about its doings on generation and enables updating and destruction of generated artifacts. See the new script/destroy and script/update for more details #487 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 13:14:05 +00:00
David Heinemeier Hansson
ac8ebc19be Prepared for 0.9.5 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@515 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 20:10:24 +00:00
David Heinemeier Hansson
10220d356d Fixed dependency reloading by switching to a remove_const approach where all Active Records, Active Record Observers, and Action Controllers are reloading by undefining their classes. This enables you to remove methods in all three types and see the change reflected immediately and it fixes #539. This also means that only those three types of classes will benefit from the const_missing and reloading approach. If you want other classes (like some in lib/) to reload, you must use require_dependency to do it.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-25 18:45:06 +00:00
David Heinemeier Hansson
453bc7346d Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 16:19:29 +00:00
David Heinemeier Hansson
505e2d99da Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 13:41:57 +00:00
David Heinemeier Hansson
2257980c50 Fixed skeleton Rakefile to work with sqlite3 out of the box #521 [rasputnik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 13:12:40 +00:00
David Heinemeier Hansson
6d7175d6cc Fixed that script/breakpointer didn't get the Ruby path rewritten as the other scripts #523 [brandt@kurowski.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 11:59:22 +00:00
David Heinemeier Hansson
3d1e8dde9d Fixed handling of syntax errors in models that had already been succesfully required once in the current interpreter. Fixed superclass mismatch and other controller related problems by not using dependency reloading for controllers.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 10:58:17 +00:00
David Heinemeier Hansson
f31291ab5a Another swing at reloading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-24 00:26:44 +00:00
David Heinemeier Hansson
38ee39a4a5 Fixed that generate scaffold would produce bad functional tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-22 14:39:03 +00:00
David Heinemeier Hansson
a5364fb3ac Made ready for release of 0.9.4.1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 14:13:12 +00:00
David Heinemeier Hansson
652f1ef02f Added 5-second timeout to WordNet alternatives on creating reserved-word models #501 [Marcel Molina]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-18 09:58:48 +00:00
David Heinemeier Hansson
ecfe77f38d CHANGELOGs..
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@448 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 17:31:15 +00:00
David Heinemeier Hansson
ddcc400293 Made ready for release of 0.9.4
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:13:15 +00:00
David Heinemeier Hansson
9577f0f57c Fixed up some docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-17 01:05:14 +00:00
David Heinemeier Hansson
2aac6d90fe Flipped code-to-test ratio around to be more readable #468 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 18:19:51 +00:00
David Heinemeier Hansson
62f0512e54 Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 17:28:01 +00:00
David Heinemeier Hansson
6c1fe632a3 Fixed that auto reloading would some times not work or would reload the models twice #475 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 13:26:48 +00:00
David Heinemeier Hansson
c755b29a86 Fixed page caching problems with saving cached file fails for the index action and that it shouldnt cache files with GET/POST parameters #462
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-15 13:22:58 +00:00
David Heinemeier Hansson
52251baae4 Added the option to specify a controller name to "generate scaffold" and made the default controller name the plural form of the model.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-13 15:49:26 +00:00
David Heinemeier Hansson
dbb5341691 Added that rake clone_structure_to_test, db_structure_dump, and purge_test_database tasks now pick up the source database to use from RAILS_ENV instead of just forcing development #424 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 00:07:35 +00:00
David Heinemeier Hansson
59c2a4d511 Fixed script/console to work with Windows (that requires the use of irb.bat) #418 [octopod]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-10 23:47:32 +00:00
David Heinemeier Hansson
70039d1e91 Fixed WEBrick servlet slowdown over time by restricting the load path reloading to mod_ruby #372
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-06 15:56:57 +00:00
David Heinemeier Hansson
f92ae75a23 Removed Fancy Indexing as a default option on the WEBrick servlet as it made it harder to use various caching schemes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 22:50:15 +00:00
David Heinemeier Hansson
0dd43e3868 Include package dependency information
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 12:48:09 +00:00
David Heinemeier Hansson
f2e6945b25 Prepared for release of 0.9.3
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 12:35:10 +00:00
David Heinemeier Hansson
02c21bc986 Added support for SQLite in the auto-dumping/importing of schemas for development -> test #416
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-03 23:15:22 +00:00
David Heinemeier Hansson
375568b7cb Fixed problems with dependency caching and controller hierarchies on Ruby 1.8.2 in development mode #351
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 18:32:56 +00:00
David Heinemeier Hansson
07989b64f4 Added automated rewriting of the shebang lines on installs through the gem rails command #379 [Manfred Stienstra]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-01 18:10:10 +00:00
David Heinemeier Hansson
43f5ab93e0 Fixed that generated action_mailers doesnt need to require the action_mailer since thats already done in the environment #382 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@287 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-31 16:38:24 +00:00
David Heinemeier Hansson
3d691ab390 Fixed dependency management to happen in a unified fashion for Active Record and Action Pack using the new Dependencies module. This means that the environment options needs to change.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@282 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-30 00:20:52 +00:00
David Heinemeier Hansson
3755816266 Added ActionMailer::Base.deliver_method = :test to the test environment so that mail objects are available in ActionMailer::Base.deliveries for functional testing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-23 23:34:39 +00:00
David Heinemeier Hansson
f6d2bc30fe Added ActionMailer::Base.raise_delivery_errors = false to the test environment as we checks will be performed against deliveries array instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-23 19:12:07 +00:00
David Heinemeier Hansson
4ff4afa579 Added protection for creating a model through the generators with a name of an existing class, like Thread or Date. It'll even offer you a synonym using wordnet.princeton.edu as a look-up. No, I'm not kidding :) [Florian Gross]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-23 00:52:34 +00:00
David Heinemeier Hansson
d9c0a37f37 Releasing Rails 0.9.2
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 23:56:17 +00:00
David Heinemeier Hansson
78c6de9daf Fixed CTRL-C exists from the Breakpointer to be a clean affair without error dumping [Kent Sibilev]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 13:17:35 +00:00
David Heinemeier Hansson
ebf2b12b07 Fixed "rake stats" to work with sub-directories in models and controllers and to report the code to test ration [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 13:08:26 +00:00
David Heinemeier Hansson
8537d5eb93 Added a require_association hook on const_missing that makes it possible to use any model class without requiring it first. Added that Active Record associations are now reloaded instead of cleared to work with the new const_missing hook in Active Record.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-20 13:21:01 +00:00
David Heinemeier Hansson
b586c7a97a Added graceful handling of an inaccessible log file by redirecting output to STDERR with a warning #330 [rainmkr]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 13:29:39 +00:00
David Heinemeier Hansson
d19b1810db Added support for a -h/--help parameter in the generator #331 [Ulysses]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 12:55:22 +00:00
David Heinemeier Hansson
bb9975fbc7 File.expand_path in config/environment.rb would fail when dealing with symlinked public directories [mjobin].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-18 00:47:30 +00:00
David Heinemeier Hansson
60fad97551 Upgraded to Action Pack 1.0.1 for important bug fix. Updated gem dependencies.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-17 00:42:53 +00:00
David Heinemeier Hansson
cc88e5a615 Renamed script/envcon to script/console
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@187 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-16 15:47:04 +00:00
David Heinemeier Hansson
b8f8776f0c Renamed public/dispatch.servlet to script/server -- it wasn't really dispatching anyway as its delegating calls to public/dispatch.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@186 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-16 15:45:55 +00:00
David Heinemeier Hansson
4d9cda5732 Renamed AbstractApplicationController and abstract_application.rb to ApplicationController and application.rb, so that it will be possible for the framework to automatically pick up on app/views/layouts/application.rhtml and app/helpers/application.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-15 11:30:09 +00:00
David Heinemeier Hansson
456076a306 Added an easier way of starting a IRB session on the environment
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@49 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-06 18:19:24 +00:00
David Heinemeier Hansson
db045dbbf6 Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 01:04:44 +00:00