diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-07 09:56:30 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-07 09:56:30 +0000 |
commit | 733be259071adba092ff9a2163cfed39392b2ad9 (patch) | |
tree | 8c803f4a13ee2f5604a3138449f1c8e6ab6d05f6 /lib | |
parent | 04b81ae7992b8eb06fc89b6874be11c046dfad76 (diff) | |
download | ruby-733be259071adba092ff9a2163cfed39392b2ad9.tar.gz |
* 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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/user_interaction.rb | 8 |
1 files changed, 2 insertions, 6 deletions
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 |