Marc-Andre Lafortune
e026e186f4
[ruby/ostruct] Revert "ostruct.rb: deferred accessors"
...
This reverts commits:
dc38e99813
22c082fcfd
b499e0f9ff
58e5876646
Add test for overriden private methods
[Fixes https://bugs.ruby-lang.org/issues/12136 ]
2020-09-14 12:46:27 -04:00
git
1cabb216c6
* 2020-09-15 [ci skip]
2020-09-15 00:05:28 +09:00
Koichi Sasada
e81d7189a0
sync fstring pool
...
fstring pool should be sync with other Ractors.
2020-09-15 00:04:59 +09:00
Koichi Sasada
74ddac1c82
relax dependency
...
vm_sync.h does not need to include vm_core.h and ractor_pub.h.
2020-09-15 00:04:59 +09:00
Koichi Sasada
f7ccb8dd88
restart Ractor.select on intterupt
...
signal can interrupt Ractor.select, but if there is no exception,
Ractor.select should restart automatically.
2020-09-15 00:04:59 +09:00
Nobuyoshi Nakada
edb5c67195
[ruby/tmpdir] Warn when environment variables skipped ( fixes #2 )
...
af7b020a89
2020-09-14 18:22:37 +09:00
Nobuyoshi Nakada
df1c035d03
[ruby/tmpdir] Test "not writable" case
...
84684d80f9
2020-09-14 18:22:19 +09:00
Nobuyoshi Nakada
04de778ef1
[ruby/tmpdir] Test "not a directory" cases
...
f335f2c23e
2020-09-14 18:22:09 +09:00
Nobuyoshi Nakada
f7f849e30c
[ruby/tmpdir] Test also TMP and TEMP environment variables
...
414c00ebe6
2020-09-14 18:21:59 +09:00
Nobuyoshi Nakada
50bce2065d
[ruby/tmpdir] Prefer better failure message
...
ac12877306
2020-09-14 18:21:46 +09:00
Nobuyoshi Nakada
9fbbbadc96
Added just working Test::Unit::CoreAssertions#diff
...
This is not "diff", but show expected and actual results both,
just to get rid of `NoMethodError` when an assertion failed.
2020-09-14 18:19:40 +09:00
Jeremy Evans
d52dffd817
[ruby/zlib] Add Zlib::GzipReader.zcat for handling multiple gzip streams in gz file
...
Most gzip tools support concatenated gz streams in a gz file. This
offers a way to handle such gz files in Ruby.
Fixes [Bug #9790 ]
Fixes [Bug #11180 ]
Fixes [Bug #14804 ]
e2ce56de7d
2020-09-14 17:52:20 +09:00
nicholas a. evans
f1d32010e6
[ruby/net-smtp] Add SNI support to net/smtp
...
b706942392
2020-09-14 17:26:36 +09:00
TOMITA Masahiro
141404e898
[ruby/net-smtp] Net::SMTP.start arguments are keyword arguments
...
The helo argument is not important, but the helo argument must be
specified to specify the user and secret arguments.
If helo, user, secret, and authtype arguments are keyword arguments,
it is not necessary to specify the helo argument.
269774deac
2020-09-14 17:23:41 +09:00
TOMITA Masahiro
888e04ae05
[ruby/net-smtp] TLS should not check the host name by default.
...
In tlsconnect(), the host name is checked when
@ssl_context.verify_mode is not OpenSSL::SSL::VERIFY_NONE, but the
verify_mode of @ssl_context generated by default is nil.
bde75a15b5
2020-09-14 17:22:35 +09:00
Hiroshi SHIBATA
cdb85142f9
[ruby/erb] Use libexec same as ruby core repository
...
660255cf24
2020-09-14 17:15:44 +09:00
Koichi Sasada
ccb944fcfe
add NEW entries about Ractor and new method cache.
2020-09-14 16:22:13 +09:00
Hiroshi SHIBATA
78ef7eeb36
Manually picked 724bdb8e1d
2020-09-14 14:07:37 +09:00
Hiroshi SHIBATA
eace12c25b
Fixup 8f71bb0e4f
2020-09-14 14:06:02 +09:00
Samuel Williams
7fca274198
Rework console to use rb_io_wait
.
2020-09-14 16:44:09 +12:00
Samuel Williams
8eea66a0ca
Add support for Queue & SizedQueue.
2020-09-14 16:44:09 +12:00
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