[前][次][番号順一覧][スレッド一覧]

ruby-changes:27082

From: nobu <ko1@a...>
Date: Thu, 7 Feb 2013 21:22:16 +0900 (JST)
Subject: [ruby-changes:27082] nobu:r39134 (trunk): vpath.rb: no rbconfig.rb

nobu	2013-02-07 21:20:56 +0900 (Thu, 07 Feb 2013)

  New Revision: 39134

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39134

  Log:
    vpath.rb: no rbconfig.rb
    
    * tool/vpath.rb (VPath#list): no rbconfig.rb, to get rid of cyclic
      dependency.

  Modified files:
    trunk/tool/vpath.rb

Index: tool/vpath.rb
===================================================================
--- tool/vpath.rb	(revision 39133)
+++ tool/vpath.rb	(revision 39134)
@@ -66,12 +66,13 @@ class VPath https://github.com/ruby/ruby/blob/trunk/tool/vpath.rb#L66
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]