summaryrefslogtreecommitdiff
path: root/tool/vpath.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-07 12:20:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-07 12:20:56 +0000
commitba7a0b46434162b80932fef71279b5c16fdf1306 (patch)
tree874089e4e1a6ab0152f74dde5dc3baf735f7261f /tool/vpath.rb
parent7d2725493e577c28cea7080d3e514d0ac111df10 (diff)
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
Diffstat (limited to 'tool/vpath.rb')
-rw-r--r--tool/vpath.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/vpath.rb b/tool/vpath.rb
index cfa4831..0c8d607 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