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

87713 Коммитов

Автор SHA1 Сообщение Дата
Kevin Newton f8568fbd7f [ruby/prism] Pop lex mode for heredocs in the lexer, not the parser
https://github.com/ruby/prism/commit/5dd36b979e
2024-10-03 17:30:20 +00:00
Peter Zhu 77db37813a Fix indentation in test_after_gc_start_hook_with_GC_stress 2024-10-03 11:58:20 -04:00
tomoya ishida ac0a8c6230 [ruby/reline] Make rendering test faster using updated yamatanooroti
(https://github.com/ruby/reline/pull/747)

https://github.com/ruby/reline/commit/7534f7f92a
2024-10-03 15:52:34 +00:00
Jeremy Evans 9986a7c393 Make Object#singleton_method return methods in modules included in or prepended to singleton class
To simplify the implementation, this makes Object#singleton_method
call the same method called by Object#method (rb_obj_method), then
check that the returned Method is defined before the superclass of the
object's singleton class.  To keep the same error messages, it rescues
exceptions raised by rb_obj_method, and then raises its own exception.

Fixes [Bug #20620]
2024-10-03 07:27:01 -07:00
Peter Zhu dc83de4928 [DOC] Add missing word 2024-10-03 09:28:13 -04:00
Peter Zhu f56be4286f [DOC] Add pound sign before all <=> methods 2024-10-03 09:28:13 -04:00
Earlopain 66124cdb17 [ruby/prism] Use `partial_script` for the parser translators
Followup to https://github.com/ruby/prism/pull/3079

https://github.com/ruby/prism/commit/68f434e356
2024-10-03 12:52:02 +00:00
Samuel Williams cd96af2cb8
Add `IO::Buffer` tests for read and write with length & offset. (#11779) 2024-10-03 12:29:16 +00:00
tomoya ishida 218445bb1f [ruby/rdoc] Fix ToRdoc#accept_table
(https://github.com/ruby/rdoc/pull/1184)

https://github.com/ruby/rdoc/commit/7b68545094
2024-10-03 12:27:43 +00:00
Matt Valentine-House b421964b9d Remove unused macros 2024-10-03 12:49:24 +01:00
Nobuyoshi Nakada 9d4af312bd [ruby/reline] Rename `matches?` as `match?`
(https://github.com/ruby/reline/pull/753)

https://github.com/ruby/reline/commit/9230fe162d
2024-10-03 10:38:38 +00:00
tompng 5bf8a53063 Specify commit hash of debug in bundled_gems 2024-10-03 18:47:09 +09:00
tompng c94815bab7 Update spec/ruby/ for colon-style hash inspect 2024-10-03 18:47:09 +09:00
tompng af1c356c7b Update default gem test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
tompng f7343b636f prettyprint hash with colon style 2024-10-03 18:47:09 +09:00
tompng 7237af75d2 Update ruby test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
tompng f4e548924e Update bootstraptest test for colon-style hash inspect 2024-10-03 18:47:09 +09:00
tompng a8a0591253 Hash#inspect with colon style 2024-10-03 18:47:09 +09:00
git 2c0149d330 Update bundled gems list at 6435dfce5f [ci skip] 2024-10-03 08:41:42 +00:00
Hiroshi SHIBATA 6435dfce5f style 2024-10-03 17:41:13 +09:00
Hiroshi SHIBATA 50b32a3c92 Added repl_type_completor as bundled gems 2024-10-03 17:41:13 +09:00
git 7f251ce5c4 Update bundled gems list as of 2024-10-03 2024-10-03 07:00:45 +00:00
Sadiq Saif 1b3f18afce each_address should now resolve for AAAA first
AAAA over A is standards track behaviour as per RFC 6724.
2024-10-03 15:04:46 +09:00
Jean Boussier 4cd893b048 [flori/json] Optimize key type check in `json_object_i`
Rather than checking the class we can check the type.
This is very subtly different for String subclasses, but I think it's
OK.

We also save on checking the type again in the fast path.

https://github.com/flori/json/commit/772a0201ab
2024-10-03 14:20:34 +09:00
Jean Boussier 57282c62a0 [flori/json] Optimize `fbuffer_inc_capa`
On my `JSON.dump` benchmark it shows up as 6% of runtime, compared
to 40% for `convert_UTF8_to_JSON`.

Since the vast majority of the time this function is called we
still have some buffer capacity, we might as well check that
first and skip the expensive loop etc.

With this change my profiler now report this function as 0.7%,
so almost 10x better.

https://github.com/flori/json/commit/a7206bf2db
2024-10-03 14:20:34 +09:00
Jean Boussier 630c681321 [flori/json] JSON.dump: avoid redundant UTF-8 validation
Given that we called `rb_enc_str_asciionly_p`, if the string encoding
isn't valid UTF-8, we can't know it very cheaply by checking the
encoding and coderange that was just computed by Ruby, rather than
to do it ourselves.

Also Ruby might have already computed that earlier.

https://github.com/flori/json/commit/4b04c469d5
2024-10-03 14:20:34 +09:00
git 835ac8a4d7 Update bundled gems list at a048090bd5 [ci skip] 2024-10-03 04:11:01 +00:00
Hiroshi SHIBATA a048090bd5 Update bundled_gems 2024-10-03 13:10:34 +09:00
Nobuyoshi Nakada d40db5cfec
[DOC] [pty] Add clean up to `PTY.spawn` 2024-10-03 12:38:01 +09:00
Nobuyoshi Nakada 9bd2f30d0a [ruby/reline] Fix FD leaks (https://github.com/ruby/reline/pull/752)
`PTY.spawn` with a block detaches the spawned process and leaves it
running in background even after exiting the given block.  It is the
responsibility of the caller to clean up the yielded IOs and PID.

https://github.com/ruby/ruby/actions/runs/11148759246/job/30986064044#step:13:950
```
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 9 : #<File:/dev/pts/0>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 10 : #<File:/dev/pts/0>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 11 : #<File:/dev/pts/1>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 12 : #<File:/dev/pts/1>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 13 : #<File:/dev/pts/2>
Leaked file descriptor: Reline::Test#test_tty_amibuous_width: 14 : #<File:/dev/pts/2>
```

https://github.com/ruby/reline/commit/f9f90da9e4
2024-10-03 03:16:39 +00:00
Samuel Williams 75c4ac3395
Update `IO::Buffer` documentation. (#11737)
Update documentation.
2024-10-03 15:33:48 +13:00
Soutaro Matsumoto e5c26b0f32 Stop skipping broken tests 2024-10-03 09:40:57 +09:00
Soutaro Matsumoto 8877e9d922 Update rbs test 2024-10-03 09:40:57 +09:00
David Rodríguez e77346153d [rubygems/rubygems] Remove compatibility code with old RubyGems
https://github.com/rubygems/rubygems/commit/f11e42a3c5
2024-10-02 21:33:02 +00:00
Matt Valentine-House d3e2d23c60 Fix compilation when RGENGC_CHECK_MODE >= 4
the mark_function_data callback was moved from the ractor to the VM.
2024-10-02 20:43:35 +01:00
Peter Zhu e7cf2e7639 [DOC] Fix indentation in documentation for Array#sort! 2024-10-02 14:44:57 -04:00
Kevin Newton 77056674a0 [ruby/prism] Fix up binding power for singleton method receiver
https://github.com/ruby/prism/commit/f29ceae5cf
2024-10-02 18:39:20 +00:00
Burdette Lamar 253b76ec0a
[DOC] Tweaks for Array#max (#11768) 2024-10-02 13:54:12 -04:00
Alan Wu 2f5ab4c4b8 YJIT: Merge `impl VALUE` blocks [ci skip]
Reported by Kevin Menard.
2024-10-02 13:47:35 -04:00
tomoya ishida 09761e4789 [ruby/reline] Fix incremental search cancel bug
(https://github.com/ruby/reline/pull/748)

https://github.com/ruby/reline/commit/bf0f8fa333
2024-10-02 17:47:02 +00:00
tomoya ishida 8f4277f405 [ruby/reline] Add a timeout to cursor_pos
(https://github.com/ruby/reline/pull/750)

https://github.com/ruby/reline/commit/dd4a654e5d
2024-10-02 17:36:35 +00:00
BurdetteLamar 9f47f0eb3c [DOC] Tweaks for Array#length 2024-10-02 13:19:27 -04:00
Nobuyoshi Nakada 99620b98ba
fake.rb: Copy options in RUBY_DESCRIPTION to the fake string
The `RUBY_DESCRIPTION_WITH` macro has been removed already, so there
are no more descriptions strings with rjit/yjit enabled.
2024-10-03 01:02:18 +09:00
Peter Zhu bf8a8820ba Deduplicate RGENGC_CHECK_MODE into gc/gc.h 2024-10-02 11:47:45 -04:00
Kevin Newton 2610bf01b2 [ruby/prism] Fix up doubled range in arguments
https://github.com/ruby/prism/commit/aee2de91a3
2024-10-02 15:27:01 +00:00
Burdette Lamar 609fdde2c9
[DOC] Tweaks for Array.intersect? (#11744) 2024-10-02 11:12:01 -04:00
Burdette Lamar a7c04a317f
[DOC] Tweaks for Array#intersection (#11745) 2024-10-02 11:11:29 -04:00
Burdette Lamar 75ab01f3b7
[DOC] Tweaks for Array#last (#11748) 2024-10-02 10:55:19 -04:00
Kevin Newton 2e2520ef10 [ruby/prism] Fix up beginless ranges in method definitions
https://github.com/ruby/prism/commit/ab9d80987a
2024-10-02 14:47:53 +00:00
Burdette Lamar e41e4bacb1
[DOC] Tweaks for Array#inspect (#11743) 2024-10-02 09:15:25 -04:00