[前][次][番号順一覧][スレッド一覧]

ruby-changes:29893

From: nagachika <ko1@a...>
Date: Sat, 13 Jul 2013 23:28:15 +0900 (JST)
Subject: [ruby-changes:29893] nagachika:r41945 (ruby_2_0_0): merge revision(s) 41851:

nagachika	2013-07-13 23:27:32 +0900 (Sat, 13 Jul 2013)

  New Revision: 41945

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41945

  Log:
    merge revision(s) 41851:
    
    * lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): If user
      and group are both nil, print ":".

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/lib/fileutils.rb
    branches/ruby_2_0_0/version.h

Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 41944)
+++ ruby_2_0_0/ChangeLog	(revision 41945)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Sat Jul 13 23:27:12 2013  Akinori MUSHA  <knu@i...>
+
+	* lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): If user
+	  and group are both nil, print ":".
+
 Sat Jul 13 23:16:49 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (bigrsh_bang): Fix bignum digits overrun.
Index: ruby_2_0_0/lib/fileutils.rb
===================================================================
--- ruby_2_0_0/lib/fileutils.rb	(revision 41944)
+++ ruby_2_0_0/lib/fileutils.rb	(revision 41945)
@@ -1022,8 +1022,8 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/lib/fileutils.rb#L1022
   def chown(user, group, list, options = {})
     fu_check_options options, OPT_TABLE['chown']
     list = fu_list(list)
-    fu_output_message sprintf('chown %s%s',
-                              (group ? [user,group].join(':') : user) + ' ',
+    fu_output_message sprintf('chown %s %s',
+                              (group ? "#{user}:#{group}" : user || ':'),
                               list.join(' ')) if options[:verbose]
     return if options[:noop]
     uid = fu_get_uid(user)
@@ -1051,9 +1051,9 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/lib/fileutils.rb#L1051
   def chown_R(user, group, list, options = {})
     fu_check_options options, OPT_TABLE['chown_R']
     list = fu_list(list)
-    fu_output_message sprintf('chown -R%s %s%s',
+    fu_output_message sprintf('chown -R%s %s %s',
                               (options[:force] ? 'f' : ''),
-                              (group ? [user,group].join(':') : user) + ' ',
+                              (group ? "#{user}:#{group}" : user || ':'),
                               list.join(' ')) if options[:verbose]
     return if options[:noop]
     uid = fu_get_uid(user)
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 41944)
+++ ruby_2_0_0/version.h	(revision 41945)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2013-07-13"
-#define RUBY_PATCHLEVEL 258
+#define RUBY_PATCHLEVEL 259
 
 #define RUBY_RELEASE_YEAR 2013
 #define RUBY_RELEASE_MONTH 7

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r41851


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]