aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/reline] Use IO#raw to read one byteNobuyoshi Nakada2019-12-232-19/+5
| | | | https://github.com/ruby/reline/commit/be17740e82
* * 2019-12-23 [ci skip]git2019-12-231-1/+1
|
* Changed behavior on windows platforms too [ci skip]Kazuhiro NISHIYAMA2019-12-231-2/+1
| | | | at 61aff0cd189e67fa6f2565639ad0128fa33b88fc [Bug #15267]
* Enhance docs for Module#deprecate_constantzverok2019-12-221-1/+13
|
* Enhance Range docszverok2019-12-221-10/+24
| | | | | | | | * Change === docs to mention it uses cover? * Add different example to === docs to showcase behavior better * Change include? docs to mention cover? and clarify the difference
* Actualize Time#inspect docszverok2019-12-221-5/+6
|
* Actualize Method#inspect docszverok2019-12-221-2/+21
|
* Fix FrozenError#receiver and #initialize docszverok2019-12-221-1/+2
|
* Update private visibility explanationzverok2019-12-221-3/+35
|
* Document numbered block parameterszverok2019-12-221-0/+50
|
* Enhancements for ENV docBurdetteLamar2019-12-221-13/+55
|
* [Doc] Fix sample in Encoding#namesQuestionDriven2019-12-221-1/+1
|
* [Doc] Fix wrong example in Encoding.aliasesQuestionDriven2019-12-221-2/+2
|
* Fixed misspellingsNobuyoshi Nakada2019-12-224-4/+4
| | | | | Fixed misspellings reported at [Bug #16437], missed and a new typo.
* Move version guard outside to make it clear the method was added in Ruby 2.5Benoit Daloze2019-12-221-2/+2
|
* RDoc of Warning.[] and .[]= [Feature #16345] [ci skip]Nobuyoshi Nakada2019-12-221-0/+25
|
* Manage deprecation warning by the flagNobuyoshi Nakada2019-12-221-2/+4
|
* [ruby/io-console] bump up to 0.5.3Nobuyoshi Nakada2019-12-221-1/+1
|
* add NEWS about cache improvement [ci skip]卜部昌平2019-12-221-0/+4
|
* Support multibyte inputNobuyoshi Nakada2019-12-221-1/+2
|
* 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.
* [ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_wordYusuke Endoh2019-12-221-0/+2
| | | | https://github.com/ruby/reline/commit/e98ad3b486
* add a NEWS entry for [Feature #16163]Koichi Sasada2019-12-221-0/+5
|
* compile.c: avoid newarraykwsplat for argumentsv2_7_0_rc2Yusuke Endoh2019-12-222-1/+14
| | | | | | | | | | | | | | `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]
* Move stats under a dictNARUSE, Yui2019-12-221-6/+7
|
* Should return "." for File.extname("file.") also on WindowsNAKAMURA Usaku2019-12-224-15/+23
| | | | | But not changes another cases, such as "file.rb." [Bug #15267]
* * 2019-12-22 [ci skip]git2019-12-221-1/+1
|
* Remove TODO commentaycabta2019-12-221-1/+1
|
* [ruby/irb] Make nesting level up for `1.times do`Yusuke Endoh2019-12-221-1/+1
| | | | | | Follow up of the previous commit https://github.com/ruby/irb/commit/ab207353d3
* [ruby/irb] Fix auto-indent for `1.times do`Yusuke Endoh2019-12-221-1/+1
| | | | | | Fixes #47 https://github.com/ruby/irb/commit/6b8eca4635
* [ruby/reline] Preserve the input buffer across cursor_posYusuke Endoh2019-12-221-1/+5
| | | | | | | | | The old version of cursor_pos discards the input buffer, which made IRB ignore the input immediately after IRB is invoked. This change keeps the input before cursor_pos by using ungetc. https://github.com/ruby/reline/commit/4a8cca331f
* [ruby/reline] Consider Reline::ANSI.input at prepNobuyoshi Nakada2019-12-221-7/+16
| | | | https://github.com/ruby/reline/commit/b111cde3c3
* Kernel#lambda: return forwarded block as non-lambda procAlan Wu2019-12-214-3/+40
| | | | | | | | | | | | | | | | | | | | | | | | 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]
* Add spec for capturing Kernel#lambda with Kernel#methodAlan Wu2019-12-211-0/+7
|
* Add specs for calling into Kernel#lambda with superAlan Wu2019-12-212-1/+38
|
* test/ruby/test_pattern_matching.rb: suppress "unused variable" warningYusuke Endoh2019-12-211-0/+17
|
* Add Array#minmax, Range#minmax, and Proc#ruby2_keywords to NEWSJeremy Evans2019-12-201-1/+20
|
* * 2019-12-21 [ci skip]git2019-12-211-1/+1
|
* Added `-W:experimental` command line optionNobuyoshi Nakada2019-12-202-0/+9
| | | | [Feature #16420]
* Added `experimental` warning categoryNobuyoshi Nakada2019-12-205-5/+29
| | | | [Feature #16420]
* Hoisted out new_case3Nobuyoshi Nakada2019-12-201-4/+12
|
* Added -W: command line optionNobuyoshi Nakada2019-12-203-1/+45
| | | | | To manage `Warning[category]` flags. Only `-W:deprecated` and `-W:no-deprecated` are available now. [Feature #16345]
* Added `FEATURE_SET_RESTORE` macroNobuyoshi Nakada2019-12-201-1/+2
|
* NEWS: Update the explanation of pattern matchingYusuke Endoh2019-12-201-4/+14
| | | | | | Add an example of "<expr> in <pattern>", an example of NoMatchingPatternError, and mention that the slides are slightly obsolete.
* vm_args.c: rephrase the warning message of keyword argument separationYusuke Endoh2019-12-2012-357/+357
| | | | | | | | | | (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-203-3/+3
| | | | [Bug #16438]
* Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada2019-12-203-3/+3
| | | | [Bug #16438]
* Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada2019-12-202-7/+8
| | | | [Bug #16438]
* Makes the receiver to FrozenError.new a keyword parameterNobuyoshi Nakada2019-12-203-10/+17
| | | | [Feature #16419]
* use UTC to use previous day in midnightNARUSE, Yui2019-12-201-2/+2
|