aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks/framework.rake
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary files to API-only Applications when `app:task` task executedyuuji.yaginuma2017-03-241-1/+1
|
* remove unused requiresyuuji.yaginuma2017-01-121-2/+0
| | | | Related to 0129ca2eeb6d5b2ea8c6e6be38eeb770fe45f1fa, f7782812f7e727178e4a743aa2874c078b722eef, f9ed83321ac1d1902578a0aacdfe55d3db754219
* Remove deprecated tasks in railtiesRafael Mendonça França2017-01-031-12/+0
|
* applies new string literal convention in railties/libXavier Noria2016-08-061-5/+5
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Display link to Rails upgrade guide at the end of `rails app:update` task.Prathamesh Sonpatki2016-06-301-1/+5
| | | | | - This will nudge people in the direction of going through upgrade guides.
* Remove FORCE option as it was only needed for testsPrathamesh Sonpatki2016-06-071-1/+1
| | | | - Adjusted tests instead.
* Fix minor regression about old apps not getting per_form_csrf and ↵Prathamesh Sonpatki2016-06-041-1/+1
| | | | | | | | | | | | request_forgery_protection configs - Earlier per_form_csrf_tokens and request_forgery_protection config files were generated for old apps upgraded to Rails 5. - But when we collapsed all initializers into one file, the entire file does not get created for old apps. - This commit fixes it and also changes values for all new defaults for old apps so that they will not break. - Also added a test for `rails app:update`.
* issue FileUtils commands directly in Rake tasksXavier Noria2016-04-111-3/+2
| | | | | Rake includes (an extended version of) FileUtils in tasks. It is more idiomatic that they use this provided interface.
* revises fileutils dependencies in railtiesXavier Noria2016-04-111-0/+1
| | | | | | With the exception of what is loaded in active_support/rails, each file is responsible for its own dependencies. You cannot rely on runtime order of execution.
* Merge pull request #23940 from prathamesh-sonpatki/rm-with-dispatchersRafael França2016-03-091-2/+3
|\ | | | | Remove passing `with_dispatchers` to AppGenerator
| * Remove passing `with_dispatchers` to AppGeneratorPrathamesh Sonpatki2016-03-091-2/+3
| | | | | | | | | | | | | | - While working on https://github.com/rails/rails/pull/22790 I found out that we pass `with_dispatchers: true` but it's not used at all by Rails. - We were passing `with_dispatchers: true` in few tests too but again it's not used by Rails.
* | Update deprecation message shown when tasks from rails namespace are runPrathamesh Sonpatki2016-02-271-2/+2
|/
* The tasks in the rails task namespace is deprecated in favor of app namespace.Ryo Hashimoto2016-02-261-1/+15
| | | | (e.g. `rails:update` and `rails:template` tasks is renamed to `app:update` and `app:template`.)
* Pass api only option to rails rails:update task to update only based on API.Vipul A M2016-02-041-1/+1
| | | | Fixes #23470
* Merge pull request #20326 from hderms/dh/fix_task_bugRafael Mendonça França2015-05-271-16/+18
|\ | | | | | | Fix rake method definition leaking onto Object
| * add fixed fileDermot Haughey2015-05-271-16/+20
|/ | | | | | add framework_test add another test
* Generate the cookies_serializer configuration with :marshal when upgradingRafael Mendonça França2014-05-161-1/+1
| | | | | | | | | | | We were generating this configuration with :json what may break applications upgrating from Rails 4.0-. Now we always generate with a safer value and people is free to choose hybrid if they want. We don't generate with hybrid by default because there are some cases that can fail. These cases are explained on the upgrading guide.
* Make the rails:template rake task load initializersRobin Dupret2014-03-081-1/+1
| | | | | | | | | | | Templates could rely on irregular inflections or external libraries for instance so we should load the application's initializers when running the rails:template task. The introducing commit of this feature is f7f11361 ; the initializers have never been loaded invoking this task. Fixes #12133.
* remove railties changes. fixes #14054Aaron Patterson2014-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 96991e8e919edfb20cc4120bca4e36ed51175d57 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:29:24 2014 -0800 Revert "gems can be added or skipped from the template" This reverts commit 8beb42cfbc41753ae4dbb91e16abcd1fb7d00356. Conflicts: railties/lib/rails/generators/rails/app/app_generator.rb railties/test/generators/app_generator_test.rb commit 35599c0e657245ef14ac0f28c9189ad16acf40e6 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:26:53 2014 -0800 Revert "oops, template replay needs to happen after bundle. :orz:" This reverts commit 9104702be61253f9448ca070a22fc86bb4299555. Conflicts: railties/lib/rails/generators/rails/app/app_generator.rb commit f519c3902c313db8e906a49251c91643b8e6499e Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:51 2014 -0800 Revert "only ask for these ivars if the target responds to them" This reverts commit 656d412546cd97d5660c634c2a41c799d3f9e211. commit aa524a9428e3e4c45fe221f10a66a08efb827ab5 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:39 2014 -0800 Revert "refactor generator tests to use block form of Tempfile" This reverts commit 65251820ef0ab7f3cffb38130de3dd41af8d72be. commit 7d3740549fa4dfa62e3761f8d4bc6d6d441256e7 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:25 2014 -0800 Revert "add a more restricted codepath for templates fixes #13390" This reverts commit 2875b4a66e38e4333da887a4afbed33358999298. commit 525df0af1001918986cdfce59539fd2d52c4f32c Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Fri Feb 14 11:25:11 2014 -0800 Revert "add a send so `apply` can be called. Fixes #13510" This reverts commit c5034d60dba0cd31a6a8c612ee35d63b8127793a.
* add a send so `apply` can be called. Fixes #13510Aaron Patterson2014-02-111-1/+1
| | | | | | | THIS IS A HUGE HACK. Thor does not allow us to define public methods without turning them in to "thor tasks". That means we cannot subclass the `apply` method and make it public, so we have to make the method private and call `send` on it.
* More Warnings removed for ruby trunkArun Agrawal2013-11-011-1/+1
| | | | Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
* Remove update:application_controller rake task.Josef Šimánek2013-07-131-12/+2
|
* valid_app_const? -> valid_const?Martin Schürrer2013-06-151-1/+1
|
* Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-061-5/+5
| | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-5/+5
|
* fix stylesheet template dirSugino Yasuhiro2012-06-091-1/+1
|
* Improve rails:template undefined LOCATION variable error message fixedRaghunadh2011-07-231-3/+3
|
* remove update:javascripts rake taskAkira Matsuda2011-05-131-7/+2
| | | | because javascript libraries are not bundled anymore, and create_javascript_files generator was already removed
* -j parameter added to rails new command.siong19872010-10-111-1/+1
| | | | | | | | Now you can start your apps with jquery with rails new myapp -j jquery, the default is still prototype [#5613 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove deprecation warnings in railtiesCarlos Antonio da Silva2010-09-061-17/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix app generator so that it uses the right app_name during rails:update ↵rohit2010-07-271-1/+1
| | | | | | rake task. [#5207 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Cut down on tasks shown in rake -TDavid Heinemeier Hansson2010-06-091-9/+9
|
* Removing Metal from Rails 3.wycats2010-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | If you have existing Metals, you have a few options: * if your metal behaves like a middleware, add it to the middleware stack via config.middleware.use. You can use methods on the middleware stack to control exactly where it should go * if it behaves like a Rack endpoint, you can link to it in the router. This will result in more optimal routing time, and allows you to remove code in your endpoint that matches specific URLs in favor of the more powerful handling in the router itself. For the future, you can use ActionController::Metal to get a very fast controller with the ability to opt-in to specific controller features without paying the penalty of the full controller stack. Since Rails 3 is closer to Rack, the Metal abstraction is no longer needed.
* Added Rake task rails:templates:copy to copy templates for customization ↵Jeroen van Dijk + Rodrigo Urubatan2010-05-151-0/+22
| | | | | | [#4574 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Do not check for a valid const name in Rails 3.0 applications. [#4200 ↵José Valim2010-03-271-1/+2
| | | | state:resolved]
* rake tasks should use the new app generator path [#4257 state:resolved]Sebastian Martinez2010-03-231-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deprecated framework rake tasks should exit with non-zero exit code [#4177 ↵Chris Griego2010-03-161-3/+3
| | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Also check if application is a valid constant in rake rails:update.José Valim2010-02-211-5/+11
|
* Deprecated freeze rake tasks and cleaned up annotations.rakeMikel Lindsaar2010-02-031-68/+7
|
* Rake tasks should load generators from new paths.José Valim2010-01-181-2/+2
|
* Fixes rake:template task [#3714 status:resolved]Rizwan Reza2010-01-171-2/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* rails:update:configs updates boot.rb and the rest of config/*Jeremy Kemper2009-12-011-0/+1
|
* Reinstate rails:update:configs task removed in e1fdc8bJeremy Kemper2009-12-011-0/+5
|
* Fix rails:update:scriptsJeremy Kemper2009-12-011-1/+1
|
* Remove config.gem in favor of using the bundler. This makes config/boot.rb ↵Carl Lerche2009-10-161-5/+0
| | | | | | obsolete. The bundler library is at: http://github.com/wycats/bundler/ and is a rubygem.
* Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the ↵Carl Lerche2009-10-161-4/+4
| | | | application's object root)
* Yank FCGI Handler from coreJoshua Peek2009-10-051-5/+0
| | | http://github.com/rails/fcgi_handler
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+133