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

revises fileutils dependencies in railties

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.
This commit is contained in:
Xavier Noria 2016-04-11 12:20:53 +02:00
parent b8d1dbf993
commit 0caf8ffd7d
8 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,3 @@
require 'fileutils'
require 'yaml'
require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/object/blank'

View file

@ -1,6 +1,7 @@
require "active_support/notifications"
require "active_support/dependencies"
require "active_support/descendants_tracker"
require 'fileutils'
require 'active_support/notifications'
require 'active_support/dependencies'
require 'active_support/descendants_tracker'
module Rails
class Application

View file

@ -1,3 +1,5 @@
require 'fileutils'
module Rails
module DevCaching # :nodoc:
class << self

View file

@ -1,3 +1,4 @@
require 'fileutils'
require 'thor/actions'
module Rails

View file

@ -1,3 +1,4 @@
require 'fileutils'
require 'digest/md5'
require 'active_support/core_ext/string/strip'
require 'rails/version' unless defined?(Rails::VERSION)

View file

@ -1,3 +1,4 @@
require 'fileutils'
require 'active_support/deprecation'
namespace :app do

View file

@ -1,3 +1,5 @@
require 'fileutils'
desc "Restart app by touching tmp/restart.txt"
task :restart do
FileUtils.mkdir_p('tmp')

View file

@ -1,3 +1,5 @@
require 'fileutils'
namespace :tmp do
desc "Clear cache and socket files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear)"
task clear: ["tmp:cache:clear", "tmp:sockets:clear"]