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

84364 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada f082605735
outdate-bundled-gems.rb: Add `--help` option 2024-03-15 13:55:47 +09:00
Nobuyoshi Nakada a1ced60692 [ruby/stringio] NULL StringIO by `StringIO.new(nil)`
https://github.com/ruby/stringio/commit/779f71359d
2024-03-15 04:34:14 +00:00
Kevin Newton 1e7c0fcc9a [PRISM] Fix float in case dispatch 2024-03-14 21:59:26 -04:00
Adam Daniels 3fcab3cddf [ruby/rdoc] Use readline history when ri is interactive
https://github.com/ruby/rdoc/commit/d0074a23cc
2024-03-15 00:27:01 +00:00
toshimaru 193ebc3c3a [ruby/rdoc] test: Add tests for RDoc::TokenStream#add_tokens, add_token ,collect_tokens and pop_token
https://github.com/ruby/rdoc/commit/9ed530b8f9
2024-03-15 00:10:14 +00:00
Jeremy Evans c388784943 Fix array allocation optimization for f(*a, kw: 1)
This was broken during the refactoring in 22e488464a.
2024-03-14 16:11:35 -07:00
Benoit Daloze ed2f685253 Update to ruby/spec@89175b2 2024-03-14 21:44:53 +01:00
Benoit Daloze 1d9f99144b Update to ruby/mspec@b8f8f4e 2024-03-14 21:44:52 +01:00
Peter Zhu c2170e5c2b Fix typo from gloabl_object_list to global_object_list 2024-03-14 13:52:20 -04:00
Peter Zhu 4559a161af Move gloabl_object_list from objspace to VM
This is to be consistent with the mark_object_ary that is in the VM.
2024-03-14 13:29:59 -04:00
Takashi Kokubun b0be2961f7
YJIT: Let yjit_perf.py support perf with Python disabled (#10246)
* YJIT: Let yjit_perf.py support perf with Python disabled

* Update yjit.md about perf

* Recommend the extra interface by default
2024-03-14 10:08:23 -07:00
Jean Boussier 09d8c99cdc Ensure test suite is compatible with --frozen-string-literal
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
2024-03-14 17:56:15 +01:00
Peter Zhu 4e03d56e21 [Feature #20265] Update NEWS.md 2024-03-14 12:53:04 -04:00
Peter Zhu ff51dc5654 [Feature #20265] Remove rb_newobj_of and RB_NEWOBJ_OF 2024-03-14 12:53:04 -04:00
Peter Zhu 8e1831406f [Feature #20265] Remove rb_newobj and RB_NEWOBJ 2024-03-14 12:53:04 -04:00
Jean byroot Boussier 161545d55d [ruby/reline] Ensure compatibility with frozen string literals
(https://github.com/ruby/reline/pull/643)

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby is moving forward with enabling frozen string literals
in the future.

Reline being part of the ruby-core test suite should work when
ruby is ran with `--enable-frozen-string-literal`.

https://github.com/ruby/reline/commit/7e2de64cf0

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2024-03-14 16:09:12 +00:00
Go d10afe0357 [ruby/irb] Rescue from exceptions raised by #name
(https://github.com/ruby/irb/pull/899)

* Rescue from exceptions raised by #name

Irb might terminate if the class overwrites `name` and raise errors. This commit rescue irb from termination.

* fix for other unknown patterns

https://github.com/ruby/irb/commit/35b87cf893
2024-03-14 15:41:03 +00:00
hogelog 3822ca9884 [ruby/irb] Add disable_irb command to disable debug of binding.irb
(https://github.com/ruby/irb/pull/898)

* Add disable_irb command to disable debug of binding.irb

* disable_irb doesn't override Kernel.exit

Kernel.exit call is removed because disable_irb does not override Kernel.exit
and workaround to https://bugs.ruby-lang.org/issues/18234 is not needed.

https://github.com/ruby/irb/commit/29901e4f21
2024-03-14 15:40:27 +00:00
Peter Zhu 83618f2cfa [Feature #20306] Implement ruby_free_at_exit_p
ruby_free_at_exit_p is a way for extensions to determine whether they
should free all memory at shutdown.
2024-03-14 08:33:30 -04:00
Jean Boussier 315bde5a0f `Exception#set_backtrace` accept arrays of `Backtrace::Location`
[Feature #13557]

Setting the backtrace with an array of strings is lossy. The resulting
exception will return nil on `#backtrace_locations`.

By accepting an array of `Backtrace::Location` instance, we can rebuild
a `Backtrace` instance and have a fully functioning Exception.

Co-Authored-By: Étienne Barrié <etienne.barrie@gmail.com>
2024-03-14 11:38:40 +01:00
Nobuyoshi Nakada 5326337d4f [Feature #20244] Issue a single `Warning.warn` call
Make the entire series of message lines a multiline string so that the
`Warning.warn` hook can receive them in a single call.
2024-03-14 18:33:28 +09:00
Nobuyoshi Nakada 67fe047821 [Feature #20244] Register global variable for another thread
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
2024-03-14 18:33:28 +09:00
Nobuyoshi Nakada 4bb8f8582f [Feature #20244] Show the conflicting another chdir block 2024-03-14 18:33:28 +09:00
Nobuyoshi Nakada 8fe86feecd [Feature #20244] Extract `chdir_lock` and its stuffs 2024-03-14 18:33:28 +09:00
Nobuyoshi Nakada 1ad366134d
[Feature #20293] Add `Warning.categories` 2024-03-14 17:56:55 +09:00
Nobuyoshi Nakada f36a71e269 [Bug #20307] Fix `Hash#update` to make frozen copy of string keys 2024-03-14 17:49:37 +09:00
Nobuyoshi Nakada cd774f4ab9 Extract `RHASH_STRING_KEY_P` 2024-03-14 17:49:37 +09:00
Nobuyoshi Nakada c1279a3da5 Extract `RHASH_IDENTHASH_P` 2024-03-14 17:49:37 +09:00
Hiroshi SHIBATA fdf1fa5f5f
Revert "Warn ostruct for Ruby 3.5"
This reverts commit 1acbdc76d6.

I need to remove ostruct from Rake or fix bundler example.

https://github.com/ruby/ruby/actions/runs/8277371220/job/22647605911#step:11:3428
2024-03-14 17:41:24 +09:00
Hiroshi SHIBATA 1acbdc76d6
Warn ostruct for Ruby 3.5 2024-03-14 17:07:23 +09:00
git d5e9942ad2 Update bundled gems list at 04fc9f87be [ci skip] 2024-03-14 07:28:19 +00:00
Hiroshi SHIBATA 04fc9f87be
Use released version of bigdecimal 2024-03-14 16:27:37 +09:00
Hiroshi SHIBATA 1cffaf1c25
minitest-5.22.3 tag is not available yet 2024-03-14 15:12:03 +09:00
git cc141b619e Update bundled gems list at 07b40044ad [ci skip] 2024-03-14 05:22:55 +00:00
Hiroshi SHIBATA 07b40044ad
Use released version of minitest 2024-03-14 14:21:50 +09:00
Nobuyoshi Nakada 578f96afb5 [ruby/stringio] [DOC] Package rdoc files
https://github.com/ruby/stringio/commit/8522c90e4b
2024-03-14 04:30:28 +00:00
Nobuyoshi Nakada c913f3347c [ruby/stringio] [DOC] Add missing documents
https://github.com/ruby/stringio/commit/9cc1dfa19c
2024-03-14 04:30:28 +00:00
Nobuyoshi Nakada 35706c608c [ruby/stringio] [DOC] Add rdoc task
https://github.com/ruby/stringio/commit/5dd52d4aec
2024-03-14 04:30:27 +00:00
Nobuyoshi Nakada b01d319ec8 [ruby/fcntl] [DOC] Package files for RDoc
https://github.com/ruby/fcntl/commit/b946e505f1
2024-03-14 04:19:46 +00:00
Nobuyoshi Nakada e394f5539e [ruby/fcntl] [DOC] Package document files
https://github.com/ruby/fcntl/commit/ed2d725505
2024-03-14 04:01:24 +00:00
Nobuyoshi Nakada 4ae67b1ab5 [ruby/fcntl] [DOC] Add missing documents
https://github.com/ruby/fcntl/commit/a201ed6682
2024-03-14 03:49:40 +00:00
Nobuyoshi Nakada 085daf4840 [ruby/fcntl] [DOC] Add task and files for RDoc
https://github.com/ruby/fcntl/commit/1c7c70fa5d
2024-03-14 03:49:40 +00:00
Nobuyoshi Nakada 5fe1853e9b [ruby/fcntl] Reduce duplicate `O_ACCMODE` definitions
https://github.com/ruby/fcntl/commit/6a6442a7f8
2024-03-14 03:49:38 +00:00
Nobuyoshi Nakada d49b41566b [ruby/fcntl] [DOC] Remove redundant directives
https://github.com/ruby/fcntl/commit/a99909a90f
2024-03-14 03:49:37 +00:00
Kevin Newton 00c32f606a [PRISM] Do not send numbered parameters into eval 2024-03-13 19:01:43 -04:00
Kevin Newton 2f8cbd6431 [PRISM] Handle ambiguous_param0 for it and numbered parameters 2024-03-13 19:01:33 -04:00
Kevin Newton 7c9e6eab89 Handle nth ref too big 2024-03-13 19:01:21 -04:00
Peter Zhu 42bfbe9aa6 Remove unused size_pool_edge_names 2024-03-13 14:50:44 -04:00
Burdette Lamar 76f9cfd0b9
[DOC] Array doc (#10199) 2024-03-13 14:50:18 -04:00
Kevin Newton 2cfcebb2a8 [ruby/prism] Warn for maximum number variables
https://github.com/ruby/prism/commit/2cdbf81c95
2024-03-13 18:35:18 +00:00