From 733be259071adba092ff9a2163cfed39392b2ad9 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 7 Jun 2011 09:56:30 +0000 Subject: * lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of Windows has been fixed at r29969. * test/rubygems/test_gem_stream_ui.rb: now can run tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/user_interaction.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/rubygems') diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb index 1dbcf38eee..c6665c125f 100644 --- a/lib/rubygems/user_interaction.rb +++ b/lib/rubygems/user_interaction.rb @@ -142,12 +142,8 @@ class Gem::StreamUI end def tty? - if RUBY_PLATFORM =~ /mingw|mswin/ - @usetty - else - @usetty && @ins.tty? - end - end + @usetty && @ins.tty? + end ## # Choose from a list of options. +question+ is a prompt displayed above -- cgit v1.2.3