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

ruby-changes:28303

From: naruse <ko1@a...>
Date: Thu, 18 Apr 2013 22:56:38 +0900 (JST)
Subject: [ruby-changes:28303] naruse:r40355 (trunk): Overwrite Ruby's path for cgi in tests

naruse	2013-04-18 22:56:09 +0900 (Thu, 18 Apr 2013)

  New Revision: 40355

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

  Log:
    Overwrite Ruby's path for cgi in tests

  Modified files:
    trunk/test/webrick/utils.rb

Index: test/webrick/utils.rb
===================================================================
--- test/webrick/utils.rb	(revision 40354)
+++ test/webrick/utils.rb	(revision 40355)
@@ -13,6 +13,13 @@ module TestWEBrick https://github.com/ruby/ruby/blob/trunk/test/webrick/utils.rb#L13
     return self
   end
 
+  class WEBrick::HTTPServlet::CGIHandler
+    remove_const :Ruby
+    Ruby = EnvUtil.rubybin
+    remove_const :CGIRunner
+    CGIRunner = "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\"" # :nodoc:
+  end
+
   RubyBin = "\"#{EnvUtil.rubybin}\""
   RubyBin << " --disable-gems"
   RubyBin << " \"-I#{File.expand_path("../..", File.dirname(__FILE__))}/lib\""

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

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