ruby-changes:33799
From: ayumin <ko1@a...>
Date: Fri, 9 May 2014 03:32:31 +0900 (JST)
Subject: [ruby-changes:33799] ayumin:r45880 (trunk): * lib/fileutils.rb: show fileutils require at top.
ayumin 2014-05-09 03:32:24 +0900 (Fri, 09 May 2014) New Revision: 45880 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45880 Log: * lib/fileutils.rb: show fileutils require at top. Modified files: trunk/ChangeLog trunk/lib/fileutils.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 45879) +++ ChangeLog (revision 45880) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri May 9 03:28:04 2014 Ayumu AIZAWA <ayumu.aizawa@g...> + + * lib/fileutils.rb: show fileutils require at top. + patched from Richard Schneeman. [Fixes GH-604] + Fri May 9 03:07:09 2014 Ayumu AIZAWA <ayumu.aizawa@g...> * lib/prime.rb (Prime#prime?): negative numbers can't be primes Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 45879) +++ lib/fileutils.rb (revision 45880) @@ -12,35 +12,37 @@ https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L12 # # === Module Functions # -# cd(dir, options) -# cd(dir, options) {|dir| .... } -# pwd() -# mkdir(dir, options) -# mkdir(list, options) -# mkdir_p(dir, options) -# mkdir_p(list, options) -# rmdir(dir, options) -# rmdir(list, options) -# ln(old, new, options) -# ln(list, destdir, options) -# ln_s(old, new, options) -# ln_s(list, destdir, options) -# ln_sf(src, dest, options) -# cp(src, dest, options) -# cp(list, dir, options) -# cp_r(src, dest, options) -# cp_r(list, dir, options) -# mv(src, dest, options) -# mv(list, dir, options) -# rm(list, options) -# rm_r(list, options) -# rm_rf(list, options) -# install(src, dest, mode = <src's>, options) -# chmod(mode, list, options) -# chmod_R(mode, list, options) -# chown(user, group, list, options) -# chown_R(user, group, list, options) -# touch(list, options) +# require 'fileutils' +# +# FileUtils.cd(dir, options) +# FileUtils.cd(dir, options) {|dir| .... } +# FileUtils.pwd() +# FileUtils.mkdir(dir, options) +# FileUtils.mkdir(list, options) +# FileUtils.mkdir_p(dir, options) +# FileUtils.mkdir_p(list, options) +# FileUtils.rmdir(dir, options) +# FileUtils.rmdir(list, options) +# FileUtils.ln(old, new, options) +# FileUtils.ln(list, destdir, options) +# FileUtils.ln_s(old, new, options) +# FileUtils.ln_s(list, destdir, options) +# FileUtils.ln_sf(src, dest, options) +# FileUtils.cp(src, dest, options) +# FileUtils.cp(list, dir, options) +# FileUtils.cp_r(src, dest, options) +# FileUtils.cp_r(list, dir, options) +# FileUtils.mv(src, dest, options) +# FileUtils.mv(list, dir, options) +# FileUtils.rm(list, options) +# FileUtils.rm_r(list, options) +# FileUtils.rm_rf(list, options) +# FileUtils.install(src, dest, mode = <src's>, options) +# FileUtils.chmod(mode, list, options) +# FileUtils.chmod_R(mode, list, options) +# FileUtils.chown(user, group, list, options) +# FileUtils.chown_R(user, group, list, options) +# FileUtils.touch(list, options) # # The <tt>options</tt> parameter is a hash of options, taken from the list # <tt>:force</tt>, <tt>:noop</tt>, <tt>:preserve</tt>, and <tt>:verbose</tt>. @@ -53,15 +55,15 @@ https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L55 # # There are some `low level' methods, which do not accept any option: # -# copy_entry(src, dest, preserve = false, dereference = false) -# copy_file(src, dest, preserve = false, dereference = true) -# copy_stream(srcstream, deststream) -# remove_entry(path, force = false) -# remove_entry_secure(path, force = false) -# remove_file(path, force = false) -# compare_file(path_a, path_b) -# compare_stream(stream_a, stream_b) -# uptodate?(file, cmp_list) +# FileUtils.copy_entry(src, dest, preserve = false, dereference = false) +# FileUtils.copy_file(src, dest, preserve = false, dereference = true) +# FileUtils.copy_stream(srcstream, deststream) +# FileUtils.remove_entry(path, force = false) +# FileUtils.remove_entry_secure(path, force = false) +# FileUtils.remove_file(path, force = false) +# FileUtils.compare_file(path_a, path_b) +# FileUtils.compare_stream(stream_a, stream_b) +# FileUtils.uptodate?(file, cmp_list) # # == module FileUtils::Verbose # -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/