1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

22 commits

Author SHA1 Message Date
Xavier Noria
69ab3eb57e applies new string literal convention in railties/lib
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:15:47 +02:00
Scott Bronson
ba2aea9807 revert dev:cache to rake task, fixes #23410 2016-02-07 14:32:43 -08:00
Chuck Callebs
2ddb599710 Add Rails command infrastructure and encapsulate development caching 2015-12-04 13:15:43 -05:00
Ersin Akinci
38f28f7704 Only load statistics.rake once from inside engine
When running rake stats from inside an engine,
the engine's Rakefile attempts to reload
statistics.rake after the test app loads it, which
results in STATS_DIRECTORIES being redefined and
an annoying warning. This patch skips loading
statistics.rake from tasks.rb if rake's current
scope isn't empty, i.e. if we are running from
inside an engine and not the test app dir or a
normal app.

Fixes #20510.
2015-08-06 17:34:29 -03:00
Chuck Callebs
a01e58afd9 Add rake dev:cache task to enable dev mode caching.
Taken from @Sonopa's commits on PR #19091.

Add support for dev caching via "rails s" flags.

Implement suggestions from @kaspth.

Remove temporary cache file if server does not have flags.

Break at 80 characters in railties/CHANGELOG.md

Remove ability to disable cache based on server options.

Add more comprehensive options: --dev-caching / --no-dev-caching
2015-08-04 23:41:23 -04:00
Godfrey Chan
9e80c29cd5 rake initializer -> rake initializers
Also edited the copy to be more consistent with `rake routes`.

See #19323.
2015-03-20 15:51:01 -07:00
Naoto Kaneko
baa9ffb822 Add rake initializer
This task prints out initializers for an application. It is useful to
develop a rubygem which involves the initialization process.
2015-03-14 01:41:21 +09:00
Hyonjee Joo
b181297ad7 Created rake restart task.
Fixes #18876. Rake restart touches `tmp/restart.txt` to restart
application on next request. Updated tests and documentation
accordingly.
2015-02-26 15:26:59 -05:00
Xavier Noria
bde5f345de Remove reference to the now done documentation.rake 2015-02-06 21:25:09 +01:00
Akira Matsuda
ae54cb29d4 require 'rake' before requiring Rake tasks
Without this,
% rails r "require 'rails/tasks'"
would cause a NoMethodError: undefined method `desc' for main:Object
2014-12-03 06:28:09 +09:00
Tyler Rick
9affba83f5 Remove $VERBOSE = nil from tasks.rb
Permanently setting $VERBOSE to nil causes unwanted side effects (warnings generated by app code are
silenced when triggered by a rake task but visible otherwise). silence_warnings {} would be safer to
use here since it resets $VERBOSE back to what it was when the block finishes.
2013-07-25 11:54:24 -07:00
Prathamesh Sonpatki
f8a3dda6ce Fxied some typos 2013-05-18 19:23:30 +05:30
José Valim
c690b7124d [IMPORTANT] Make "sprockets/railtie" require explicit.
This makes "sprockets/railtie" explicit. This means that sprockets will
be loaded when you require "rails/all". If you are not using requiring
"rails/all", you need to manually load it with all other framework
railties.

In order to be complete, this commit also adds --skip-sprockets to
the rails generator.
2011-06-29 09:41:16 -03:00
José Valim
afc828828f Remove the ability for engines to serve assets from the public directory. 2011-04-15 19:57:52 +02:00
Joshua Peek
10c7e61825 Need to load assets task file 2011-03-21 18:09:23 -05:00
Piotr Sarnacki
24d2d6726e Added task for creating symlinks to engines' public directories
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-06 14:38:36 +02:00
Carlhuda
c7c3eac762 Test::Unit Railtie 2010-01-28 09:55:29 -08:00
Carl Lerche
49c800b6bd Move the ActiveRecord related rake tasks into the AR gem. 2009-12-28 17:53:05 -08:00
Carl Lerche
34eac1cf1c Load application specific rake tasks in the application object 2009-11-25 14:29:28 -08:00
Carl Lerche
e1fdc8bba3 Remove config.gem in favor of using the bundler. This makes config/boot.rb obsolete.
The bundler library is at: http://github.com/wycats/bundler/ and is a rubygem.
2009-10-16 18:10:52 -07:00
Carl Lerche
2110a524a4 Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the application's object root) 2009-10-16 12:51:02 -07:00
Yehuda Katz + Carl Lerche
f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00
Renamed from railties/lib/tasks/rails.rb (Browse further)