Skip to content

Commit

Permalink
vpath.rb: separator for make
Browse files Browse the repository at this point in the history
* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jan 15, 2013
1 parent d2a1760 commit eaab306
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Tue Jan 15 23:12:34 2013 Nobuyoshi Nakada <[email protected]>

* 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 <[email protected]>

* lib/irb/ext/save-history.rb: identify rightly a status of a
Expand Down
3 changes: 2 additions & 1 deletion tool/vpath.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class VPath
def initialize(*list)
@list = list
@additional = []
@separator = File::PATH_SEPARATOR
@separator = nil
end

def inspect
Expand Down Expand Up @@ -65,6 +65,7 @@ def def_options(opt)
end

def list
@separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"])
@additional.reject! do |dirs|
case dirs
when String
Expand Down

0 comments on commit eaab306

Please sign in to comment.