Граф коммитов

63028 Коммитов

Автор SHA1 Сообщение Дата
Samuel Williams 026ba68c10 Fix handling of FMODE_PREP. 2020-09-15 22:53:08 +12:00
Samuel Williams a9b2a96c5c Fix incorrect initialization of `rb_io_t::self`. 2020-09-15 22:53:08 +12:00
Kazuhiro NISHIYAMA b2b855f486
Fix `warning: instance variable bt_locations not initialized` 2020-09-15 14:03:41 +09:00
Kazuhiro NISHIYAMA f3754dfc2e
Fix missing `"` [ci skip] 2020-09-15 14:03:22 +09:00
aycabta 29b1ac613b Add IRB and Reline update for NEWS of 3.0.0-preview1 2020-09-15 09:40:24 +09:00
Marc-Andre Lafortune 60f5d38482 [ruby/ostruct] Fix dup/clone 2020-09-14 16:10:37 -04:00
Marc-Andre Lafortune 125605abd9 [ruby/ostruct] method_missing is private 2020-09-14 16:10:37 -04:00
Marc-Andre Lafortune 606c009ce2 [ruby/ostruct] Avoid self calling our public methods.
Found because `json` has a bad example in its test suite.
This implementation still offers better encapsulation.
2020-09-14 16:10:37 -04:00
Marc-Andre Lafortune 67e5f7a9e5 [ruby/ostruct] Reinstate recent changes
This reverts commit 28e60b0045.
2020-09-14 16:10:37 -04:00
Marc-Andre Lafortune 39312cf4d6 Optimize Pathname#relative? / absolute? 2020-09-14 14:18:23 -04:00
Marc-Andre Lafortune 28e60b0045 [ruby/ostruct] Revert recent changes
This reverts commit e026e186f4..12a2e32d43.
2020-09-14 13:29:54 -04:00
Marc-Andre Lafortune 867f0c6793 [ruby/rdoc] Prefer require_relative 2020-09-14 12:59:11 -04:00
Marc-Andre Lafortune 12a2e32d43 [ruby/ostruct] Add access to public instance methods in case they are overriden 2020-09-14 12:46:51 -04:00
Marc-Andre Lafortune 12a13eef49 [ruby/ostruct] Tweak doc 2020-09-14 12:46:49 -04:00
Marc-Andre Lafortune 8eefa8f373 [ruby/ostruct] Allow overriding public methods
[Fixes https://bugs.ruby-lang.org/issues/15409]
2020-09-14 12:46:47 -04:00
Marc-Andre Lafortune ebb8de7302 [ruby/ostruct] Refactor handling of frozen OpenStruct. Simplify `new_ostruct_member!` 2020-09-14 12:46:45 -04:00
Marc-Andre Lafortune 5e7ec05319 [ruby/ostruct] Add really basic test that was missing 2020-09-14 12:46:43 -04:00
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)
https://github.com/ruby/tmpdir/commit/af7b020a89
2020-09-14 18:22:37 +09:00
Nobuyoshi Nakada df1c035d03 [ruby/tmpdir] Test "not writable" case
https://github.com/ruby/tmpdir/commit/84684d80f9
2020-09-14 18:22:19 +09:00
Nobuyoshi Nakada 04de778ef1 [ruby/tmpdir] Test "not a directory" cases
https://github.com/ruby/tmpdir/commit/f335f2c23e
2020-09-14 18:22:09 +09:00
Nobuyoshi Nakada f7f849e30c [ruby/tmpdir] Test also TMP and TEMP environment variables
https://github.com/ruby/tmpdir/commit/414c00ebe6
2020-09-14 18:21:59 +09:00
Nobuyoshi Nakada 50bce2065d [ruby/tmpdir] Prefer better failure message
https://github.com/ruby/tmpdir/commit/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]

https://github.com/ruby/zlib/commit/e2ce56de7d
2020-09-14 17:52:20 +09:00
nicholas a. evans f1d32010e6 [ruby/net-smtp] Add SNI support to net/smtp
https://github.com/ruby/net-smtp/commit/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.

https://github.com/ruby/net-smtp/commit/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.

https://github.com/ruby/net-smtp/commit/bde75a15b5
2020-09-14 17:22:35 +09:00
Hiroshi SHIBATA cdb85142f9 [ruby/erb] Use libexec same as ruby core repository
https://github.com/ruby/erb/commit/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