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

ruby-changes:40164

From: hsbt <ko1@a...>
Date: Fri, 23 Oct 2015 17:55:56 +0900 (JST)
Subject: [ruby-changes:40164] hsbt:r52245 (trunk): * lib/irb.rb: Ignored assignment of STDOUT.sync = true

hsbt	2015-10-23 17:55:35 +0900 (Fri, 23 Oct 2015)

  New Revision: 52245

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

  Log:
    * lib/irb.rb: Ignored assignment of STDOUT.sync = true
      when irb.rb loaded. It's affected to IDE such as Jetbrain.
      [fix GH-864] Patch by @os97673

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52244)
+++ ChangeLog	(revision 52245)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 23 17:55:29 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* lib/irb.rb: Ignored assignment of STDOUT.sync = true
+	  when irb.rb loaded. It's affected to IDE such as Jetbrain.
+	  [fix GH-864] Patch by @os97673
+
 Fri Oct 23 16:35:08 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained
Index: lib/irb.rb
===================================================================
--- lib/irb.rb	(revision 52244)
+++ lib/irb.rb	(revision 52245)
@@ -18,8 +18,6 @@ require "irb/ruby-lex" https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L18
 require "irb/input-method"
 require "irb/locale"
 
-STDOUT.sync = true
-
 # IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby
 # expressions read from the standard input.
 #
@@ -373,6 +371,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L371
 
   # Initializes IRB and creates a new Irb.irb object at the +TOPLEVEL_BINDING+
   def IRB.start(ap_path = nil)
+    STDOUT.sync = true
     $0 = File::basename(ap_path, ".rb") if ap_path
 
     IRB.setup(ap_path)

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

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