summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-23[ruby/reline] Use IO#raw to read one byteNobuyoshi Nakada
https://github.com/ruby/reline/commit/be17740e82
2019-12-23* 2019-12-23 [ci skip]git
2019-12-23Changed behavior on windows platforms too [ci skip]Kazuhiro NISHIYAMA
at 61aff0cd189e67fa6f2565639ad0128fa33b88fc [Bug #15267]
2019-12-22Enhance docs for Module#deprecate_constantzverok
Notes: Merged: https://github.com/ruby/ruby/pull/2768
2019-12-22Enhance Range docszverok
* 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 Notes: Merged: https://github.com/ruby/ruby/pull/2768
2019-12-22Actualize Time#inspect docszverok
Notes: Merged: https://github.com/ruby/ruby/pull/2768
2019-12-22Actualize Method#inspect docszverok
Notes: Merged: https://github.com/ruby/ruby/pull/2768
2019-12-22Fix FrozenError#receiver and #initialize docszverok
Notes: Merged: https://github.com/ruby/ruby/pull/2768
2019-12-22Update private visibility explanationzverok
Notes: Merged: https://github.com/ruby/ruby/pull/2768
2019-12-22Document numbered block parameterszverok
Notes: Merged: https://github.com/ruby/ruby/pull/2767
2019-12-22Enhancements for ENV docBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/2757
2019-12-22[Doc] Fix sample in Encoding#namesQuestionDriven
Notes: Merged: https://github.com/ruby/ruby/pull/2760
2019-12-22[Doc] Fix wrong example in Encoding.aliasesQuestionDriven
Notes: Merged: https://github.com/ruby/ruby/pull/2760
2019-12-22Fixed misspellingsNobuyoshi Nakada
Fixed misspellings reported at [Bug #16437], missed and a new typo.
2019-12-22Move version guard outside to make it clear the method was added in Ruby 2.5Benoit Daloze
2019-12-22RDoc of Warning.[] and .[]= [Feature #16345] [ci skip]Nobuyoshi Nakada
2019-12-22Manage deprecation warning by the flagNobuyoshi Nakada
2019-12-22[ruby/io-console] bump up to 0.5.3Nobuyoshi Nakada
2019-12-22add NEWS about cache improvement [ci skip]卜部昌平
2019-12-22Support multibyte inputNobuyoshi Nakada
2019-12-22fix a thread test.Koichi Sasada
* 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.
2019-12-22[ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_wordYusuke Endoh
https://github.com/ruby/reline/commit/e98ad3b486
2019-12-22add a NEWS entry for [Feature #16163]Koichi Sasada
2019-12-22compile.c: avoid newarraykwsplat for argumentsv2_7_0_rc2Yusuke Endoh
`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]
2019-12-22Move stats under a dictNARUSE, Yui
2019-12-22Should return "." for File.extname("file.") also on WindowsNAKAMURA Usaku
But not changes another cases, such as "file.rb." [Bug #15267]
2019-12-22* 2019-12-22 [ci skip]git
2019-12-22Remove TODO commentaycabta
2019-12-22[ruby/irb] Make nesting level up for `1.times do`Yusuke Endoh
Follow up of the previous commit https://github.com/ruby/irb/commit/ab207353d3
2019-12-22[ruby/irb] Fix auto-indent for `1.times do`Yusuke Endoh
Fixes #47 https://github.com/ruby/irb/commit/6b8eca4635
2019-12-22[ruby/reline] Preserve the input buffer across cursor_posYusuke Endoh
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
2019-12-22[ruby/reline] Consider Reline::ANSI.input at prepNobuyoshi Nakada
https://github.com/ruby/reline/commit/b111cde3c3
2019-12-21Kernel#lambda: return forwarded block as non-lambda procAlan Wu
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] Notes: Merged: https://github.com/ruby/ruby/pull/2289
2019-12-21Add spec for capturing Kernel#lambda with Kernel#methodAlan Wu
Notes: Merged: https://github.com/ruby/ruby/pull/2289
2019-12-21Add specs for calling into Kernel#lambda with superAlan Wu
Notes: Merged: https://github.com/ruby/ruby/pull/2289
2019-12-21test/ruby/test_pattern_matching.rb: suppress "unused variable" warningYusuke Endoh
2019-12-20Add Array#minmax, Range#minmax, and Proc#ruby2_keywords to NEWSJeremy Evans
2019-12-21* 2019-12-21 [ci skip]git
2019-12-20Added `-W:experimental` command line optionNobuyoshi Nakada
[Feature #16420]
2019-12-20Added `experimental` warning categoryNobuyoshi Nakada
[Feature #16420]
2019-12-20Hoisted out new_case3Nobuyoshi Nakada
2019-12-20Added -W: command line optionNobuyoshi Nakada
To manage `Warning[category]` flags. Only `-W:deprecated` and `-W:no-deprecated` are available now. [Feature #16345]
2019-12-20Added `FEATURE_SET_RESTORE` macroNobuyoshi Nakada
2019-12-20NEWS: Update the explanation of pattern matchingYusuke Endoh
Add an example of "<expr> in <pattern>", an example of NoMatchingPatternError, and mention that the slides are slightly obsolete.
2019-12-20vm_args.c: rephrase the warning message of keyword argument separationYusuke Endoh
(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
2019-12-20Refined the warning message for $, and $;Nobuyoshi Nakada
[Bug #16438]
2019-12-20Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada
[Bug #16438]
2019-12-20Refined the warning message for numbered-parameter like variablesNobuyoshi Nakada
[Bug #16438]
2019-12-20Makes the receiver to FrozenError.new a keyword parameterNobuyoshi Nakada
[Feature #16419]
2019-12-20use UTC to use previous day in midnightNARUSE, Yui