aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Skip interruptible raw mode test on Travis-CI"Nobuyoshi Nakada2019-12-181-1/+0
| | | | This reverts commit 65731a1330ed02691e3c343d2feeb8d0a72af3fd.
* [ruby/io-console] Skip interruptNobuyoshi Nakada2019-12-181-1/+1
| | | | https://github.com/ruby/io-console/commit/8ed5a2bcc3
* [ruby/io-console] Timeout in the child processNobuyoshi Nakada2019-12-171-2/+3
| | | | https://github.com/ruby/io-console/commit/b8411689a5
* [ruby/io-console] Use IO.console instead of STDINNobuyoshi Nakada2019-12-171-3/+4
| | | | https://github.com/ruby/io-console/commit/9e3ec5b936
* Skip interruptible raw mode test on Travis-CINobuyoshi Nakada2019-12-171-0/+1
|
* [ruby/logger] Fixed leaked tempfileNobuyoshi Nakada2019-12-171-1/+1
| | | | https://github.com/ruby/logger/commit/fb3eff153f
* [ruby/io-console] Disable implementation-defined special control charactersNobuyoshi Nakada2019-12-171-0/+10
| | | | | | In raw mode with interrupt enabled. https://github.com/ruby/io-console/commit/e9e8e3ff17
* [ruby/io-console] Added the test for intr optionNobuyoshi Nakada2019-12-171-0/+36
| | | | https://github.com/ruby/io-console/commit/4f01db102d
* Fix return condition according to the condition to skipaycabta2019-12-171-1/+1
|
* Support change search directionaycabta2019-12-171-0/+64
|
* Support forward-search-history by C-saycabta2019-12-171-0/+28
|
* Added a test for [Bug #16159]Nobuyoshi Nakada2019-12-171-0/+6
|
* Check wether Readline.completion_append_character= existsaycabta2019-12-171-1/+1
|
* test/ruby/test_process.rb: suppress "unused variable" warningYusuke Endoh2019-12-171-1/+1
|
* Make prettyprint’s cycle detection aware of Delegator instancesRichard Viney2019-12-161-0/+12
| | | | | | Fixes [Bug #13144] Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Revert "lib/net/http/response.rb: support raw deflate correctly"Yusuke Endoh2019-12-161-16/+16
| | | | | | | | | | | | | | | | This reverts commit 5105240b1e851410020b3b3f1a2bead7ffdd4291. In RFC 2616: ``` deflate The "zlib" format defined in RFC 1950 [31] in combination with the "deflate" compression mechanism described in RFC 1951 [29]. ``` So "Content-Encoding: deflate" means zlib format, not raw deflate. [Bug #11268]
* lib/net/http/response.rb: support raw deflate correctlyYusuke Endoh2019-12-161-16/+16
| | | | | | | | | | | | | | Net::HTTP had used `Zlib::Inflate.new(32 + Zlib::MAX_WBITS)` for all content encoding (deflate, zlib, and gzip). But the argument `32 + Zlib::MAX_WBITS` means zlib and gzip decoding with automatic header detection, so (raw) deflate compression had not been supported. This change makes it support raw deflate correctly by passing an argument `-Zlib::MAX_WBITS` (which means raw deflate) to `Zlib::Inflate.new`. All deflate-mode tests are fixed too. [Bug #11268]
* Kernel#abort without arguments should print error infoNobuyoshi Nakada2019-12-161-1/+11
| | | | [Bug #16424]
* IO#set_encoding_by_bom should err when encoding is already setNobuyoshi Nakada2019-12-151-0/+10
| | | | Except for ASCII-8BIT. [Bug #16422]
* Add more debug infoKazuhiro NISHIYAMA2019-12-151-1/+8
| | | | | | | | | | | | | closed server doesn't have useful info. So call inspect before close. And add local debug code in comment. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191215T092405Z.fail.html.gz ``` 1) Failure: IMAPTest#test_connection_closed_without_greeting [/export/home/rubyci/chkbuild-tmp/tmp/build/20191215T092405Z/ruby/test/net/imap/test_imap.rb:483]: [Net::IMAP::Error] exception expected, not #<RuntimeError: {:e=>#<Errno::EINVAL: Invalid argument - connect(2) for [::1]:41748>, :server=>#<TCPServer:(closed)>, :port=>41748, :server_addr=>"::1"}>. ```
* Prepare to release rubygems-3.1.0Hiroshi SHIBATA2019-12-152-45/+6
|
* rand(beginless_range) raise Errno::EDOM instead of TypeErrorKazuhiro NISHIYAMA2019-12-151-0/+1
| | | | | | | | | | | | | | | | | | | | | same as `rand(endless_range)` Before: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 2: from -e:1:in `<main>' 1: from -e:1:in `rand' -e:1:in `-': nil can't be coerced into Integer (TypeError) ``` After: ``` $ ruby -e 'rand(..1)' Traceback (most recent call last): 1: from -e:1:in `<main>' -e:1:in `rand': Numerical argument out of domain (Errno::EDOM) ```
* [ruby/irb] Restore environment variablesNobuyoshi Nakada2019-12-141-8/+10
| | | | https://github.com/ruby/irb/commit/236590882c
* Fixed a typoHiroshi SHIBATA2019-12-131-1/+1
|
* Added explicitly loading `Gem::Command` classHiroshi SHIBATA2019-12-131-0/+1
|
* Add `Warning.[]` and `Warning.[]=`Nobuyoshi Nakada2019-12-131-0/+6
|
* Prepare to release RubyGems 3.1.0 final version.Hiroshi SHIBATA2019-12-139-52/+200
|
* Show a menu before a documentaycabta2019-12-131-0/+66
| | | | | | IRB should show a menu first if a completed list has plural items. But just shows document without menu if a completed list with plural items includes a perfect matched item. The behavior is a bug. This commit fixes it.
* Improved the test for Thread#inspect [Feature #16412]Nobuyoshi Nakada2019-12-131-1/+5
|
* Check wether TestReadline is definedaycabta2019-12-131-2/+2
|
* Move `rescue` for debug into block of assert_raiseKazuhiro NISHIYAMA2019-12-121-2/+2
|
* [cygwin] fix File.absolute_path? testNobuyoshi Nakada2019-12-121-2/+5
| | | | | Paths start with the root are absolute on cygwin, regardless the drive letter.
* Cygwin path cannot be mapped to a UNC as-isNobuyoshi Nakada2019-12-121-1/+1
|
* Add more debug info when Errno::EINVALKazuhiro NISHIYAMA2019-12-121-0/+2
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191212T072406Z.fail.html.gz
* Make super in instance_eval in method in module raise TypeErrorJeremy Evans2019-12-121-0/+23
| | | | | | | | | | | | | | | | | | | | | | | This makes behavior the same as super in instance_eval in method in class. The reason this wasn't implemented before is that there is a check to determine if the self in the current context is of the expected class, and a module itself can be included in multiple classes, so it doesn't have an expected class. Implementing this requires giving iclasses knowledge of which class created them, so that super call in the module method knows the expected class for super calls. This reference is called includer, and should only be set for iclasses. Note that the approach Ruby uses in this check is not robust. If you instance_eval another object of the same class and call super, instead of an TypeError, you get super called with the instance_eval receiver instead of the method receiver. Truly fixing super would require keeping a reference to the super object (method receiver) in each frame where scope has changed, and using that instead of current self when calling super. Fixes [Bug #11636]
* Import json-2.3.0 from flori/jsonHiroshi SHIBATA2019-12-121-0/+1
|
* Suppress to crash IRB if completed list has nilaycabta2019-12-121-0/+45
|
* Some tests failed with before GNU Readline 6.0 on Windowsaycabta2019-12-121-0/+2
|
* [ruby/forwardable] Make def_*_delegator return name of method defined (Fixes ↵Jeremy Evans2019-12-111-2/+6
| | | | | | | | | | #10) This restores compatibility with previous versions. This behavior was previously undefined, but it makes sense for the name of the defined method to be returned. https://github.com/ruby/forwardable/commit/a52ef3451e
* The result of Readline.completion_proc should have the same encoding of ↵aycabta2019-12-111-5/+12
| | | | Encoding.default_external
* skip continuous failure test.Koichi Sasada2019-12-111-0/+2
| | | | | | | On mingw this test fails and not solved long time, so skip it. Please revert it when it solved. https://ci.appveyor.com/project/ruby/ruby/builds/29458671/job/9nbcjnfe6p0xnxoe
* Do not load q.rb in build directoryKazuhiro NISHIYAMA2019-12-111-1/+1
|
* Do not load files in build directoryKazuhiro NISHIYAMA2019-12-115-80/+80
| | | | related https://bugs.ruby-lang.org/issues/16177
* Fix Enumerator::Lazy#with_indexJeremy Evans2019-12-111-2/+15
| | | | | | | | | | | | | | | | * Make it correctly handle lambdas * Make it iterate over the block if block is given The original implementation was flawed, based on lazy_set_method instead of lazy_add_method. Note that there is no implicit map when passing a block, the return value of the block passed to with_index is ignored, just as it is for Enumerator#with_index. Also like Enumerator#with_index, when called with a block, the return value is an enumerator without the index. Fixes [Bug #16414]
* Followed up 38722fa179fcec549300b2f35206f4eb168f202eHiroshi SHIBATA2019-12-101-8/+4
|
* [ruby/logger] Enable more timezone tests on OpenBSDJeremy Evans2019-12-101-1/+1
| | | | https://github.com/ruby/logger/commit/bcd7e227e8
* [ruby/logger] Raise ArgumentError for invalid shift_ageJeremy Evans2019-12-101-2/+5
| | | | | | | | | Consider 'now' and 'everytime' as valid values for the previous behavior of rotating everytime. Fixes Ruby Bug 15977 https://github.com/ruby/logger/commit/f92979a376
* [ruby/logger] Honor Logger#level overridesGeorge Claghorn2019-12-101-0/+15
| | | | https://github.com/ruby/logger/commit/7365c995bf
* fix ipaddr parameter of Net::HTTP.start to support proxyNARUSE, Yui2019-12-101-0/+39
| | | | 54072e329cab7207fba133caba4fc12b45add8f9
* Update regression tests for 1.4.16Hiroshi SHIBATA2019-12-1020-20/+20
|