ruby-changes:39615
From: nobu <ko1@a...>
Date: Thu, 27 Aug 2015 01:05:52 +0900 (JST)
Subject: [ruby-changes:39615] nobu:r51696 (trunk): fileutils.rb: fix rename_cannot_overwrite_file
nobu 2015-08-27 01:05:39 +0900 (Thu, 27 Aug 2015) New Revision: 51696 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51696 Log: fileutils.rb: fix rename_cannot_overwrite_file * lib/fileutils.rb (rename_cannot_overwrite_file): File.rename on cygwin and mswin/mingw can overwrite the destination file. Modified files: trunk/lib/fileutils.rb Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 51695) +++ lib/fileutils.rb (revision 51696) @@ -547,7 +547,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L547 OPT_TABLE['move'] = [:force, :noop, :verbose, :secure] def rename_cannot_overwrite_file? #:nodoc: - /cygwin|mswin|mingw|bccwin|emx/ =~ RUBY_PLATFORM + /emx/ =~ RUBY_PLATFORM end private_module_function :rename_cannot_overwrite_file? -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/