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

ruby-changes:41766

From: nobu <ko1@a...>
Date: Tue, 16 Feb 2016 09:51:33 +0900 (JST)
Subject: [ruby-changes:41766] nobu:r53840 (trunk): rbinstall.rb: drive letter in without_destdir

nobu	2016-02-16 09:51:48 +0900 (Tue, 16 Feb 2016)

  New Revision: 53840

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

  Log:
    rbinstall.rb: drive letter in without_destdir
    
    * tool/rbinstall.rb (without_destdir): just strip a drive letter
      which is prepended by with_destdir.
      pointed out by @DavidEGrayson.
      https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763

  Modified files:
    trunk/ChangeLog
    trunk/tool/rbinstall.rb
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 53839)
+++ tool/rbinstall.rb	(revision 53840)
@@ -282,7 +282,6 @@ end https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L282
 
 def without_destdir(dir)
   return dir if !$destdir or $destdir.empty?
-  dir = dir.sub(/\A\w:/, '') if File::PATH_SEPARATOR == ';'
   dir.start_with?($destdir) ? dir[$destdir.size..-1] : dir
 end
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53839)
+++ ChangeLog	(revision 53840)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Feb 16 09:51:20 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/rbinstall.rb (without_destdir): just strip a drive letter
+	  which is prepended by with_destdir.
+	  pointed out by @DavidEGrayson.
+	  https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763
+
 Tue Feb 16 04:42:13 2016  NARUSE, Yui  <naruse@r...>
 
 	* insns.def (opt_plus): simply use LONG2NUM() instead of wrongly

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

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