Commit Graph

465 Commits

Author SHA1 Message Date
Sam Stephenson
24c3599cc0 Support using different database adapters for development and test with ActiveRecord::Base.schema_format = :ruby
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 04:12:32 +00:00
Jamis Buck
a91423ed5b Make webrick work with session(:off)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 00:05:32 +00:00
Jamis Buck
de42f26df7 Make sure ENV['RAILS_ENV'] and RAILS_ENV are kept in sync
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 12:44:03 +00:00
Jamis Buck
42bcbcb043 Honor the runner -e toggle even if the RAILS_ENV constant has already been set
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 12:41:23 +00:00
David Heinemeier Hansson
6823f57b27 Use the correct scope for Rake tasks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 01:07:57 +00:00
David Heinemeier Hansson
6fe5f65d87 Migrating should also dump the latest schema
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 00:02:11 +00:00
Sam Stephenson
e3655ef733 Fix Element.toggle logic
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 19:09:40 +00:00
Jamis Buck
08a010eb1b Require rails_version instead of version
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 16:13:49 +00:00
Jamis Buck
d40d3e0b7b mv lib/version.rb to lib/rails_version.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 14:52:09 +00:00
Marcel Molina
68a322005d Add versioning convention from SwitchTower to all Rails components. Add --version, -v option to the 'rails' command. Closes #1840.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 21:15:45 +00:00
Thomas Fuchs
2ed689745c Make it clear that we are at script.aculo.us V1.5_rc3 now
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2505 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 17:26:24 +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
Marcel Molina
24b9d2fe71 Backing out of #2496. Comparing md5 checksums is in no way faster than doing a direct compare. Benchmarks help.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 20:12:16 +00:00
Marcel Molina
d94994867f Compare md5 checksums of files rather than files themselves, as it's far faster for large files (like logs).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 19:03:08 +00:00
Marcel Molina
6b59011862 Skip directories when checking for identical source and destination files.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 18:57:14 +00:00
Marcel Molina
a7cdaadd19 Evaluate dynamic templates before checking if the new file is identical to the old one.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 18:40:00 +00:00
Marcel Molina
d451044ece Make the generator skip a file if it already exists and is identical to the new file.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 16:56:36 +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
0da7142c45 Dont repeat yourself
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-06 03:13:23 +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
Jeremy Kemper
eb54de9992 Keep Units and Functionals around for those who don't upgrade their app right away.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-05 22:47:50 +00:00
Jamis Buck
4efdee4ea5 Load plugins last
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2467 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-05 18:31:30 +00:00
Jamis Buck
445873af19 prepend to load path before loading the plugin
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-05 18:28:34 +00:00
Jamis Buck
7a854b5379 Add experimental plugin support #2335
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-05 18:25:15 +00:00
David Heinemeier Hansson
11de94748e Run set load path so others can do boot and get path
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 15:13:44 +00:00
David Heinemeier Hansson
241b842be1 Update the spinner to the latest commands
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2428 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 13:46:14 +00:00
David Heinemeier Hansson
3b108e7d35 Dont redefine RAILS_ENV once set
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 11:11:21 +00:00
David Heinemeier Hansson
735f08aca0 Made the order of framework settings significant so config.action_controller.allow_concurrency can be specified before config.action_controller.fragment_cache_store, which relies on the value of the former
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2423 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-30 07:20:57 +00:00
David Heinemeier Hansson
854048a2ac Dont bitch over resetting const
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-29 12:37:44 +00:00
David Heinemeier Hansson
d219d54930 Clean up the act of commands
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-29 12:33:48 +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
David Heinemeier Hansson
070d218c47 Going to pull all commands into Rails
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-29 11:49:56 +00:00
David Heinemeier Hansson
00e085f5a5 Solved the hanging issue.. USR2 is now the preferred way of restarting FCGIs!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 19:39:12 +00:00
David Heinemeier Hansson
8e4f27a50a Solved the hanging issue.. USR2 is now the preferred way of restarting FCGIs!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 19:31:41 +00:00
David Heinemeier Hansson
ac8f76b521 Dont log it twice
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 08:55:04 +00:00
David Heinemeier Hansson
b7faeb20e9 Added in-process restarting on USR2 -- still missing a good way to free up the socket, so not a complete solution yet.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 08:38:26 +00:00
Thomas Fuchs
9084f5b6e8 Forgot about CHANGELOGs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 08:26:06 +00:00
Thomas Fuchs
516dc2c0f1 Update script.aculo.us to 1.5_rc2, and Prototype to 1.4.0_pre7
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 08:20:47 +00:00
Marcel Molina
93db2f3895 Include additional ticket number that is closed by [2380].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-28 00:21:01 +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
Scott Barron
e1024e50cf #2261 was supposed to have been closed as wontfix, not sure why it wasn't,
sorry.  We discussed this on IRC and reached the conclusion that it was
an undesirable addition.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2377 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-27 23:31:32 +00:00
Jeremy Kemper
5217b90909 Ticket 2261 - Include lib/tasks/*.rake in rake stats
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2376 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-27 22:57:05 +00:00
Jeremy Kemper
0c23f06129 Update change log for #2297
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-27 22:10:33 +00:00
Jeremy Kemper
ec019d7bc1 Ticket 2297 - rake stats clearly labels functional and unit tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2373 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-27 22:09:21 +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
7f86e026f6 Use assignment instead of call
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-25 08:48:30 +00:00
David Heinemeier Hansson
948be2c998 Added new symbol-driven approach to activating observers with Base#observer [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-09-25 08:26:29 +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