mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vpath.rb: no rbconfig.rb
* tool/vpath.rb (VPath#list): no rbconfig.rb, to get rid of cyclic dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d2725493e
commit
ba7a0b4643
1 changed files with 2 additions and 1 deletions
|
@ -66,12 +66,13 @@ class VPath
|
|||
end
|
||||
|
||||
def list
|
||||
@separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"])
|
||||
@additional.reject! do |dirs|
|
||||
case dirs
|
||||
when String
|
||||
@list << dirs
|
||||
when Array
|
||||
raise "--path-separator option is needed for vpath list" unless @separator
|
||||
# @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"])
|
||||
@list.concat(dirs[0].split(@separator))
|
||||
end
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue