Commit graph

63490 commits

Author SHA1 Message Date
Benoit Daloze
9d8eeccf06 Revert "skip on RUBY_ISEQ_DUMP_DEBUG=to_binary"
This reverts commit 889bbbaf52.
2020-09-16 10:39:27 +02:00
Koichi Sasada
889bbbaf52 skip on RUBY_ISEQ_DUMP_DEBUG=to_binary
9b535f3ff7 does not support ISeq#to_binary.
To make CI green, skip this test temporarily.

Please fix this issue and revert this patch.
2020-09-16 15:44:26 +09:00
Hiroshi SHIBATA
344304c89f
Use build_message on test_securerandom.rb (#3543)
* Revert "Revert "[ruby/securerandom] Use build_message instead of message for test-unit""
* [ruby/securerandom] Fixed the wrong usage of build_message
2020-09-16 07:45:01 +09:00
Benoit Daloze
1af0319fc8 2.8 -> 3.0 in specs 2020-09-15 21:56:00 +02:00
Benoit Daloze
9b535f3ff7 Interpolated strings are no longer frozen with frozen-string-literal: true
* Remove freezestring instruction since this was the only usage for it.
* [Feature #17104]
2020-09-15 21:32:35 +02:00
Jean Boussier
fbba6bd4e3 Parse ObjectSpace.dump_all / dump arguments in Ruby to avoid allocation noise
[Feature #17045] ObjectSpace.dump_all should allocate as little as possible in the GC heap

Up until this commit ObjectSpace.dump_all allocates two Hash because of `rb_scan_args`.

It also can allocate a `File` because of `rb_io_get_write_io`.

These allocations are problematic because `dump_all` dumps the Ruby
heap, so it should try modify as little as possible what it is
observing.
2020-09-15 09:18:13 -07:00
git
a0d50465de * 2020-09-16 [ci skip] 2020-09-16 01:09:49 +09:00
Aaron Patterson
86087a1527 pointers on the stack need to be pinned 2020-09-15 09:09:25 -07:00
Hiroshi SHIBATA
ee10efdcf0
Revert "[ruby/securerandom] Use build_message instead of message for test-unit"
This reverts commit 7f9f5f5723.
2020-09-15 21:44:59 +09:00
Jeremy Evans
abbd324152 [ruby/uri] Remove deprecated URI.escape/URI.unescape
61c6a47ebf
2020-09-15 21:17:20 +09:00
Hiroshi SHIBATA
7f9f5f5723 [ruby/securerandom] Use build_message instead of message for test-unit
826b877e83
2020-09-15 21:07:27 +09:00
Ashwin Maroli
3dd9e12b51 [ruby/fileutils] Reduce iteration through list for :mkdir_p
By calling the instruction to `list.map` within `list.each` itself.
e690eec937
2020-09-15 20:32:13 +09:00
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)
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