1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2015-10-23 08:55:35 +00:00
parent 2cd1f852e1
commit 00d8b1a85d
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Fri Oct 23 17:55:29 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* 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@ruby-lang.org> Fri Oct 23 16:35:08 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained * lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained

View file

@ -18,8 +18,6 @@ require "irb/ruby-lex"
require "irb/input-method" require "irb/input-method"
require "irb/locale" require "irb/locale"
STDOUT.sync = true
# IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby # IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby
# expressions read from the standard input. # expressions read from the standard input.
# #
@ -373,6 +371,7 @@ module IRB
# Initializes IRB and creates a new Irb.irb object at the +TOPLEVEL_BINDING+ # Initializes IRB and creates a new Irb.irb object at the +TOPLEVEL_BINDING+
def IRB.start(ap_path = nil) def IRB.start(ap_path = nil)
STDOUT.sync = true
$0 = File::basename(ap_path, ".rb") if ap_path $0 = File::basename(ap_path, ".rb") if ap_path
IRB.setup(ap_path) IRB.setup(ap_path)