Skip to content

Commit

Permalink
Make FileUtils extension available globally
Browse files Browse the repository at this point in the history
Now that we are monkeypatching copy_metadata, we should load our
extension up front for consistency.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
jacknagel committed Sep 27, 2012
1 parent 8d3ff56 commit 6ebcccd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Library/Homebrew/formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require 'formula_support'
require 'hardware'
require 'bottles'
require 'extend/fileutils'
require 'patches'
require 'compilers'
require 'build_environment'
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/global.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'extend/fileutils'
require 'extend/pathname'
require 'extend/ARGV'
require 'extend/string'
Expand Down Expand Up @@ -75,7 +76,6 @@ def mkpath

HOMEBREW_CURL_ARGS = '-qf#LA'

require 'fileutils'
module Homebrew extend self
include FileUtils

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/testing_env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
ABS__FILE__=File.expand_path(__FILE__)

$:.push(File.expand_path(__FILE__+'/../..'))
require 'extend/fileutils'
require 'extend/pathname'
require 'extend/string'
require 'exceptions'
Expand All @@ -31,7 +32,6 @@
# Test fixtures and files can be found relative to this path
TEST_FOLDER = Pathname.new(ABS__FILE__).parent.realpath

require 'fileutils'
module Homebrew extend self
include FileUtils
end
Expand Down

0 comments on commit 6ebcccd

Please sign in to comment.