1
0
Fork 0
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:
nobu 2013-02-07 12:20:56 +00:00
parent 7d2725493e
commit ba7a0b4643

View file

@ -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