Commit Graph

3100 Commits

Author SHA1 Message Date
David Heinemeier Hansson
2e67f1adc8 RJS now does enumerations, baby! (closes #3876) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 19:34:23 +00:00
David Heinemeier Hansson
116658e69b Fixed that calling HasOneProxy#build_model repeatedly would cause saving to happen (closes #4058) [anna@wota.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 06:25:39 +00:00
David Heinemeier Hansson
9ed7430b94 Fixed test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3752 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 05:59:04 +00:00
David Heinemeier Hansson
711ce826a7 Fixed type (closes #3999)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 03:21:13 +00:00
David Heinemeier Hansson
3d4965765c Fix a ton of issues with AWS (yes, Kent saved it from being unbundled in 1.1) #4038 [Kent Sibilev]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 03:19:37 +00:00
David Heinemeier Hansson
94725b02bc Added reload! method to script/console to reload all models and others that include Reloadable without quitting the console (closes #4056) [esad@esse.at]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 03:00:55 +00:00
David Heinemeier Hansson
e9d6429ad3 Added that rake rails:freeze:edge will now just export all the contents of the frameworks instead of just lib, so stuff like rails:update:scripts, rails:update:javascripts, and script/server on lighttpd still just works (closes #4047) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-03 02:54:30 +00:00
Jeremy Kemper
68ff2ebbea fix unreplaced class var
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 22:04:38 +00:00
Jeremy Kemper
215852745b Revert allow_concurrency change for better testing. Retrieve_connection in two steps to avoid side-effect bug (yuk).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 14:36:06 +00:00
David Heinemeier Hansson
a4c6442612 More docs for observers (closes #3996) [Robby Russel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 03:02:51 +00:00
David Heinemeier Hansson
7864d0e012 Added fix for upload problems with lighttpd from Safari/IE to config/lighttpd.conf (closes #3999) [thijs@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 02:56:26 +00:00
David Heinemeier Hansson
b0245a57d6 No longer needed (closes #4017)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 02:54:34 +00:00
David Heinemeier Hansson
456ddc6f61 Doc fix (closes #4014) [thijs@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 02:53:57 +00:00
David Heinemeier Hansson
3fb29b172f Fixed that default image extension was not appended when using a full URL with AssetTagHelper#image_tag (closes #4032, #3728) [rubyonrails@beautifulpixel.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:54:53 +00:00
David Heinemeier Hansson
4c5db2c7ea Fixed that Array#to_sentence will return "" on an empty array instead of ", and" (closes #3842, #4031) [rubyonrails@beautifulpixel.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:51:52 +00:00
David Heinemeier Hansson
3574ab3059 Added that page caching will only happen if the response code is less than 400 (closes #4033) [g.bucher@teti.ch]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:48:56 +00:00
David Heinemeier Hansson
f62b8af688 Catch requirement of Sybase adapter, if we cant, dont have it
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:37:41 +00:00
David Heinemeier Hansson
5ba5dd68da Dont require sybase unless you try to connect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:31:29 +00:00
David Heinemeier Hansson
ec4dd572e7 Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) (closes #3765) [John Sheets]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:25:50 +00:00
David Heinemeier Hansson
6a3f4c932a Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) (closes #3765) [John Sheets]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 01:15:41 +00:00
David Heinemeier Hansson
8fdb4bc8f6 Added test:uncommitted to test changes since last checkin to Subversion (closes #4035) [technomancy@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-02 00:17:53 +00:00
Jeremy Kemper
a434cec2e6 (duh :)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 22:14:00 +00:00
Jeremy Kemper
d28c0f7405 Typo in stale thread removal.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 22:09:46 +00:00
Jeremy Kemper
2b02596b96 Clear stale, cached connections left behind by defunct threads. Eliminate duplicate connection cache.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 22:08:00 +00:00
Jeremy Kemper
7568f18a2a Clear stale, cached connections left behind by defunct threads. Eliminate duplicate connection cache.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 22:05:41 +00:00
Jeremy Kemper
d8641ca34f CHANGED DEFAULT: set ActiveRecord::Base.allow_concurrency to false. Most AR usage is in single-threaded applications.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 22:04:30 +00:00
Marcel Molina
0d92ce59ff Make Enumerable#group_by return a Hash (sacrificing the preservation of ordering) so that it is more compatible with the version that is in Ruby 1.9
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 21:12:18 +00:00
Marcel Molina
1fdf578c17 Add Enumerable#group_by and Array#in_groups_of
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 20:32:10 +00:00
Jamis Buck
8368b5960b restore elided TestProcess#assigns method
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 19:40:37 +00:00
Jamis Buck
abeb77b286 Make TestProcess methods public for access via Integration::Session. Make return values from some of the Integration::Session methods sane.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:37:11 +00:00
Jeremy Kemper
9ded584ec3 Help script/about print the correct svn revision when in a non-English locale. Closes #4026.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:30:09 +00:00
David Heinemeier Hansson
a8d085adf0 Make calculations typecasty! (closes #4016) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:25:14 +00:00
Jamis Buck
32e0bebbb9 Use require instead of load with the integration stuff. Add helper method for creating new sessions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3721 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:22:26 +00:00
David Heinemeier Hansson
6f9ac79011 Update old alias too
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:13:33 +00:00
Scott Barron
9fcbd37d9c When freezing to edge, we should also export railties/bin and railties/html so
that rails:update:scripts and rails:update:javascripts still function.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:02:50 +00:00
David Heinemeier Hansson
631181ca18 Renamed the "oci" adapter to "oracle", but kept the old name as an alias (closes #4017) [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 16:01:53 +00:00
Jamis Buck
7056fc6782 Add 'app' accessor to script/console as an instance of Integration::Session
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 15:52:40 +00:00
David Heinemeier Hansson
491554f6dd Make #save return true on success, even if locking is enabled (closes #4015) [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 05:43:50 +00:00
David Heinemeier Hansson
0fa127870c Have to use inheritance
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 04:07:04 +00:00
David Heinemeier Hansson
420ffb79e3 Added Kernel#daemonize to turn the current process into a daemon that can be killed with a TERM signal [DHH] Refactored stuff lingering in kernel.rb to the appropriate places
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-01 03:53:54 +00:00
David Heinemeier Hansson
8adaf10eca Match singular naming from directory structure [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 22:40:19 +00:00
David Heinemeier Hansson
8995483106 Guard against app generation if the database specified isnt supported for preconfiguration [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 21:01:10 +00:00
Jeremy Kemper
a974b9e3c2 Generator::Base#usage takes an optional message argument which defaults to Generator::Base#usage_message.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3710 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:58:29 +00:00
David Heinemeier Hansson
ba8a7bbf4d Stop annoying me when Im changing fixtures for other tests first
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:42:42 +00:00
David Heinemeier Hansson
6417cdd846 Fixed tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:39:21 +00:00
David Heinemeier Hansson
4c7555aef7 Fixed that Base.save should always return false if the save didn't succeed, including if it has halted by before_save's (closes #1861, #2477) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:37:21 +00:00
Michael Koziarski
17ff70ac84 Make rake load_fixtures work with the new, flexible, fixtures api. [Rick Olson]. Closes #3995
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:18:02 +00:00
Michael Koziarski
a117d68f0f Add more documentation for Reflection. [robby@planetargon.com]. Closes #4001
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 20:13:37 +00:00
David Heinemeier Hansson
9ad6e1a628 Various problems with in-memory sqlite dbs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3704 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 19:43:34 +00:00
Jeremy Kemper
e6b848b8c6 Remove the extraneous AR::Base.threaded_connections setting from the webrick server.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 19:10:08 +00:00