Skip to content
Browse files

extend/fileutils: suppress discarded method definition warnings

  • Loading branch information...
1 parent 1e9fb46 commit 6078e757bb2b473bb8cc25cb5eaf53325e7db1d2 @jacknagel jacknagel committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 Library/Homebrew/extend/fileutils.rb
View
2 Library/Homebrew/extend/fileutils.rb
@@ -43,6 +43,7 @@ def mkdir name, &block
# The monkey-patched method here is copied directly from upstream fix.
if RUBY_VERSION < "1.9.3" or RUBY_PATCHLEVEL < 195
class Entry_
+ alias_method :old_copy_metadata, :copy_metadata
def copy_metadata(path)
st = lstat()
if !st.symlink?
@@ -85,6 +86,7 @@ def rake *args
system RUBY_BIN/'rake', *args
end
+ alias_method :old_ruby, :ruby if method_defined?(:ruby)
def ruby *args
system RUBY_PATH, *args
end

0 comments on commit 6078e75

Please sign in to comment.
Something went wrong with that request. Please try again.