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

ruby-changes:42884

From: nobu <ko1@a...>
Date: Mon, 9 May 2016 08:08:58 +0900 (JST)
Subject: [ruby-changes:42884] nobu:r54958 (trunk): webrick/utils.rb: suppress messages

nobu	2016-05-09 09:05:32 +0900 (Mon, 09 May 2016)

  New Revision: 54958

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54958

  Log:
    webrick/utils.rb: suppress messages
    
    * test/webrick/utils.rb (TestWEBrick#start_server): suppress
      progress messages from WEBrick::Utils#create_self_signed_cert.

  Modified files:
    trunk/test/webrick/utils.rb
Index: test/webrick/utils.rb
===================================================================
--- test/webrick/utils.rb	(revision 54957)
+++ test/webrick/utils.rb	(revision 54958)
@@ -37,12 +37,13 @@ module TestWEBrick https://github.com/ruby/ruby/blob/trunk/test/webrick/utils.rb#L37
     log_ary = []
     access_log_ary = []
     log = proc { "webrick log start:\n" + (log_ary+access_log_ary).join.gsub(/^/, "  ").chomp + "\nwebrick log end" }
-    server = klass.new({
+    config = ({
       :BindAddress => "127.0.0.1", :Port => 0,
       :ServerType => Thread,
       :Logger => WEBrick::Log.new(log_ary, WEBrick::BasicLog::WARN),
       :AccessLog => [[access_log_ary, ""]]
     }.update(config))
+    server = capture_io {break klass.new(config)}
     server_thread = server.start
     server_thread2 = Thread.new {
       server_thread.join

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

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