diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fileutils.rb | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sat May 21 04:54:20 2011 Akinori MUSHA <knu@iDaemons.org> + + * lib/fileutils.rb (FileUtils#touch): Fix corrupted output. + ref [ruby-dev:43401] + Sat May 21 02:10:09 2011 Yukihiro Matsumoto <matz@ruby-lang.org> * re.h (RMATCH_REGS): parenthesize cast expression. suggested diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 9b759c079d..81aa1e8207 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -1027,7 +1027,7 @@ module FileUtils created = nocreate = options[:nocreate] t = options[:mtime] if options[:verbose] - fu_output_message "touch #{nocreate ? ' -c' : ''}#{t ? t.strftime(' -t %Y%m%d%H%M.%S') : ''}#{list.join ' '}" + fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime('-t %Y%m%d%H%M.%S ') : ''}#{list.join ' '}" end return if options[:noop] list.each do |path| @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2011-05-21" #define RUBY_VERSION_CODE 187 #define RUBY_RELEASE_CODE 20110521 -#define RUBY_PATCHLEVEL 342 +#define RUBY_PATCHLEVEL 343 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |