summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-26Oops! Add another test and fix to_proc implementationAaron Patterson
2021-02-27* 2021-02-27 [ci skip]git
2021-02-26Fiddle::Function responds to to_procAaron Patterson
This lets us cast a Fiddle::Function to a block, allowing is to write things like: ```ruby f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP) define_method :strcpy, &f ```
2021-02-25Revert "Add tests for bug 17652"Aaron Patterson
This reverts commit a9920e7782f225b97e173a88640fe9e116b9964f.
2021-02-26[ruby/reline] Version 0.2.4aycabta
https://github.com/ruby/reline/commit/462f971bd3
2021-02-26* 2021-02-26 [ci skip]git
2021-02-25Add tests for bug 17652Peter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4227
2021-02-25Disable auto compaction on platforms that do not support itPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4227
2021-02-25Use mmap for allocating heap pagesPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4227
2021-02-25[ruby/irb] Version 1.3.4aycabta
https://github.com/ruby/irb/commit/ab9852ccc5
2021-02-25rb_random_int: ended before it begins卜部昌平
It existed since f3d022543ef2afde3d53e7f6b3028eafe39d0ef4 until 96760236079b15674a6322a2ca41b1528b51afbd. No official releases included the actual function. The declaration shall be deleted.
2021-02-24Reverting PR #4221Aaron Patterson
It seems this breaks tests on Solaris, so I'm reverting it until we figure out the right fix. http://rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20210224T210007Z.fail.html.gz
2021-02-25* 2021-02-25 [ci skip]git
2021-02-24Add tests for bug 17652Peter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4221
2021-02-24Disable auto compaction on platforms that do not support itPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4221
2021-02-24Use mmap for allocating heap pagesPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4221
2021-02-24Update bundled_gemsKazuhiro NISHIYAMA
2021-02-24rb_fiber_terminate never returnsNobuyoshi Nakada
2021-02-24* 2021-02-24 [ci skip]git
2021-02-24Revert "Enclose crtitical sections in `thread_exclusive` block"Nobuyoshi Nakada
19cc24b34b0490b7c2779eec521fe0089e05f183 and fixups.
2021-02-23Use the system getenv in setup_debug_logNobuyoshi Nakada
As ruby_set_debug_option() is called before ruby_sysinit(), CRITICAL_SECTIONs are not initialized yet.
2021-02-23Fixed commit miss at 41eb4fbf86e7ae9c9ff993e07a19fa44eb74be9bNobuyoshi Nakada
2021-02-23Make uenvarea thread exclusiveNobuyoshi Nakada
2021-02-23Fixed commit miss at 19cc24b34b0490b7c2779eec521fe0089e05f183Nobuyoshi Nakada
2021-02-23Constified possible dataNobuyoshi Nakada
2021-02-23Enclose crtitical sections in `thread_exclusive` blockNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4214
2021-02-22Drop obsoleted ci skip checksTakashi Kokubun
https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
2021-02-22Drop check_branch CI jobTakashi Kokubun
Now that GitHub Actions always skips any job if [ci skip] is given regardless of our CI config, we cannot merge such PRs like https://github.com/ruby/ruby/pull/4211 unless you're an admin. https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/ To avoid letting us spend time to ask contributors to remove [ci skip] before merging PRs, I removed the "check_branch" requirement from protected branches. Because the main purpose of this job was to prevent (non-admin) committers from directly pushing commits to the GitHub mirror, this job is now useless.
2021-02-23added mutexes for socket and connection lists on win32Andrew Aladjev
Notes: Merged: https://github.com/ruby/ruby/pull/4212
2021-02-23[DOC] Fix copy+paste mistake [ci skip]Lars Kanis
It was introduced in commit 089b7a84606925e885fe91050483a352735aa91e . Notes: Merged: https://github.com/ruby/ruby/pull/4211
2021-02-23* 2021-02-23 [ci skip]git
2021-02-22Check for cyclic prepend before making originAlan Wu
It's important to only make the origin when the prepend goes through, as the precense of the origin informs whether to do an origin backfill. This plus 2d877327e fix [Bug #17590]. Notes: Merged: https://github.com/ruby/ruby/pull/4181
2021-02-22Expand final path name buffer for namespace prefixNobuyoshi Nakada
As final path name includes the namespace prefix, so expand room for it in path name buffer. Notes: Merged: https://github.com/ruby/ruby/pull/4210
2021-02-22Search subclasses from constantsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4209
2021-02-22[ruby/reline] fix Reline::Windows.getconsolemode buffercremno
use double quotes to properly convert the \000 escape sequence. https://github.com/ruby/reline/commit/236dfe5683
2021-02-22Improve extension docs, remove deprecated rb_cData [ci skip]Lars Kanis
rb_cData is deprecated and the characteristic alloc_func was already removed in ruby-3.0. So this updates the recommendation accordingly. It also adds fdbm_alloc() in order to show the allocation process and to gives TypedData_Make_Struct() more context. Moreover it describes fdbm_aref(), so that the relation to rb_define_method() is shown. And fdbm_aref() makes use of GetDBM() now, to show how this macro might be used. Notes: Merged: https://github.com/ruby/ruby/pull/4208 Merged-By: nobu <nobu@ruby-lang.org>
2021-02-22* 2021-02-22 [ci skip]git
2021-02-22Send :fiber_switch event for almost every fiber_switch (#4207)nicholas a. evans
With this patch, TracePoint receives a `:fiber_switch` event for _almost_ every fiber switch. Previously, it would not be sent when an exception was going to be raised. Now the event should only be blockable by an interrupt (including `Thread#raise`) or a fatal error. Additionally, interrupts will now be checked on the return fiber _before_ re-raising the terminating unhandled exception. And a fiber that terminates with an unhandled exception no longer creates a pending interrupt on its thread. The exception will be raised in the return fiber the same way as `Fiber#raise`: using `cont.value` with `cont.argc == -1` I moved `rb_exc_raise` from `fiber_store` to the end of `fiber_switch` after _all_ of the other cleanup code: `fiber_stack_release`, `th->blocking` increment, `RUBY_VM_CHECK_INTS`, and `EXEC_EVENT_HOOK`. It seems to me that skipping those other cleanup steps may have also resulted in other bugs. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2021-02-21[ruby/reline] Use UTF-8 only for width calc, rest uses original encodingaycabta
I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and DEC graphics by reading source code, so can't test this patch by yamatanoorogi gem through vterm gem for now. This fixes ruby/irb#190. https://github.com/ruby/reline/commit/44596c0cc7
2021-02-21[ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof ↵Yoshinao Muramatu
processing https://github.com/ruby/reline/commit/3535676689
2021-02-21[ruby/reline] We still need support new and legacy behavior.Yoshinao Muramatu
Revert "Support for change in Windows-specific behavior at eol" This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82. https://github.com/ruby/reline/commit/646587fc2c
2021-02-21[ruby/reline] Add a test for suppressing crash when dynamic prompt returns emptyaycabta
ref. https://github.com/ruby/reline/pull/262 https://github.com/ruby/reline/commit/b98bc3c329
2021-02-21[ruby/reline] Move script files for yamatanooroti testsaycabta
https://github.com/ruby/reline/commit/03031b885d
2021-02-21[ruby/reline] Avoid tripping over nil promptEamonn Webster
https://github.com/ruby/reline/commit/d4d9d3e3d4
2021-02-21[ruby/reline] Return 1 when char width not foundaycabta
This fixes ruby/reline#261. https://github.com/ruby/reline/commit/3cf1213014
2021-02-21* 2021-02-21 [ci skip]git
2021-02-20MSys is a variant of CygwinNobuyoshi Nakada
2021-02-20[Win32] Fixed preprocessed file pathNobuyoshi Nakada
Output preprocessed files under the corresponding directory to the source files.
2021-02-20Make String#{strip,lstrip}{,!} strip leading NUL bytesJeremy Evans
The documentation already specifies that they strip whitespace and defines whitespace to include null. This wraps the new behavior in the appropriate guards in the specs, but does not specify behavior for previous versions, because this is a bug that could be backported. Fixes [Bug #17467] Notes: Merged: https://github.com/ruby/ruby/pull/4164
2021-02-19Improve performance some Numeric methods [Feature #17632] (#4190)S.H
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>