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

ruby-changes:40357

From: nobu <ko1@a...>
Date: Wed, 4 Nov 2015 10:31:36 +0900 (JST)
Subject: [ruby-changes:40357] nobu:r52438 (trunk): mkmf/base.rb: capture output

nobu	2015-11-04 10:31:15 +0900 (Wed, 04 Nov 2015)

  New Revision: 52438

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

  Log:
    mkmf/base.rb: capture output
    
    * test/mkmf/base.rb (TestMkmf::Base::Capture#write): capture
      output inside mkmf method.

  Modified files:
    trunk/test/mkmf/base.rb
Index: test/mkmf/base.rb
===================================================================
--- test/mkmf/base.rb	(revision 52437)
+++ test/mkmf/base.rb	(revision 52438)
@@ -49,7 +49,11 @@ module TestMkmf::Base https://github.com/ruby/ruby/blob/trunk/test/mkmf/base.rb#L49
       @filter = block
     end
     def write(s)
-      @buffer << s if @out
+      if @out
+        @buffer << s
+      elsif @origin
+        @origin << s
+      end
     end
   end
 

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

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