aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* delegate.rb: fixed keyword arguments in DelegateClassNobuyoshi Nakada2020-03-152-1/+9
| | | | | | | `Delegator.delegating_block` should delegate keyword arguments separately. [ruby-core:96949] (cherry picked from commit 9bcf4f3db26249772c983896ebbc9ff41f4614db)
* Make ruby2_keywords methods correctly handle **{} optimizationJeremy Evans2020-03-152-0/+22
| | | | | | | | | | | | | | | | Previously, this code: ruby2_keywords def foo(*a) a.last end foo(**{}) Returned an empty frozen hash. However, the final hash should not be frozen in this case, as it wouldn't be if foo accepted a keyword splat. Use a new unfrozen empty hash instead of reusing the frozen empty hash in this case. Fixes [Bug #16642]
* * 2020-03-14 [ci skip]git2020-03-141-1/+1
|
* Drop MinGW build from AppVeyorTakashi Kokubun2020-03-141-50/+0
| | | | | | in favor of #2791 (cherry picked from commit b00418732c89ce42c1c4cef57d08344659fbdd2b)
* Don't display singleton class in Method#inspect unless method defined thereJeremy Evans2020-03-143-1/+34
| | | | | | | | | | | | | | Previously, if an object has a singleton class, and you call Object#method on the object, the resulting string would include the object's singleton class, even though the method was not defined in the singleton class. Change this so the we only show the singleton class if the method is defined in the singleton class. Fixes [Bug #15608] (cherry picked from commit e02bd0e713ef920e6d12c27f16548f48ec5c2cf0)
* Fixed duplicated warningNobuyoshi Nakada2020-03-142-6/+6
| | | | | | | As `command_rhs` is always a "value expression", `command_asgn` does not need the same check. [Bug #16619] (cherry picked from commit 6e6844320de989cb88a154e2ac75066ccea1bba2)
* Fixed symbol misused as IDNobuyoshi Nakada2020-03-143-4/+13
| | | | | | | `rb_funcallv_public` and `rb_respond_to` require an `ID`, not a `Symbol`. [Bug #16649] (cherry picked from commit 8b6e2685a4b7c7de905f7ed60c02ef85e0724754)
* Pass keyword arguments to IOs properly [Bug #16639]Nobuyoshi Nakada2020-03-132-2/+13
| | | | (cherry picked from commit 041c2932e336b509b0ddc1fdbd9f160bce8d4893)
* lib/drb/drb.rb: Use ruby2_keywords for keyword separationYusuke Endoh2020-03-133-1/+29
| | | | | | [Bug #16634] (cherry picked from commit fb472ca7adbaceb35aae1b3a6b948720ffc9eb53)
* Add the loaded feature after no exception raisedNobuyoshi Nakada2020-03-132-2/+8
| | | | | | | Retrying after rescued `require` should try to load the same library again. [Bug #16607] (cherry picked from commit 7d6903dc476f982e7b432adbeef3a3d9372a309f)
* fix the order of definitionNARUSE, Yui2020-03-131-1/+1
|
* Use osuosl instead of GitHub releasesHiroshi SHIBATA2020-03-131-3/+3
| | | | | | Because the package provided by GitHub releases is different from sourceware. (cherry picked from commit 47a1872cd8b901b8aab6dedce7fa3807c97d290d)
* Switch to download libffi source package to github releases from sourceware.orgHiroshi SHIBATA2020-03-131-3/+3
| | | | | [Bug #16681] (cherry picked from commit 86022167461dc90b70164e2bb23316959bbfd6ba)
* [ruby/io-console] Set `OPOST` when `intr` is trueNobuyoshi Nakada2020-03-131-0/+1
| | | | | | | | | | To enable implementation-defined output processing, for the compatibility with readline. [Bug #16509] https://bugs.ruby-lang.org/issues/16509 https://github.com/ruby/io-console/commit/8c8b0b6757 (cherry picked from commit 4e56ec4ef74cf77dbcb4ce7c669e0595cd0d12fa)
* Separate objspace argument for rb_gc_disable and rb_gc_enableNobuyoshi Nakada2020-03-132-6/+27
| | | | (cherry picked from commit aeaf0dc55595b8a5bfdd92007fb85ef13855c632)
* Skip empty directories to install [Bug #16596]Nobuyoshi Nakada2020-03-131-1/+2
| | | | (cherry picked from commit 33d02e6bc7502c5a3f09c59908a8c9f08a474b8d)
* Squashed commit of the following: [Backport #16516]NARUSE, Yui2020-03-133-2/+15
| | | | | | | | | | | | | | commit c98c492578d898dc07a04b8240d8d5b1508ffafa Author: Nobuyoshi Nakada <nobu@ruby-lang.org> Date: Fri Jan 17 16:56:53 2020 +0900 Added test for f38b3e8c707ebdcad05aa9485cf1760640b74fbb commit f38b3e8c707ebdcad05aa9485cf1760640b74fbb Author: Nobuyoshi Nakada <nobu@ruby-lang.org> Date: Thu Jan 16 18:34:31 2020 +0900 Fixed the location of args node with numbered parameter
* Disable GC until VM objects get initialized [Bug #16616]Nobuyoshi Nakada2020-03-133-0/+4
|
* Increase the frozen_strings table initial sizeJean Boussier2020-03-131-1/+1
| | | | | | | | | | | It was set to 1000 in a4a2b9be7a55bb61d17cf9673ed0d2a93bb52d31. However on ruby-2.7.0p0, there are much more than 1k frozen string right after boot: ``` $ ruby -robjspace -e 'p ObjectSpace.each_object(String).select { |s| s.frozen? && ObjectSpace.dump(s).include?(%{"fstring":true})}.uniq.count' 5948 ```
* * 2020-03-13 [ci skip]git2020-03-131-2/+2
|
* Update documentation for Array/Hash Argument section of methods.rdocAdam Isom2020-03-131-2/+13
| | | | [Bug #16514]
* Use `brew upgrade` instead of `brew update`Kazuhiro NISHIYAMA2020-02-201-1/+1
|
* * 2020-02-20 [ci skip]git2020-02-201-1/+1
|
* Avoid jumping to a wrong destinationTakashi Kokubun2020-02-202-2/+17
| | | | when the next insn is already compiled by former branches.
* * 2020-02-18 [ci skip]git2020-02-181-1/+1
|
* increment teenyNARUSE, Yui2020-02-181-2/+2
|
* Fix typo s/test_ruby2_keywords_hash!/test_ruby2_keywords_hash/Ryuta Kamizono2020-02-181-1/+1
| | | In #2818, `Hash.ruby2_keywords!` has renamed to `Hash.ruby2_keywords_hash`.
* hash.c: Add a feature to manipulate ruby2_keywords flagYusuke Endoh2020-02-182-0/+73
| | | | | | | | | | | | | | | It was found that a feature to check and add ruby2_keywords flag to an existing Hash is needed when arguments are serialized and deserialized. It is possible to do the same without explicit APIs, but it would be good to provide them as a core feature. https://github.com/rails/rails/pull/38105#discussion_r361863767 Hash.ruby2_keywords_hash?(hash) checks if hash is flagged or not. Hash.ruby2_keywords_hash(hash) returns a duplicated hash that has a ruby2_keywords flag, [Bug #16486]
* * 2020-02-13 [ci skip]git2020-02-131-3/+3
|
* Return the makefile contentNobuyoshi Nakada2020-02-131-0/+1
| | | | | Block for `create_makefile` is expected to return the content of the makefile.
* Move .IGNORE in extconf.rbNARUSE, Yui2020-02-132-3/+1
|
* Support nmakeNARUSE, Yui2020-02-131-0/+2
|
* Ignore expected errors on compiling C++ source [Bug #16331]NARUSE, Yui2020-02-131-0/+1
| | | | | | | | | | | | | | BSD make can run parallel more aggressively than GNU make. It communicate with other make process through -J option in MAKEFLAGS environment variable to notify a build failure happend in an other pararell make process. https://www.freebsd.org/cgi/man.cgi?make It usually works well but ext/-test-/cxxanyargs/Makefile has two targets which are expected to fail (failure.o and failurem1.o). Additional note: To test and debug this issue, following command will speed up it. `make -f exts.mk -j8 clean all`
* Restart timer thread even after preparation failedNobuyoshi Nakada2020-02-132-2/+18
| | | | | If the timer thread is left stopped, memory crash or segfault can happen. [Bug #16624]
* check ruby_2_7 branchNARUSE, Yui2020-01-301-6/+6
|
* Allow rexml to fail on macOS of Github ActionsNobuyoshi Nakada2020-01-301-2/+2
| | | | | And revert "Stop test-bundled-gems on macOS for now", 28b290f7f4cb332dab3ddf3132e1916d413ea65c.
* Stop test-bundled-gems on macOS for nowNobuyoshi Nakada2020-01-301-1/+1
|
* .github/workflows/cygwin.yml: RemovedYusuke Endoh2020-01-301-93/+0
| | | | | | There is no active maintainer for cygwin. The CI failure is too noisy. [Misc #16407]
* Checkout with git on cygwin for EOL codeNobuyoshi Nakada2020-01-301-2/+2
| | | | | | `shell: bash` runs bash on msys which prefers git on msys too, then checked out in CRLF mode. Cygwin sed doesn't consider the CR a part of EOL code, though.
* Allow failures with rss tests on test-bundled-gemsHiroshi SHIBATA2020-01-302-2/+4
|
* Add branch option to checkout on pushKazuhiro NISHIYAMA2020-01-306-7/+9
|
* Slightly change the job wording [ci skip]Takashi Kokubun2020-01-306-6/+6
| | | | mame-san said it's weird
* Support running Actions on a forkTakashi Kokubun2020-01-306-12/+12
| | | | | | | | | Since 8c9450e7b875db846b19cc631af0d7fee66db5c6, we increased the chance to run GitHub Actions on a fork, as we usually use a topic branch instead of master when filing a pull request. This patch makes it possible to reuse the same GitHub Actions config on a fork repository.
* Directly refer to GitHub eventsTakashi Kokubun2020-01-304-22/+9
| | | | instead of unnecessarily defining env vars
* Remove code to prevent double build on trunkTakashi Kokubun2020-01-307-9/+6
| | | | trunk branch was deleted.
* More consistent failure notificationsTakashi Kokubun2020-01-306-10/+24
| | | | The format is the same as Travis / AppVeyor now.
* Make test run condition consistent with other jobsTakashi Kokubun2020-01-301-2/+0
| | | | | When `make all` fails, we should not run tests and output of such run is confusing.
* Run tests in the consistent orderTakashi Kokubun2020-01-301-10/+10
| | | | `make check` runs test -> test-all -> test-spec, and other CIs follow that too.
* Fix an outdated commentTakashi Kokubun2020-01-301-1/+1
| | | | We're actually using it for PR :p
* Actions MinGW - fix test-all (#2803)MSP-Greg2020-01-301-2/+2
|