1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
Lars Kanis d1166c6d39 Reline: Use a more robust detection of MinTTY
The previous detection per get_screen_size fails when stdout is passed
to a pipe. That is the case when running ruby tests in parallel ("-j" switch).
In this case Reline believes that it's running on MinTTY and the tests
are running with ANSI IOGate instead of the Windows adapter on MINGW.
So parallel test results were different to that of a single process.
This commit fixes these differencies.

The code is taken from git sources and translated to ruby.
NtQueryObject() is replaced by GetFileInformationByHandleEx(), because
NtQueryObject() is undocumented and is more difficult to use:
  c5a03b1e29/compat/winansi.c (L558)
2020-01-21 21:26:58 +09:00
..
benchmark
bundler Merge bundler-2.1.4 2020-01-08 18:00:32 +09:00
cgi
csv
delegate
did_you_mean Sync did_you_mean 2019-12-24 18:41:55 -05:00
drb Stop Thread.new in DRb::TimerIdConv::TimerHolder2#on_gc 2019-12-10 12:43:49 +09:00
forwardable [ruby/forwardable] Bump version to 1.3.1 2019-12-11 20:23:53 +09:00
getoptlong
irb [ruby/irb] Add newline_before_multiline_output 2020-01-21 09:51:16 +09:00
logger [ruby/logger] bump version to 1.4.2 2019-12-10 21:03:36 +09:00
matrix [ruby/matrix] Bump version 2019-12-22 21:48:54 -05:00
net lib/net/imap.rb: use &blk instead of Kernel#proc with no block 2020-01-09 08:21:42 +09:00
observer
open3
optparse
ostruct [ruby/ostruct] Bump version 2019-12-22 21:48:54 -05:00
pstore
racc Fixup a6864f6d2f 2020-01-01 07:53:27 +09:00
rdoc [ruby/rdoc] Version 6.2.1 2019-12-24 08:04:01 +09:00
reline Reline: Use a more robust detection of MinTTY 2020-01-21 21:26:58 +09:00
rinda
rubygems Merge RubyGems 3.1.2 2019-12-20 11:50:32 +09:00
singleton
timeout
tracer
unicode_normalize
uri Fix warnings for URI.encode and URI.decode 2020-01-09 13:09:06 -08:00
webrick Redmine /projects/ruby-trunk is now redirected 2019-12-31 22:06:19 -08:00
yaml
.document
abbrev.rb
base64.rb base64.rb: improve performance of Base64.urlsafe_encode64 2019-12-10 14:32:35 +09:00
benchmark.rb
bundler.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
cgi.rb
csv.rb
debug.rb debug.rb: expand filenames in breakpoints 2019-12-05 13:28:34 +09:00
delegate.rb Call initialize_clone with freeze: false if clone called with freeze: false 2020-01-03 20:13:09 -08:00
did_you_mean.rb Promote did_you_mean to default gem 2019-11-30 21:08:19 -05:00
drb.rb
English.rb
erb.rb
fileutils.gemspec Move gemspec of fileutils under the toplevel of lib directory. 2019-11-30 17:32:38 +09:00
fileutils.rb [ruby/fileutils] Bump version to 1.4.1 2019-11-30 18:09:41 +09:00
find.rb
forwardable.rb [ruby/forwardable] Make def_*_delegator return name of method defined (Fixes #10) 2019-12-11 20:23:53 +09:00
getoptlong.rb
ipaddr.gemspec
ipaddr.rb
irb.rb [ruby/irb] [ruby/irb] Rewrite an expression to detect multiline 2020-01-21 09:51:26 +09:00
logger.rb [ruby/logger] Document that shift_age of 0 disables log file rotation 2019-12-10 20:59:36 +09:00
matrix.rb Simplified ErrDimensionMismatch class 2019-11-30 08:00:40 +09:00
mkmf.rb
mutex_m.gemspec
mutex_m.rb
observer.rb
open-uri.rb Add URI#open to warning message 2019-12-20 01:40:00 +09:00
open3.rb
optionparser.rb
optparse.rb
ostruct.rb Fix OpenStructDocumentation 2020-01-05 14:35:14 +09:00
pp.rb Make prettyprint’s cycle detection aware of Delegator instances 2019-12-16 23:43:49 +09:00
prettyprint.rb
prime.gemspec
prime.rb [ruby/prime] Bump version 2019-12-22 21:48:54 -05:00
pstore.rb
racc.rb
rdoc.rb
readline.gemspec [ruby/readline] Version 0.0.2 2019-12-25 10:57:44 +09:00
readline.rb
reline.rb Reline: Use a more robust detection of MinTTY 2020-01-21 21:26:58 +09:00
resolv-replace.rb
resolv.rb
rss.rb
rubygems.rb Merge RubyGems 3.1.2 2019-12-20 11:50:32 +09:00
securerandom.rb
set.rb Call initialize_clone with freeze: false if clone called with freeze: false 2020-01-03 20:13:09 -08:00
shellwords.rb
singleton.rb
tempfile.rb
time.rb
timeout.rb
tmpdir.rb
tracer.rb Fixed misspellings 2019-12-20 12:19:45 +09:00
tsort.rb
un.rb DocumentRoot is optional 2020-01-21 18:13:54 +09:00
uri.rb
weakref.rb
webrick.rb
yaml.rb