* 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
Родитель 7d2725493e
Коммит ba7a0b4643
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

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