aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* range.c: Range#min with a beginless one now raise an explicit exceptionYusuke Endoh2019-12-251-0/+6
| | | | [Bug #16450]
* ^D on non-empty line in vi mode behaves like Enteraycabta2019-12-251-8/+11
|
* Scale sleeping times to wait for the OS operationsNobuyoshi Nakada2019-12-241-0/+4
|
* The delete-char-or-list shows completed list when called at end of lineaycabta2019-12-241-3/+40
| | | | It doesn't behave the same as the delete-char.
* Synchronize with a Queue instead of sleepingNobuyoshi Nakada2019-12-241-4/+12
|
* Revert "Scale sleeping times"Koichi Sasada2019-12-241-4/+0
| | | | | | | | This reverts commit e57d6194218efc73c30f3fed9dd321d2e357030b. Test fails: http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sky1/2518563 http://ci.rvm.jp/results/trunk-gc_compact@silicon-docker/2518533
* Scale sleeping timesNobuyoshi Nakada2019-12-241-0/+4
|
* Get rid of false positive misspellingsNobuyoshi Nakada2019-12-241-7/+8
| | | | [Bug #16437]
* [ruby/rdoc] Support newline in the middle of constant definitionaycabta2019-12-241-1/+1
| | | | https://github.com/ruby/rdoc/commit/74d3984324
* [ruby/rdoc] Treat Proc#call syntax sugar for constant correctlyaycabta2019-12-241-0/+11
| | | | https://github.com/ruby/rdoc/commit/957d041ae0
* Reword keyword arguments warning messages to convey these are deprecation ↵Marc-Andre Lafortune2019-12-2310-487/+487
| | | | warnings
* ObjectSpace._id2ref should check liveness.Koichi Sasada2019-12-231-0/+20
| | | | | objspace->id_to_obj_tbl can contain died objects because of lazy sweep, so that it should check liveness.
* Port ↵Yuki Nishijima2019-12-231-0/+0
| | | | https://github.com/ruby/did_you_mean/commit/dd1dd86e6c3188c36224d5dd4389676e6653a727
* Revert "Should return "." for File.extname("file.") also on Windows"NAKAMURA Usaku2019-12-232-4/+8
| | | | | | | | We want to introduce consistency and better compatibility with unixen, but the Windows APIs doues not have consistency fundamentally and we can not found any logical way... This reverts commit 61aff0cd189e67fa6f2565639ad0128fa33b88fc.
* fix a thread test.Koichi Sasada2019-12-221-7/+7
| | | | | | * Use Queue for synchronization. * Don't use `sleep 0.2` and use `th.join` because created thread can raise an exception after 0.2 seconds.
* compile.c: avoid newarraykwsplat for argumentsv2_7_0_rc2Yusuke Endoh2019-12-221-0/+6
| | | | | | | | | | | | | | `foo(*rest, post, **empty_kw)` is compiled like `foo(*rest + [post, **empty_kw])`, and `**empty_kw` is removed by "newarraykwsplat" instruction. However, the method call still has a flag of KW_SPLAT, so "post" is considered as a keyword hash, which caused a segfault. Note that the flag cannot be removed if "empty_kw" is not always empty. This change fixes the issue by compiling arguments with "newarray" instead of "newarraykwsplat". [Bug #16442]
* Should return "." for File.extname("file.") also on WindowsNAKAMURA Usaku2019-12-222-8/+4
| | | | | But not changes another cases, such as "file.rb." [Bug #15267]
* Kernel#lambda: return forwarded block as non-lambda procAlan Wu2019-12-211-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | Before this commit, Kernel#lambda can't tell the difference between a directly passed literal block and one passed with an ampersand. A block passed with an ampersand is semantically speaking already a non-lambda proc. When Kernel#lambda receives a non-lambda proc, it should simply return it. Implementation wise, when the VM calls a method with a literal block, it places the code for the block on the calling control frame and passes a pointer (block handler) to the callee. Before this commit, the VM forwards block arguments by simply forwarding the block handler, which leaves the slot for block code unused when a control frame forwards its block argument. I use the vacant space to indicate that a frame has forwarded its block argument and inspect that in Kernel#lambda to detect forwarded blocks. This is a very ad-hoc solution and relies *heavily* on the way block passing works in the VM. However, it's the most self-contained solution I have. [Bug #15620]
* test/ruby/test_pattern_matching.rb: suppress "unused variable" warningYusuke Endoh2019-12-211-0/+17
|
* Added `-W:experimental` command line optionNobuyoshi Nakada2019-12-201-0/+6
| | | | [Feature #16420]
* Added `experimental` warning categoryNobuyoshi Nakada2019-12-202-4/+23
| | | | [Feature #16420]
* Added -W: command line optionNobuyoshi Nakada2019-12-201-0/+9
| | | | | To manage `Warning[category]` flags. Only `-W:deprecated` and `-W:no-deprecated` are available now. [Feature #16345]
* vm_args.c: rephrase the warning message of keyword argument separationYusuke Endoh2019-12-209-347/+347
| | | | | | | | | | (old) test.rb:4: warning: The last argument is used as the keyword parameter test.rb:1: warning: for `foo' defined here; maybe ** should be added to the call? (new) test.rb:4: warning: The last argument is used as keyword parameters; maybe ** should be added to the call test.rb:1: warning: The called method `foo' is defined here
* Refined the warning message for $, and $;Nobuyoshi Nakada2019-12-201-1/+1
| | | | [Bug #16438]
* Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada2019-12-201-1/+1
| | | | [Bug #16438]
* Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada2019-12-201-6/+7
| | | | [Bug #16438]
* Makes the receiver to FrozenError.new a keyword parameterNobuyoshi Nakada2019-12-201-1/+1
| | | | [Feature #16419]
* Fixed misspellingsNobuyoshi Nakada2019-12-209-18/+18
| | | | Fixed misspellings reported at [Bug #16437], for default gems.
* Merge RubyGems 3.1.2Hiroshi SHIBATA2019-12-203-43/+71
|
* Fixed misspellingsNobuyoshi Nakada2019-12-204-4/+4
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* Warn also numbered parameter like methodsNobuyoshi Nakada2019-12-201-0/+2
|
* Warn also numbered parameter like parametersNobuyoshi Nakada2019-12-202-1/+3
| | | | [Feature #16433]
* Manage deprecation warnings about keyword argumentNobuyoshi Nakada2019-12-191-0/+3
|
* Made the warning for deprecated constants follow the category flagNobuyoshi Nakada2019-12-191-0/+5
|
* Use a temporary file for chown testNobuyoshi Nakada2019-12-181-5/+3
| | | | | Errno::EROFS may occur when the source tree is placed in a read-only filesystem.
* [ruby/io-console] Skip Interrupt test on LinuxNobuyoshi Nakada2019-12-181-1/+1
| | | | | | Hangs up only in ruby/ruby on Travis-CI. https://github.com/ruby/io-console/commit/de39aa6dd6
* [ruby/io-console] Set raw mode strictly same as cfmakerawNobuyoshi Nakada2019-12-181-1/+1
| | | | | | | | | | * Default VMIN and VTIME to minimum input. * Disable parity check bits explicitly. * Disable all bits for flow control on input. Co-Authored-By: NARUSE, Yui <naruse@airemix.jp> https://github.com/ruby/io-console/commit/5ce201a686
* 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
|