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

70644 Коммитов

Автор SHA1 Сообщение Дата
Koichi Sasada 779039a4e0 add ref to the ticket 2021-12-22 02:49:19 +09:00
Yuki Nishijima cdb7d699d0 Revert commits for did_you_mean
This reverts commit 4560091b1c.
This reverts commit a6f76122a2.
This reverts commit e59b18a637.
This reverts commit 505dfae05d.
2021-12-21 22:10:03 +09:00
Yuki Nishijima 4560091b1c * gems/default_gems: Make the SPELL_CHECKERS constant as compatible as possible 2021-12-21 22:00:23 +09:00
Yuki Nishijima a6f76122a2 * gems/default_gems: Fix CI builds 2021-12-21 20:03:47 +09:00
git e59b18a637 Update default gems list at 505dfae05d [ci skip] 2021-12-21 10:08:36 +00:00
Yuki Nishijima 505dfae05d * gems/default_gems: Sync did_you_mean 2021-12-21 19:03:25 +09:00
Hiroshi SHIBATA 12fa4f2ace
Added Psych 4 incompatibility to NEWS
[Bug #17866][ruby-core:103866]
2021-12-21 19:02:59 +09:00
Kazuhiro NISHIYAMA 48a0905d25
Add missing '%' in format string 2021-12-21 18:21:03 +09:00
Kazuhiro NISHIYAMA 69470cc5e9
Fix a typo [ci skip] 2021-12-21 17:44:48 +09:00
Kazuhiro NISHIYAMA b9aefdfc9f
Fix typos 2021-12-21 17:40:15 +09:00
aycabta 1855f901c8 [ruby/irb] Check colorize option correctly to clear char attr and don't use it for tests
https://github.com/ruby/irb/commit/de561cafeb
2021-12-21 15:50:32 +09:00
aycabta 093aaeffbc [ruby/irb] Add resetting char attr that I forgot
https://github.com/ruby/irb/commit/b5f953dc33
2021-12-21 15:36:28 +09:00
git 10a2273e99 Update default gems list at f51811ca75894f5227fb2dd9f2f61f [ci skip] 2021-12-21 15:27:05 +09:00
Hiroshi SHIBATA 69dc2ea465 Merge RubyGems-3.3.0 and Bundler-2.3.0 2021-12-21 15:27:05 +09:00
Koichi Sasada ad450c9fe5 make `overloaded_cme_table` truly weak key map
`overloaded_cme_table` keeps cme -> monly_cme pairs to manage
corresponding `monly_cme` for `cme`. The lifetime of the `monly_cme`
should be longer than `monly_cme`, but the previous patch losts the
reference to the living `monly_cme`.

Now `overloaded_cme_table` values are always root (keys are only weak
reference), it means `monly_cme` does not freed until corresponding
`cme` is invalidated.

To make managing easy, move `overloaded_cme_table` to `rb_vm_t`.
2021-12-21 15:21:30 +09:00
Yuta Saito 3c7e95966d rbinstall.rb: install ext only when it's configured [Bug #18414] 2021-12-21 15:14:54 +09:00
Nobuyoshi Nakada 9b917315f4
Make the cache directory [ci skip] 2021-12-21 14:26:18 +09:00
Nobuyoshi Nakada d58406ffca
Ignore hung-ups after success on s390x-linux tentatively [ci skip] 2021-12-21 13:40:28 +09:00
Nobuyoshi Nakada c29c2afafe Refactor setup_narg and extract finish_narg 2021-12-21 13:34:04 +09:00
Samuel Williams 02a9a72f43 Tidy up fiber scheduler interface documentation for `address_resolve` and `timeout_after`. 2021-12-21 17:22:55 +13:00
Koichi Sasada df48db987d `mandatory_only_cme` should not be in `def`
`def` (`rb_method_definition_t`) is shared by multiple callable
method entries (cme, `rb_callable_method_entry_t`).

There are two issues:

* old -> young reference: `cme1->def->mandatory_only_cme = monly_cme`
  if `cme1` is young and `monly_cme` is young, there is no problem.
  Howevr, another old `cme2` can refer `def`, in this case, old `cme2`
  points young `monly_cme` and it violates gengc assumption.
* cme can have different `defined_class` but `monly_cme` only has
  one `defined_class`. It does not make sense and `monly_cme`
  should be created for a cme (not `def`).

To solve these issues, this patch allocates `monly_cme` per `cme`.
`cme` does not have another room to store a pointer to the `monly_cme`,
so this patch introduces `overloaded_cme_table`, which is weak key map
`[cme] -> [monly_cme]`.

`def::body::iseqptr::monly_cme` is deleted.

The first issue is reported by Alan Wu.
2021-12-21 11:03:09 +09:00
Samuel Williams 711342d935 Update cont.c 2021-12-21 12:32:54 +13:00
zverok eae5a34be3 Add SchedulerInterface#timeout_after and #address_resolve docs 2021-12-21 12:32:54 +13:00
zverok 224dfb2d6e Document Fiber::SchedulerInterface#io_read and #io_write 2021-12-21 12:32:54 +13:00
Samuel Williams 617687df09 Rename IMMUTABLE to READONLY. 2021-12-21 12:25:42 +13:00
Samuel Williams 9fbf94ff04 Improve interface for get/set/copy. 2021-12-21 12:25:42 +13:00
Samuel Williams 2de5dc539b Fix handling of clear with offset and without length. 2021-12-21 12:25:42 +13:00
Samuel Williams c86bcd434d Mark non-private mapped files as external. 2021-12-21 12:25:42 +13:00
Samuel Williams da46b8d8e5 Default `IO::Buffer#get_string` to use BINARY encoding. 2021-12-21 12:25:42 +13:00
Samuel Williams c3d8d26ad7 Add tests for `IO::Buffer` `get`/`set`. 2021-12-21 12:25:42 +13:00
Samuel Williams 71bbc40ffa Rename `to_str` -> `get_string` and add support for encodings. 2021-12-21 12:25:42 +13:00
Samuel Williams 49166fc74a Improved exception usage/classes. 2021-12-21 12:25:42 +13:00
Samuel Williams 71bf5cef75 Fix handling of frozens strings. 2021-12-21 12:25:42 +13:00
Samuel Williams 9de5c4ec76 Fix mapping invalid non-file object. 2021-12-21 12:25:42 +13:00
Burdette Lamar 6ad8cf7071
[DOC] Enhanced RDoc for IO (#5307)
Treated:

    #sync
    #sync=
    #fsync
    #fdatasync
    #fileno
    #pid
    #inspect
    #to_io
2021-12-20 16:28:58 -06:00
David Rodríguez 7bd25b9753 [rubygems/rubygems] Print warning when running potentially problematic rubygems + ruby combinations
https://github.com/rubygems/rubygems/commit/d6df0b7de0

Co-authored-by: André Arko <andre@arko.net>
2021-12-21 06:48:27 +09:00
David Rodríguez 01f95ede0e [rubygems/rubygems] Rename `BUNDLE_SPEC_RUN` environment variable
The `BUNDLE_` prefix should be reserved to first class settings that
should be listed when running `bundle config`. This one is just a hacky
environment variable that has not corresponding documented setting.

https://github.com/rubygems/rubygems/commit/7e255c5058
2021-12-21 06:48:27 +09:00
David Rodríguez a350ed4123 [rubygems/rubygems] Remove ancient check
https://github.com/rubygems/rubygems/commit/d647ab5607
2021-12-21 06:48:26 +09:00
Alan Wu 39cf0b5314
Show whether object is garbage in rb_raw_obj_info()
When using `rp(obj)` for debugging during development, it may be
useful to know that an object is soon to be swept. Add a new letter to
the object dump for whether the object is garbage. It's easy to forget
about lazy sweep.
2021-12-20 16:13:34 -05:00
Brandon Fish 8b1b4e384f [rubygems/rubygems] Skip find_in_unresolved_tree test for TruffleRuby due to longer runtime
https://github.com/rubygems/rubygems/commit/36b8fbc508
2021-12-21 04:57:23 +09:00
Jeremy Evans 3bd5f27f73 Remove Class#descendants 2021-12-20 11:02:15 -08:00
Nobuyoshi Nakada c57ac4c6e0 Fix location of extensions in bundled gems when static-linked-ext
Install bundled gem extension files to the gem extension directory
under DESTDIR, when static-linked-ext as well as non-static case.
2021-12-21 02:01:57 +09:00
zverok 81f08edbd6 [DOC] Document Thread::Backtrace.limit 2021-12-20 08:56:03 -08:00
aycabta 37aea9d798 [ruby/reline] Finalize when exception occurred
https://github.com/ruby/reline/commit/1f8a3aee43

Co-authored-by: Alex Gittemeier <me@a.lexg.dev>
2021-12-21 00:49:03 +09:00
aycabta c3a3f65b45 [ruby/reline] Split off set_signal_handler method
In some tests, the LineEditor#reset method is always called, but doesn't
need to set the signal handlers there, so cuts it out to a separate
method.

https://github.com/ruby/reline/commit/b143c4f5f9
2021-12-21 00:13:19 +09:00
aycabta 95c61c8d82 [ruby/reline] Remove unnecessary clearing signal handler
https://github.com/ruby/reline/commit/7a758e73dc
2021-12-21 00:13:18 +09:00
git e54e99bd16 * 2021-12-21 [ci skip] 2021-12-21 00:11:19 +09:00
Kazuki Yamaguchi 6b67f06312 test/fiber/test_io_buffer.rb: fix file descriptor leaks
I got the warning while running "make test-all":

	Leaked file descriptor: TestFiberIOBuffer#test_write_nonblock: 9 : #<UNIXSocket:fd 9>
	Closed file descriptor: TestFiberIOBuffer#test_read_write_blocking: 9
	Leaked file descriptor: TestFiberIOBuffer#test_timeout_after: 10 : #<UNIXSocket:fd 10>
	Closed file descriptor: TestFiberIOBuffer#test_read_nonblock: 10
2021-12-21 00:05:24 +09:00
Kazuki Yamaguchi ac757b218c [ruby/openssl] pkey: use EVP_PKEY_CTX_new_from_name() on OpenSSL 3.0
Replace EVP_PKEY_CTX_new_id() with the new EVP_PKEY_CTX_new_from_name()
which takes the algorithm name in a string instead of in an NID.

https://github.com/ruby/openssl/commit/d6535d13d1
2021-12-20 23:42:04 +09:00
Kazuki Yamaguchi 61e426ae05 [ruby/openssl] pkey: assume a pkey always has public key components on OpenSSL 3.0
OpenSSL 3.0's EVP_PKEY_get0() returns NULL for provider-backed pkeys.
This causes segfault because it was supposed to never return NULL
before.

We can't check the existence of public key components in this way on
OpenSSL 3.0. Let's just skip it for now.

https://github.com/ruby/openssl/commit/ccdb6f7bfa
2021-12-20 23:42:04 +09:00