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

ruby-changes:24315

From: nobu <ko1@a...>
Date: Wed, 11 Jul 2012 18:02:38 +0900 (JST)
Subject: [ruby-changes:24315] nobu:r36366 (trunk): sample/test.rb: fix standalone

nobu	2012-07-11 18:02:06 +0900 (Wed, 11 Jul 2012)

  New Revision: 36366

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

  Log:
    sample/test.rb: fix standalone
    
    * sample/test.rb (Progress#initialize): no rotators when STDOUT is
      also tty, that is directly invoked but not from tool/rubytest.rb.

  Modified files:
    trunk/sample/test.rb

Index: sample/test.rb
===================================================================
--- sample/test.rb	(revision 36365)
+++ sample/test.rb	(revision 36366)
@@ -17,7 +17,7 @@
         @quiet = true
       end
     end
-    @tty = STDERR.tty? && /dumb/ !~ ENV["TERM"]
+    @tty = STDERR.tty? && !STDOUT.tty? && /dumb/ !~ ENV["TERM"]
     case @color
     when nil
       @color = @tty

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

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