From ba7a0b46434162b80932fef71279b5c16fdf1306 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 7 Feb 2013 12:20:56 +0000 Subject: 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 --- tool/vpath.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tool/vpath.rb') diff --git a/tool/vpath.rb b/tool/vpath.rb index cfa48313de..0c8d6071ea 100644 --- a/tool/vpath.rb +++ b/tool/vpath.rb @@ -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 -- cgit v1.2.3