mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d2a176028f
commit
eaab306b59
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Jan 15 23:12:34 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ishitsuka.com>
|
Tue Jan 15 22:30:04 2013 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||||
|
|
||||||
* lib/irb/ext/save-history.rb: identify rightly a status of a
|
* lib/irb/ext/save-history.rb: identify rightly a status of a
|
||||||
|
|
|
@ -6,7 +6,7 @@ class VPath
|
||||||
def initialize(*list)
|
def initialize(*list)
|
||||||
@list = list
|
@list = list
|
||||||
@additional = []
|
@additional = []
|
||||||
@separator = File::PATH_SEPARATOR
|
@separator = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
|
@ -65,6 +65,7 @@ class VPath
|
||||||
end
|
end
|
||||||
|
|
||||||
def list
|
def list
|
||||||
|
@separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"])
|
||||||
@additional.reject! do |dirs|
|
@additional.reject! do |dirs|
|
||||||
case dirs
|
case dirs
|
||||||
when String
|
when String
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue