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

ruby-changes:40204

From: hsbt <ko1@a...>
Date: Mon, 26 Oct 2015 17:30:42 +0900 (JST)
Subject: [ruby-changes:40204] hsbt:r52285 (trunk): * lib/fileutils.rb: rename tailing to trailing.

hsbt	2015-10-26 17:30:20 +0900 (Mon, 26 Oct 2015)

  New Revision: 52285

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

  Log:
    * lib/fileutils.rb: rename tailing to trailing.
      [Misc #11548]

  Modified files:
    trunk/ChangeLog
    trunk/lib/fileutils.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52284)
+++ ChangeLog	(revision 52285)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Oct 26 17:30:13 2015  Ryan Hosford  <tad.hosford@g...>
+
+	* lib/fileutils.rb: rename tailing to trailing.
+	  [Misc #11548]
+
 Mon Oct 26 17:11:53 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (call_op, call_op2): fix values on ripper.  [Feature #11537]
Index: lib/fileutils.rb
===================================================================
--- lib/fileutils.rb	(revision 52284)
+++ lib/fileutils.rb	(revision 52285)
@@ -156,10 +156,10 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L156
   end
   module_function :uptodate?
 
-  def remove_tailing_slash(dir)
+  def remove_trailing_slash(dir)
     dir == '/' ? dir : dir.chomp(?/)
   end
-  private_module_function :remove_tailing_slash
+  private_module_function :remove_trailing_slash
 
   #
   # Options: mode noop verbose
@@ -207,7 +207,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L207
     fu_output_message "mkdir -p #{options[:mode] ? ('-m %03o ' % options[:mode]) : ''}#{list.join ' '}" if options[:verbose]
     return *list if options[:noop]
 
-    list.map {|path| remove_tailing_slash(path)}.each do |path|
+    list.map {|path| remove_trailing_slash(path)}.each do |path|
       # optimize for the most common case
       begin
         fu_mkdir path, options[:mode]
@@ -244,7 +244,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L244
   OPT_TABLE['makedirs'] = [:mode, :noop, :verbose]
 
   def fu_mkdir(path, mode)   #:nodoc:
-    path = remove_tailing_slash(path)
+    path = remove_trailing_slash(path)
     if mode
       Dir.mkdir path, mode
       File.chmod mode, path
@@ -272,7 +272,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L272
     return if options[:noop]
     list.each do |dir|
       begin
-        Dir.rmdir(dir = remove_tailing_slash(dir))
+        Dir.rmdir(dir = remove_trailing_slash(dir))
         if parents
           until (parent = File.dirname(dir)) == '.' or parent == dir
             dir = parent

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

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