Commit graph

63490 commits

Author SHA1 Message Date
Samuel Williams
0f613cc5f1 Add support for ConditionVariable. 2020-09-14 16:44:09 +12:00
Samuel Williams
1a0cfe2839 Improve handling of urgent notification pipe. 2020-09-14 16:44:09 +12:00
Samuel Williams
3dc0fc11f0 Update dependencies 2020-09-14 16:44:09 +12:00
Benoit Daloze
178c1b0922 Make Mutex per-Fiber instead of per-Thread
* Enables Mutex to be used as synchronization between multiple Fibers
  of the same Thread.
* With a Fiber scheduler we can yield to another Fiber on contended
  Mutex#lock instead of blocking the entire thread.
* This also makes the behavior of Mutex consistent across CRuby, JRuby and TruffleRuby.
* [Feature #16792]
2020-09-14 16:44:09 +12:00
Samuel Williams
9e0a48c7a3 Prefer rb_thread_current_scheduler. 2020-09-14 16:44:09 +12:00
Samuel Williams
701dcbb3ca Add support for hooking IO#read. 2020-09-14 16:44:09 +12:00
Samuel Williams
132453fa52 Rename Fiber{} to Fiber.schedule{}. 2020-09-14 16:44:09 +12:00
Samuel Williams
d387029f39 Standardised scheduler interface. 2020-09-14 16:44:09 +12:00
Samuel Williams
905e9c8093 Simplify bitmasks for IO events. 2020-09-14 16:44:09 +12:00
Samuel Williams
6747cb5754 Add RB_ prefix to GetOpenFile and MakeOpenFile. 2020-09-14 16:44:09 +12:00
Samuel Williams
703e529751 Add rb_thread_current_scheduler(). 2020-09-14 16:44:09 +12:00
Hiroshi SHIBATA
a9ccebbda0
Added promoted libraries to default gems section on NEWS 2020-09-14 12:02:43 +09:00
git
ba73e44751 * 2020-09-14 [ci skip] 2020-09-14 02:20:41 +09:00
aycabta
b682e0fc21 [ruby/irb] Version 1.2.6
5a7dd8c3bf
2020-09-14 02:14:02 +09:00
aycabta
5bb9e12573 [ruby/irb] Need calculate_width and split_by_width of Reline::Unicode of reline 0.1.5 or later
c05bc9e595
2020-09-14 02:13:32 +09:00
aycabta
8f9b1902f4 [ruby/irb] Omit output if first line of multiline is too long
0feeae38c5
2020-09-14 02:13:18 +09:00
aycabta
e468d9f49c [ruby/irb] Add OMIT_ON_ASSIGNMENT
Omit the results evaluated at assignment if they are too long.

The behavior of ECHO_ON_ASSIGNMENT being on by default is hard to understand,
so I change it to off by default. Instead, we turn OMIT_ON_ASSIGNMENT on by
default. The result is displayed on assignment, but it will always be short
and within one line of the screen.

c5ea79d5ce
2020-09-14 02:13:11 +09:00
aycabta
5d841f5631 [ruby/irb] Version 1.2.5
07beb3964d
2020-09-14 02:12:58 +09:00
aycabta
3a3e933033 [ruby/reline] Version 0.1.5
c8a419beb5
2020-09-14 02:12:12 +09:00
git
d7b279e79f * 2020-09-13 [ci skip] 2020-09-13 12:35:37 +09:00
Kazuhiro NISHIYAMA
3bdf8efd81
Fix typos [ci skip] 2020-09-13 12:35:06 +09:00
Masaki Matsushita
0ac185be40 Fix compile-time check for copy_file_range(2)
* close fds properly
* define USE_COPY_FILE_RANGE if HAVE_COPY_FILE_RANGE is defined
* avoid errors on cross-compiling environments
2020-09-12 16:27:14 +09:00
Masaki Matsushita
012785ef35 Check copy_file_range(2) is actually supported.
see also: https://gitlab.com/gitlab-org/gitlab/-/issues/218999#note_363225872
2020-09-12 16:07:35 +09:00
aycabta
ae508633b7 Suppress "assigned but unused variable" warning 2020-09-12 10:07:18 +09:00
aycabta
777d536749 [ruby/reline] Support for word movement escape sequences in iTerm2
187235f88c
2020-09-12 08:35:52 +09:00
aycabta
f36dc2b6de [ruby/reline] Treat prompt correctly when Reline.prompt_proc isn't set
9c9ba0eff3
2020-09-12 08:35:52 +09:00
aycabta
ce389ade45 [ruby/reline] Move cursor to currect vertical pos after rendering a logical line
9b932df544
2020-09-12 08:35:52 +09:00
aycabta
9baf1bd0a4 [ruby/reline] Stop using chomp option of lines method
3e2f55c3e0
2020-09-12 08:35:52 +09:00
aycabta
0ec19cc843 [ruby/reline] Stop erasing chars after the cursor at eol
When the cursor is at the end of the line and erases characters after the
cursor, some terminals delete the character at the cursor position.

e96ec97b02
2020-09-12 08:35:52 +09:00
aycabta
2e34b35a0f [ruby/reline] Skip the nil obtained from getc
The nil means there is nothing in the buffer in some systems. Incidentally,
Errno::EIO is raised if the I/O is closed.

c698634e74
2020-09-12 08:35:52 +09:00
Yoshinao Muramatu
a840ef8569 [ruby/reline] not clear scrollback buffer
ba800f1461
2020-09-12 08:35:51 +09:00
Yoshinao Muramatu
0862744010 [ruby/reline] clear_screen use Windows API
2c5ee54cb3
2020-09-12 08:35:51 +09:00
aycabta
770e66030a [ruby/reline] Use str.encoding by default for split_by_width
2d32604c9e
2020-09-12 08:35:51 +09:00
git
ae5d97ca53 * 2020-09-12 [ci skip] 2020-09-12 08:31:07 +09:00
Hiroshi SHIBATA
6042b7433d
Promote time.rb to default gems 2020-09-12 08:29:06 +09:00
Hiroshi SHIBATA
01e0d74965
Promote resolv-replace to default gems 2020-09-11 22:01:08 +09:00
Hiroshi SHIBATA
e0675b1c76
Promote resolv to default gems 2020-09-11 21:50:07 +09:00
Hiroshi SHIBATA
d1851ba5b9
Promote securerandom to default gems 2020-09-11 21:15:25 +09:00
Hiroshi SHIBATA
2f24818319
Promote open-uri to default gems 2020-09-11 20:38:18 +09:00
Soutaro Matsumoto
f0ddbd502c
Let String#slice! return nil (#3533)
Returns `nil` instead of an empty string when non-integer number is given (to make it 2.7 compatible).
2020-09-11 14:34:10 +09:00
Nobuyoshi Nakada
0d78390bfb
rbinstall.rb: OpenStruct has not been needed for years
Since 6f3e8df133 in 2014.
2020-09-11 13:26:20 +09:00
Kazuhiro NISHIYAMA
406559a268
Add missing break
pointed out by Coverity Scan
2020-09-11 11:02:24 +09:00
Hiroshi SHIBATA
d55c914f0f Removed DRb.default_safe_level and DRb#safe_level 2020-09-11 10:52:52 +09:00
Hiroshi SHIBATA
e691e671ca Removed Thread#safe_level 2020-09-11 10:52:52 +09:00
git
440ab313d0 * 2020-09-11 [ci skip] 2020-09-11 00:49:18 +09:00
Matt Valentine-House
ef22af4db0 If the GC runs before the Mutex's are initialised then we get a crash in pthread_mutex_lock.
It is possible for GC to run during initialisation due to objects being allocated
2020-09-10 08:48:51 -07:00
Hiroshi SHIBATA
867204c4a5
Promote syslog to default gems 2020-09-10 20:42:53 +09:00
Hiroshi SHIBATA
cf76a4a5c2
Promote base64 to default gems 2020-09-10 18:56:17 +09:00
Hiroshi SHIBATA
cf681038d6
Promote shellwords to default gems 2020-09-10 18:56:17 +09:00
Hiroshi SHIBATA
cee8e95761
Promote abbrev to default gems 2020-09-10 18:56:16 +09:00