aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix a number of errors in the config.gem mechanism.Matt Jones2008-10-056-44/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rails::GemDependency was missing definitions for hash and eql?, causing Array#uniq to not work. * If several versions of a gem are unpacked in vendor, now chooses the highest if no version is specified. * streamlined add_load_path. Now sets up Rubygems correctly to allow 'gem' to find frozen gems, with gems frozen to vendor/gems and specifications in vendor/gems/<gem-name>/.specification * Rails::GemDependency#specification would return a spec for the highest installed version, even for frozen gems and/or previously loaded lower versions. See in part ticket #1123. * removed vendor from default_load_paths - it was causing autoloading to append Gems::Gems::<gem-dir> to constant names * added additional tests for loading frozen gems. * incorporates the fix from #1107 for vendor rails * defers to freeze:gems for handling the Rails framework. gems:unpack WILL NOT place a copy of Rails in vendor/gems. Should close #1123 completely. * incorporates, via using the gem loader for frozen gems, fixes corresponding to #227, #324, #362, #527, and #742. * gem plugins now work the same whether frozen or not. Correctness of the behavior is a matter for another ticket... Signed-off-by: rick <technoweenie@gmail.com>
* Add IMB DB support to Rails application generator. [#1136 state:resolved]Antonio Cangiano2008-10-041-1/+1
| | | | | | Usage : rails app_name -d ibm_db Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make sure recreate MySQL test database with the proper encoding and ↵Luca Guidi2008-10-031-1/+1
| | | | | | | collation [#1165 state:resolved] Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1165 state:committed]
* Partially revert 185fe2e9cce737d69d3b47a656f3651ce152c0c1Michael Koziarski2008-09-241-1/+3
| | | | We shouldn't quote the unpack command's requirement as it's passed through GemRunner which takes care of it for us.
* Bump the Version constants to align with the *next* release rather than the ↵Michael Koziarski2008-09-221-1/+1
| | | | | | previous release. This allows people tracking non-release gems or git submodules to use the constants.
* make db:migrate:redo rake task accept an optional VERSION to target that ↵Philip Hallstrom2008-09-171-2/+10
| | | | | | specific migration to redo Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Add --debugger option to script/console.miloops2008-09-111-0/+13
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1025 state:committed]
* Fix for SQLite's db creation warnings [status:committed #614]Antonio Cangiano2008-09-091-6/+18
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Dont reference the class being tested when it can be assumedDavid Heinemeier Hansson2008-09-091-1/+0
|
* Ruby 1.9 compat: remove instance variables and global variables from block ↵Akira Matsuda2008-09-091-8/+8
| | | | | | | | parameters [#1000 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 compat: use String#lines instead of to_a in Ruby 1.9Akira Matsuda2008-09-091-1/+1
| | | | | | [#1001 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Ruby 1.9 compat: remove constants from block parametersAkira Matsuda2008-09-091-2/+2
| | | | | | [#1002 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrailsPratik Naik2008-09-031-1/+1
|
* Database connections are now pooled, one pool per #establish_connection call.Jeremy Kemper2008-09-022-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pools start out empty and grow as necessary to a maximum size (default is 5, configure size with key 'pool' in your database configuration). If no connections are available, a thread will wait up to a 'wait_timeout' time (default is 5 seconds). Connections are verified and reset when checked out from the pool (usually upon first access to ActiveRecord::Base.connection), and returned back to the pool after each request. If you would like to use connection pools outside of ActionPack, there is an ActiveRecord::Base.connection_pool method that gives you access to the pool, and you can manually checkout/checkin connections, or supply a block to ActiveRecord::Base.connection_pool.with_connection which takes care of the checkout/checkin for you. [#936 state:resolved]
| * Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
| * Added optional rake doc:app TITLE environment parameterNathaniel Bibler2008-08-291-2/+2
| | | | | | | | | | | | [#939 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Remove call to active_record.allow_concurrency since it's deprecatedNick Sieger2008-08-291-1/+0
| |
* | Revert "Change all databases.rake adapter 'when' statements to use regexes."Nick Sieger2008-08-291-18/+18
| | | | | | | | This reverts commit 3d2512d38d2e28b3ea669139f7c7b0307522aa72.
* | Change all databases.rake adapter 'when' statements to use regexes.Nick2008-08-291-18/+18
|/ | | | | | This is more friendly to JRuby/JDBC adapters (with names like 'jdbcmysql') and leaves the door open to alternate implementations of adapters in the future.
* Formally deprecate the old secret key generatorMichael Koziarski2008-08-271-0/+1
|
* Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.Hongli Lai (Phusion2008-08-273-153/+8
| | | | | | | SecureRandom has a few minor security enhancements and can be used as a drop-in replacement Signed-off-by: Michael Koziarski <michael@koziarski.com> [#913 state:committed]
* Reverse the priority of the mysql commands in dbconsoleMichael Koziarski2008-08-241-1/+1
|
* Generate belongs_to association when generating a modelTarmo Tänav2008-08-232-1/+5
|
* Generate belongs_to associations automatically for 'references' types [#640 ↵Tarmo Tänav2008-08-231-0/+3
| | | | state:resolved]
* Always require activesupport, even if its constant already existsTarmo Tänav2008-08-231-0/+1
| | | | | | | | | | This is needed because the existance of the ActiveSupport constant by itself does not guarantee that the whole library has been loaded. Also load the StringInquirer in the Rails#env method as the it might be called inside the initializer block before activesupport itself has been loaded.
* Fixed that rake doc:plugins to uses UTF-8. [#573 state:resolved]Chris Lloyd2008-08-221-0/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Initializer to sort files before eager loading. [#859 state:resolved]Tom Ward2008-08-221-1/+1
| | | | | | | | Changed Rails::Initializer to sort files before eager loading them. This ensures that any files in a parent directory will be loaded before files in a subdirectory of the 'same' name. i.e. zoo.rb will be loaded before zoo/reptile_house.rb Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Touch file with git revision when freezing edgeJoshua Peek2008-08-191-0/+5
|
* Removed config.ru template from app generatorJoshua Peek2008-08-191-1/+0
|
* Added rack logger middleware that tails the environment logJoshua Peek2008-08-192-0/+29
|
* Consistently use the framework's configured logger and avoid reverting to ↵Joshua Peek2008-08-182-8/+11
| | | | RAILS_DEFAULT_LOGGER unless necessary.
* rake db:fixtures:load and db:fixtures:identify now accept a FIXTURES_PATH ↵Matthew Rudy Jacobs2008-08-091-4/+5
| | | | | | | option eg. "rake db:fixtures:load FIXTURES_PATH=spec/fixtures" Signed-off-by: Michael Koziarski <michael@koziarski.com> [#792 state:committed]
* Added file name information for errors and exceptions in script/runnnerDaniel Rodríguez Troitiño2008-08-081-1/+1
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Make sure ActionView is loaded inorder to build view pathsJoshua Peek2008-08-061-6/+10
|
* MemoryStore is the only "unsafe" store. Make it threadsafe by default.Joshua Peek2008-08-061-1/+0
|
* Added config.threadsafe! to toggle allow concurrency settings and disable ↵Joshua Peek2008-08-041-0/+12
| | | | the dependency loader
* Make requiring gems optional.Ben Sandofsky2008-08-042-2/+6
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#743 state:resolved]
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2008-07-315-5/+7
|\
| * Use "/usr/bin/env ruby" instead of "/usr/local/bin/ruby"Tarmo Tänav2008-07-312-4/+4
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Fix file permissionsTarmo Tänav2008-07-313-0/+0
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Turn cache_classes on by default [#645 state:resolved]Joshua Peek2008-07-311-1/+1
| |
| * Ensure dbconsole includes the -p parameter to mysql as intendedMichael Koziarski2008-07-311-0/+2
| |
* | load_application_classes requires files relative to the load path and ↵Jeremy Kemper2008-07-311-2/+3
|/ | | | without .rb extension, including .rb files in subdirectories
* Initializer requires ERB explicitly instead of assuming Action Pack loaded ↵José Valim2008-07-301-0/+1
| | | | it. [#722 state:resolved]
* Initializer skips prepare_dispatcher if Action Controller isn't in use. ↵José Valim2008-07-301-0/+1
| | | | [#721 state:resolved]
* Remove incomplete non-blocking logger functionalityMichael Koziarski2008-07-291-1/+0
|
* Check for ActionMailer and ActionController before attempting to eager load ↵Sam Granieri2008-07-241-2/+2
| | | | | | their view paths Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added config.dependency_loading to enable or disable the dependency loader ↵Joshua Peek2008-07-241-3/+24
| | | | after initialization
* Load view path cache after plugins and gems.Joshua Peek2008-07-231-3/+10
|
* Make script/plugin work with svn+ssh urls. [#662 state:resolved]Miles Georgi2008-07-221-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>