aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Fix several issues with the 2.3.2 gem loader.Matt Jones2009-06-091-7/+7
| | | | | | | | | | | | | | | | | | Incorporates the following: - migrates back small change to gems:build:force from bfc1609a501fc3ed442685819de5bcdb5fbada1c to finish closing #2266. - unrolls to_proc calls in gems.rake, to match the change in master. - fixes #2722 by passing the options hash to dependencies during build. (includes a test) - fixes #2721 by loading the specification directly in from_directory_name. Adds an option to opt-out of specification loading when needed (in gems:refresh_specs, for instance). Includes tests. - fixes #2679 by refreshing specs for all frozen gems rather than just gems loaded from the environment. - fixes #2678 by passing the options hash to dependencies during unpack. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Updated the db:structure:dump task to properly format the pgdump command ↵Jeff Dean2009-06-011-1/+3
| | | | | | | when you have multiple schemas in your schema search path. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2695 state:committed]
* better db:create for mysql - do not assume root userVladimir Dobriakov2009-06-011-3/+19
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1459 state:committed]
* Remove 'core' fluff. Hookable ActiveSupport.load_all!Jeremy Kemper2009-05-201-2/+2
|
* Get Railties passing againYehuda Katz2009-05-161-4/+4
|
* Added db/seeds.rb as a default file for storing seed data for the database. ↵David Heinemeier Hansson2009-05-111-2/+11
| | | | Can be loaded with rake db:seed (or created alongside the db with db:setup). (This is also known as the "Stop Putting Gawd Damn Seed Data In Your Migrations" feature) [DHH]
* Remove stray call to gems:unpack in gems:build:forceMatt Jones2009-05-061-2/+1
| | | | | | [#2266 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Attempt to deal with more cases of gems with native components.David Dollar2009-04-281-2/+16
| | | | | | | | | | | | | | | | | | | This commit adds a rudimentary check for 'unbuilt' gems, so that we can abort the application load if there are any gems that have native components that have not yet been built. The rake task gems:build has now only builds 'unbuilt' gems as a result. The rake task gems:build:force has been added to deal with cases of incomplete builds, or any case where you need to force the build of all of your gems. Changes the gems:build task to get its gem list by parsing directory entries in vendor/gems, which sidesteps the chicken/egg issues involved with having a gem unpacked into vendor/gems without before its native bits are compiled. [#2266 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix missing core extension dependenciesJeremy Kemper2009-04-281-1/+5
|
* Update rails:template task to expand file paths [#2528 state:resolved]Stephen Celis2009-04-211-1/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Makes the gem system understand development vs. runtime dependencies [#2195 ↵David Dollar2009-03-131-46/+32
| | | | | | | | | | | | | | | | state:resolved] The patch also fixes: * Fixes the chicken/egg problem present in the current gem system when gems are defined in the config that are not yet installed. * Remove the need to have hoe as a dependency of your production app. * Makes the gem 'unpacking' system a lot less fragile. Signed-off-by: Matt Jones <al2o3cr@gmail.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Display gem dependencies correctly and unpack exactly once [#2097 ↵Matt Jones2009-03-011-4/+3
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Force all internal calls to Array#to_sentence to use English [#2010 ↵David Heinemeier Hansson2009-02-271-1/+1
| | | | state:resolved]
* break out of initializer early if gems aren't loaded [#1750 state:resolved]Matt Jones2009-02-201-2/+2
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge docrails along with the new guides and guides generation codePratik Naik2009-02-061-9/+2
|
* re-enable db:schema:dump so db:migrate:redo dumps the schema after migrating ↵Will Bryant2009-02-061-0/+1
| | | | | | | back up Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1412 state:committed]
* Disable eager loading for all rake tasks [#802 state:resolved]Joshua Peek2009-01-272-2/+3
|
* Correct description of tmp:create task [#1607 state:resolved] [Roderick van ↵Pratik Naik2008-12-211-2/+2
| | | | Domburg]
* Move gaint lock into middlewareJoshua Peek2008-12-181-1/+1
|
* Switch to Rack based session stores.Joshua Peek2008-12-151-1/+1
|
* Add a rake task to apply a template to an existing application.Pratik Naik2008-12-071-0/+6
| | | | Example : rake rails:template LOCATION=~/template.rb
* Merge with docrailsPratik Naik2008-12-071-1/+1
|
* establish mysql connection before dropping databaseAliaksey Kandratsenka2008-12-011-0/+1
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#63 state:committed]
* Manually load the DB config rather than firing the whole initializer [Gerrit ↵Michael Koziarski2008-12-012-4/+15
| | | | Kaiser]
* Add internal middleware stack to DispatcherJoshua Peek2008-12-011-0/+7
| | | | config.middleware.use Rack::Cache
* Generate rackup dispatcher with rails:update:generate_dispatchersJoshua Peek2008-12-011-0/+1
|
* Really remove components.Jeremy Kemper2008-11-241-1/+0
|
* Add a rake task to generate dispatchers : rake rails:generate_dispatchersPratik Naik2008-11-241-0/+8
|
* Added rake rails:update:application_controller to renamed application.rb to ↵David Heinemeier Hansson2008-11-231-1/+11
| | | | application_controller.rb -- included in rake rails:update so upgrading to 2.3 will automatically trigger it [#1439 state:committed] (kastner)
* Add helper test generators [#1199 state:resolved]Eugene Bolshakov2008-11-171-4/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Remove deprecated Gem.manage_gemsJeremy Kemper2008-11-121-1/+0
|
* Make refresh_specs more resilient. Always add vendor/gems to gem search ↵Matt Jones2008-11-011-1/+2
| | | | | | path. Use Gem.clear_paths to ensure we get a current searcher. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Merge with docrailsPratik Naik2008-10-221-1/+1
|
* Merge with docrails. Also add a rake task to generate guides in your rails ↵Pratik Naik2008-10-211-0/+13
| | | | | | | | application : rake doc:guides The rake task will generate guides inside doc/guides directory of your application. Open index.html to browse.
* config.gem: Fix typo in unpack, skip dependencies on unloaded gems, and ↵Matt Jones2008-10-201-1/+2
| | | | | | silence spec warnings on refresh. [#1128] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make VendorGemSourceIndex handle broken/missing specs generated by previous ↵Matt Jones2008-10-131-0/+10
| | | | | | versions. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Merge docrailsPratik Naik2008-10-051-0/+1
|
* Fix a number of errors in the config.gem mechanism.Matt Jones2008-10-051-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* 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]
* 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>
* 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>
* Added optional rake doc:app TITLE environment parameterNathaniel Bibler2008-08-291-2/+2
| | | | | | [#939 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.Hongli Lai (Phusion2008-08-271-4/+3
| | | | | | | 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]
* 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>
* Touch file with git revision when freezing edgeJoshua Peek2008-08-191-0/+5
|
* 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 db:charset support to PostgreSQL. [#556 state:resolved]Sebastian A. Espindola2008-07-141-0/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Enable loading fixtures from arbitrary locations. [#586 state:resolved]Jacek Becela2008-07-141-4/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use full path in database tasks so commands will work outside of Rails root ↵Tapajós2008-07-131-10/+10
| | | | | | [#612 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Use ActiveSupport::TimeZone in time:zones rake tasksPratik Naik2008-07-041-1/+1
|