summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-17Remove unused constant.Aaron Patterson
This constant isn't used, so lets remove it.
2019-10-17Look up constant instead of caching in a globalAaron Patterson
The global can go bad if the compactor runs, so we need to look up the constant instead of caching it in a global.
2019-10-17Update test to handle x32 ABI compiled Ruby on LinuxJeremy Evans
Suggestion from Laurence Parry. Fixes [Bug #16030] Notes: Merged: https://github.com/ruby/ruby/pull/2572
2019-10-18Treat key sequences from getwch() that start from 0 or 0xE0 correctlyaycabta
2019-10-18Add numeric keypad key sequences on Windowsaycabta
2019-10-18Remove freezeaycabta
2019-10-18Ignore the input method key sequence from getwch() correctlyaycabta
The function getwch() returns some key sequences which start from 0 or 0xE0 with a following key code. Alt+` that is on/off key for input methods gives 0 and 41 so Reline was always ignoring 0 and following keys but numeric keypad keys give 0 and following actual keys. This commit changes the behavior to be ignoring only the 0 and 41 sequence.
2019-10-17Make circular argument reference a SyntaxError instead of a warningJeremy Evans
Fixes [Bug #10314] Notes: Merged: https://github.com/ruby/ruby/pull/2569
2019-10-18* 2019-10-18 [ci skip]git
2019-10-18Insert multiline incremental search result correctlyaycabta
2019-10-17[DOC] no change on Windows [Bug #15267] [ci skip]Nobuyoshi Nakada
2019-10-17Fixed File.extname at a name ending with a dotNobuyoshi Nakada
File.extname now returns a dot string at a name ending with a dot. [Bug #15267] Notes: Merged: https://github.com/ruby/ruby/pull/2565
2019-10-17* remove trailing spaces. [ci skip]git
2019-10-17Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)Kenichi Kamiya
* {String|Symbol}#match{?} with nil returns falsy To improve consistency with Regexp#match{?} * String#match(nil) returns `nil` instead of TypeError * String#match?(nil) returns `false` instead of TypeError * Symbol#match(nil) returns `nil` instead of TypeError * Symbol#match?(nil) returns `false` instead of TypeError * Prefer exception * Follow empty ENV * Drop outdated specs * Write ruby/spec for above https://github.com/ruby/ruby/pull/1506/files#r183242981 * Fix merge miss
2019-10-17Remove unused variableaycabta
2019-10-17Refactor prompt generation logicaycabta
2019-10-17Use `\&` instead of `\1` with captureKazuhiro NISHIYAMA
2019-10-16Fix DRbServer#any_to_sJeremy Evans
My previous fix in d0ed935d5bf8c3fce9800742a36e44fb7f63dda4 was not correct, as pointed out by cremno on GitHub. This simplifies things by just using Kernel#to_s. Also switch to bind_call(obj) instead of bind(obj).call for better performance. Notes: Merged: https://github.com/ruby/ruby/pull/2554
2019-10-16Do not raise an exception on a closed DRb socketJeremy Evans
This rescues some exceptions that could happen with a closed or shutdown DRb socket. This can prevent the server from exiting if an client socket is closed directly after it is accepted. Fixes [Bug #8039] Notes: Merged: https://github.com/ruby/ruby/pull/2554
2019-10-16Handle subclasses of Exception in drbJeremy Evans
This makes it so that client instances that call a method on a server-side object that raise a subclass of Exception are handled similarly to those that raise a subclass of StandardError. Only reraise exceptions that we are fairly sure we don't want to rescue. Fixes [Bug #5618] Notes: Merged: https://github.com/ruby/ruby/pull/2554
2019-10-16Warn for calling public/protected/private/module_function without arguments ↵Jeremy Evans
inside method Calling these methods without an argument does not have the desired effect inside a method. Fixes [Bug #13249] Notes: Merged: https://github.com/ruby/ruby/pull/2562
2019-10-17Calculate prompt width correctlyaycabta
2019-10-17Collect multiline prompt logic into a methodaycabta
2019-10-16Use an even indent in NEWS for codeBenoit Daloze
* Makes it easier to copy-paste and add code backticks.
2019-10-17* 2019-10-17 [ci skip]git
2019-10-16Revert "Disable ccache on arm64 build"Takashi Kokubun
This reverts commit e8124729fbeaf159ae615f61980ee10018ed5134. It worked once, but soon after that it stopped working again https://travis-ci.org/ruby/ruby/jobs/598491972
2019-10-16Support multiline history in incremental searchaycabta
2019-10-16Revert "alias assert_raise_message for compatibility with test-unit"Nobuyoshi Nakada
This reverts commit 43015275b9a7f2833c93ad11ea96ae4cb3b7acd7. `assert_raise_message` in test-unit is different from `assert_raise_with_message`. It checks the exception message only, but not the exception class,
2019-10-16alias assert_raise_message for compatibility with test-unitNobuyoshi Nakada
2019-10-16Temporarily drop test_jit_debug.rbTakashi Kokubun
Still some CIs are failing: https://ci.appveyor.com/project/ruby/ruby/builds/28141041/job/v4hfc99sjefqabkk http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2317313 I'll fix them later.
2019-10-16Added test for rdoc `--force-update` optionNobuyoshi Nakada
2019-10-16Removed an unused assignmentNobuyoshi Nakada
2019-10-15Do not test --jit-debug on -DVM_CHECK_MODETakashi Kokubun
2019-10-15Maintain the intention of comment in Travis matrixTakashi Kokubun
2019-10-15Remove arm64 build from DroneTakashi Kokubun
because it started to run on Travis.
2019-10-15Disable ccache on arm64 buildTakashi Kokubun
Follow up https://github.com/ruby/ruby/pull/2559 According to experiments in https://github.com/ruby/ruby/pull/2560, disabling cache seems to make arm64 build succeed.
2019-10-15Enforce --jit-debug test by another wayTakashi Kokubun
2019-10-15Fix test path on travis buildTakashi Kokubun
2019-10-15Test without --jit-debug by defaultTakashi Kokubun
and let RUBY_DEBUG=1 job test it. We usually don't use --jit-debug and we should test no --jit-debug by default.
2019-10-15Add arm64 case on Travis. (#2559)Jun Aruga
misc-16234
2019-10-15Dup hash with keyword flag when converted to keywordsJeremy Evans
When ruby2_keywords is used on a method, keywords passed to the method are flagged. When the hash is passed as the last element of an argument splat to another method, the hash should be treated as a keyword splat. When keyword splatting a hash, a duplicate of the hash is made. So when auto-splatting the hash with the keyword flag, a duplicate of the hash should also be made. This fixes cases where the hash is later passed to another method and would be treated as keywords there: class Object ruby2_keywords def foo(*a) bar(*a) end def bar(*a) baz(*a) end def baz(*a, **kw) [a, kw] end end foo(:a=>1) Previously, this would pass the :a=>1 as keywords to bar and also as keywords to baz. Now it only passes :a=>1 as keywords to bar, but bar passes :a=>1 as a positional hash to baz (which in this case generates a warning in 2.7).
2019-10-16Support backspace in incremental searchaycabta
2019-10-16C-r is incremental history search in vi insert modeaycabta
2019-10-16* 2019-10-16 [ci skip]git
2019-10-16Comparable#clamp with a range [Feature #14784]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/2556
2019-10-15test/csv/write/test_general.rb: suppress warningsYusuke Endoh
of "setting Encoding.default_internal".
2019-10-15Fixed the key to delete [Bug #16250]Nobuyoshi Nakada
https://github.com/ruby/ruby/commit/f94202fcc228d0348ca050a7b18a8f8a538a7305#commitcomment-35505076 Co-Authored-By: Ary Borenszweig <asterite@gmail.com>
2019-10-15[DOC] fixed a variable name [ci skip]Nobuyoshi Nakada
replaced "anObject" with "obj". also marked up with simple `_`s instead of `<i>`.
2019-10-15[rubygems/rubygems] Bump version to 3.1.0.pre2Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/a7a673ce22
2019-10-15[rubygems/rubygems] Also bump test variableHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/97e9768612