extend/fileutils: suppress discarded method definition warnings
This commit is contained in:
parent
d994c6cdda
commit
f0db242591
@ -43,6 +43,7 @@ module FileUtils extend self
|
|||||||
# The monkey-patched method here is copied directly from upstream fix.
|
# The monkey-patched method here is copied directly from upstream fix.
|
||||||
if RUBY_VERSION < "1.9.3" or RUBY_PATCHLEVEL < 195
|
if RUBY_VERSION < "1.9.3" or RUBY_PATCHLEVEL < 195
|
||||||
class Entry_
|
class Entry_
|
||||||
|
alias_method :old_copy_metadata, :copy_metadata
|
||||||
def copy_metadata(path)
|
def copy_metadata(path)
|
||||||
st = lstat()
|
st = lstat()
|
||||||
if !st.symlink?
|
if !st.symlink?
|
||||||
@ -85,6 +86,7 @@ module FileUtils extend self
|
|||||||
system RUBY_BIN/'rake', *args
|
system RUBY_BIN/'rake', *args
|
||||||
end
|
end
|
||||||
|
|
||||||
|
alias_method :old_ruby, :ruby if method_defined?(:ruby)
|
||||||
def ruby *args
|
def ruby *args
|
||||||
system RUBY_PATH, *args
|
system RUBY_PATH, *args
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user