aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Support for custom annotations with rake notes:custom and DRY up the task ↵Michael Koziarski2008-07-031-11/+8
| | | | | | definition. e.g. rake notes:custom ANNOTATION=WTF
* Make rake test:uncommitted work with Git.Tim Pope2008-07-021-4/+10
| | | | | | Note : rake test:uncommitted is considering only unstaged files. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Rely on quieter db:test:load taskJeremy Kemper2008-06-171-3/+5
|
* Don't dump schema for every test run, just when migrations are runJeremy Kemper2008-06-161-3/+3
|
* Use test/performance/test_helper to do test setup then boost log level and ↵Jeremy Kemper2008-06-151-2/+2
| | | | turn on caching
* Performance: integration test benchmarking and profiling. [Jeremy Kemper]Jeremy Kemper2008-06-141-0/+15
|
* Ensure plugins' rake tasks are loaded before application's rake tasks. [#259 ↵Ryan Kinderman2008-06-051-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Consolidate error messages for missing gems, and skip them when running rake ↵rick2008-05-311-3/+9
| | | | gems:* tasks. [rick]
* Merge docrails.Pratik Naik2008-05-251-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use 'public' schema path when connecting to 'postgres' database. [#170 ↵Tarmo Tänav2008-05-131-2/+2
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use 'postgres' database instead of 'template1'Tarmo Tänav2008-05-131-2/+2
| | | | | | | | The 'postgres' database is meant for use by utilities and third party applications. CONNECT permission to the 'template1' database is usually only available to superusers which is why 'postgres' should be preferred as users whith "CREATE DATABASE" permissions are not neccessarily superusers.
* PostgreSQL: update rake tasks to use full settings from database.ymlPete Deffendol2008-05-041-8/+3
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* PostgreSQL: Connect to template1 database when creating or dropping dbPete Deffendol2008-05-041-2/+2
| | | | | | | | | | * The template1 database is always available on a PostgreSQL install * The previous behavior expected a database with the same name as the connecting user, which may not be available Signed-off-by: Michael Koziarski <michael@koziarski.com> [#38 state:resolved]
* rake time:zones:local finds correct base utc offset for zones in the ↵Geoffrey Buesing2008-04-121-1/+4
| | | | Southern Hemisphere
* Allow freezing to specific releases with rake rails:freeze:edge ↵Michael Koziarski2008-04-121-6/+9
| | | | RELEASE=1.2.0 per-release zip files are generated automatically by git-archive on dev.rubyonrails.org.
* Now that we have gems:unpack and gems:build allowing for integration ofDavid Dollar2008-04-111-0/+16
| | | | | | | | | | | | 100% of your gems into vendor/ it would be nice to have the ability to automatically unpack the full dependency tree of your specified gems. This patch adds the rake task gems:unpack:dependencies to do this. Usage: gems:unpack:dependencies # unpack all dependencies gems:unpack:dependencies GEM=foo # unpack all dependencies for gem foo
* rake rails:freeze:edge using ↵Jeremy Kemper2008-04-101-29/+19
| | | | http://dev.rubyonrails.org/archives/rails_edge.zip instead of Subversion
* Don't require rails/gem_builder during rails initialization, it's only ↵Rick Olson2008-04-081-4/+8
| | | | | | needed for the gems:build task. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for ↵Rick Olson2008-04-021-8/+15
| | | | | | native extensions. Closes #11513 [ddollar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL: use create_ and drop_database for rake tasks. Closes #9045 [ez, ↵Jeremy Kemper2008-04-011-18/+26
| | | | | | nicksieger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed charset/collation for rake db:create (closes #11331) [matt]David Heinemeier Hansson2008-03-311-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added config.gem for specifying which gems are required by the application, ↵Rick Olson2008-03-301-0/+31
| | | | | | as well as rake tasks for installing and freezing gems. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix new migration versionsDavid Heinemeier Hansson2008-03-281-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Switched to UTC-timebased version numbers for migrations and the schema. ↵David Heinemeier Hansson2008-03-281-2/+15
| | | | | | This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches (closes #11458) [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rails::Initializer#initialize_time_zone raises an error if value assigned to ↵Geoff Buesing2008-03-281-3/+4
| | | | | | config.time_zone is not recognized. Rake time zone tasks only require ActiveSupport instead of entire environment git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Adding rake tasks time:zones:all, time:zones:us and time:zones:local for ↵Geoff Buesing2008-03-221-0/+43
| | | | | | finding time zone names for config.time_zone option git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix database rake tasks to work with charset/collation and show proper error ↵Pratik Naik2008-03-101-3/+8
| | | | | | messages on failure. Closes #11301 [matt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear active connections before trying to drop the database. Allows db:drop ↵Michael Koziarski2008-02-151-0/+1
| | | | | | to work with posgresql. Closes #10559 [jqr] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tidy up description for the rake test task. Closes #10598 [akaspick]Michael Koziarski2008-01-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor check for local databases (closes #10539) [parcelbrat]David Heinemeier Hansson2008-01-031-11/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that rails:update is run when you do rails:freeze:edge to ensure you ↵David Heinemeier Hansson2008-01-031-0/+3
| | | | | | also get the latest JS and config files (closes #10565) [jeff] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah ↵Jeremy Kemper2008-01-021-3/+1
| | | | | | Chu Yeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SQLite: db:drop:all doesn't fail silently if the database is already open. ↵Jeremy Kemper2008-01-021-1/+1
| | | | | | Closes #10577. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compatibility. References #1689.Jeremy Kemper2007-12-173-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Turned on ActionView::Base.cache_template_loading by default in ↵David Heinemeier Hansson2007-12-161-5/+3
| | | | | | config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce (in /Users/jeremy/rails/git/trunk) to output a crytographically ↵Jeremy Kemper2007-12-151-1/+9
| | | | | | secure secret key for use with cookie sessions. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that local database creation should consider 127.0.0.1 local (closes ↵David Heinemeier Hansson2007-12-141-1/+1
| | | | | | #9026) [parcelbrat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added db:migrate:redo and db:migrate:reset for rerunning existing migrations ↵David Heinemeier Hansson2007-12-141-0/+3
| | | | | | #10431, (closes #10432) [matt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added db:migrate:redo for rerunning existing migrations (closes #10431) [matt]David Heinemeier Hansson2007-12-141-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't check for pending migrations if Active Record isn't loadedJeremy Kemper2007-12-091-7/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update rails:freeze:gems to work with RubyGems 0.9.5.Jeremy Kemper2007-12-091-7/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de