diff options
| author | Jack Nagel | 2013-03-28 17:37:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-28 17:37:29 -0500 |
| commit | f0db242591d17f374fe6ccae2ceef5583357ca62 (patch) | |
| tree | 732dd42f175823606f2dee1c4f4de3f1c36542ec /Library | |
| parent | d994c6cdda61494c8e296f7ad491e986145db076 (diff) | |
| download | brew-f0db242591d17f374fe6ccae2ceef5583357ca62.tar.bz2 | |
extend/fileutils: suppress discarded method definition warnings
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/fileutils.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index 30ab584c3..6c2529c50 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -43,6 +43,7 @@ module FileUtils extend self # 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 @@ module FileUtils extend self system RUBY_BIN/'rake', *args end + alias_method :old_ruby, :ruby if method_defined?(:ruby) def ruby *args system RUBY_PATH, *args end |
