ruby-changes:26787
From: nobu <ko1@a...>
Date: Tue, 15 Jan 2013 23:12:47 +0900 (JST)
Subject: [ruby-changes:26787] nobu:r38839 (trunk): vpath.rb: separator for make
nobu 2013-01-15 23:12:36 +0900 (Tue, 15 Jan 2013) New Revision: 38839 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38839 Log: vpath.rb: separator for make * tool/vpath.rb (VPath#list): default separator to PATH_SEPARATOR from configure.in for make, not same name constant of File for use in ruby. Modified files: trunk/ChangeLog trunk/tool/vpath.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38838) +++ ChangeLog (revision 38839) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jan 15 23:12:34 2013 Nobuyoshi Nakada <nobu@r...> + + * tool/vpath.rb (VPath#list): default separator to PATH_SEPARATOR from + configure.in for make, not same name constant of File for use in ruby. + Tue Jan 15 22:30:04 2013 Keiju Ishitsuka <keiju@i...> * lib/irb/ext/save-history.rb: identify rightly a status of a Index: tool/vpath.rb =================================================================== --- tool/vpath.rb (revision 38838) +++ tool/vpath.rb (revision 38839) @@ -6,7 +6,7 @@ class VPath https://github.com/ruby/ruby/blob/trunk/tool/vpath.rb#L6 def initialize(*list) @list = list @additional = [] - @separator = File::PATH_SEPARATOR + @separator = nil end def inspect @@ -65,6 +65,7 @@ class VPath https://github.com/ruby/ruby/blob/trunk/tool/vpath.rb#L65 end def list + @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"]) @additional.reject! do |dirs| case dirs when String -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/