summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2019-10-15Remove duplicated `.` [ci skip]Kazuhiro NISHIYAMA
2019-10-15Use compare_by_identity hash [Bug #16250]Nobuyoshi Nakada
2019-10-15Try to avoid random failureKazuhiro NISHIYAMA
https://rubyci.org/logs/rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20191015T070011Z.fail.html.gz ``` 1) Failure: TestProcess#test_kill_at_spawn_failure [/home/chkbuild/chkbuild/tmp/build/20191015T070011Z/ruby/test/ruby/test_process.rb:2276]: [ruby-core:69304] [Bug #11166]. <#<Thread:0x000009f60a7cac40@/home/chkbuild/chkbuild/tmp/build/20191015T070011Z/ruby/test/ruby/test_process.rb:2272 dead>> expected but was <nil>. ``
2019-10-14Simplify circular reference check of IRB::ColorTakashi Kokubun
2019-10-14IRB colorize: take into account recursive arrays and hashes (#2555)Ary Borenszweig
[Bug #16250]
2019-10-15* 2019-10-15 [ci skip]git
2019-10-14Update documentation for File#{readable,writable,executable}{,_real}? [ci skip]Jeremy Evans
Some OS-level security features cause these methods to not return expected results. For example fs.protected_regular sysctl on Linux, or pledge(2)/unveil(2) on OpenBSD. Fixes [Bug #16002]
2019-10-14add require "monitor"Masatoshi SEKI
2019-10-14Automatically close fds on fork (and GC). The connection pools are ↵Masatoshi SEKI
maintained at thread scope.
2019-10-14[flori/json] fix test as reported in #343Florian Frank
https://github.com/flori/json/commit/565c72ba9e
2019-10-14[flori/json] Add ascii_only option to JSON::Ext::Generator::State.new.Sho Hashimoto
https://github.com/flori/json/commit/0e99a9aac5