diff --git a/ChangeLog b/ChangeLog index 5492202994..14b5a93d74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 16 16:56:12 2012 Ayumu AIZAWA + + * lib/fileutils.rb (public): remove useless parameter. + patched by Oscar Del Ben.[Bug #6708][ruby-core:46256] + Mon Jul 16 15:37:56 2012 Tanaka Akira * bignum.c (rb_big_eq): use rb_big_float_cmp. diff --git a/lib/fileutils.rb b/lib/fileutils.rb index ff317ded21..1303b963fe 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -221,9 +221,7 @@ public # FileUtils.uptodate?('hello.o', %w(hello.c hello.h)) or \ # system 'make hello.o' # - def uptodate?(new, old_list, options = nil) - raise ArgumentError, 'uptodate? does not accept any option' if options - + def uptodate?(new, old_list) return false unless File.exist?(new) new_time = File.mtime(new) old_list.each do |old|