Project

General

Profile

Activity

From 08/26/2024 to 09/01/2024

09/01/2024

11:00 AM Revision eb144ef9 (git): Skip show_doc tests if RDoc is not available
hsbt (Hiroshi SHIBATA)
11:00 AM Revision 4aa3491b (git): Skip RDoc related feature if Gem::RDoc is not available
hsbt (Hiroshi SHIBATA)
03:46 AM Revision 185602e6 (git): [ruby/io-console] Fix mixing declarations and code for older versions
https://github.com/ruby/io-console/commit/504292b487 nobu (Nobuyoshi Nakada)
03:46 AM Revision 37db194c (git): [ruby/io-console] Support older rubies
https://github.com/ruby/io-console/commit/cad8169568 nobu (Nobuyoshi Nakada)
03:00 AM Revision afd12873 (git): Update dependencies of io-console
nobu (Nobuyoshi Nakada)
02:58 AM Misc #20660: DevMeeting-2024-09-05
* [Bug #20693] Dir.tmpdir should perform a real access check before warning about writability
* A minor paper-cut, but I ran into this while running Ruby's tests in an unprivileged Docker container
* `File::Stat#writable?` is reall...
kjtsanaktsidis (KJ Tsanaktsidis)
02:47 AM Revision 44771e4a (git): Bump github/codeql-action from 3.26.5 to 3.26.6
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.5 to 3.26.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md...
dependabot[bot]

08/31/2024

06:30 PM Revision d6fc8f3d (git): [rubygems/rubygems] fix `@license` typo preventing licenses from being correctly unmarshalled
https://github.com/rubygems/rubygems/commit/d6ba7ef79f Durable Programming Team
06:05 PM Feature #20709 (Closed): Improve String#rindex performance on OSX
`String#rindex` is much slower on OSX than on Linux hosts. This appears due to the lack of a `memrchr` implementation on OSX. The [fallback solution](https://github.com/ruby/ruby/blob/e69945fc57efba5c8895c21235e109145865952d/string.c#L43... zack.ref@gmail.com (Zack Deveau)
10:10 AM Revision b6f7d544 (git): merge revision(s) 29500e3034681a30045dea462d6bb653e8600738: [Backport #20698]
Update bundled gems list as of 2024-08-22 nagachika (Tomoyuki Chikanaga)
10:09 AM Revision 04fab1df (git): merge revision(s) bb849ffdb18305f01457de4e9848c830eb83a2d7:
Added explicitly begin-end block for Ruby 2.4.
strscan, ipaddr and some default gems still support Ruby 2.4.
After this, I extract this CoreAssertions to their repositories.
nagachika (Tomoyuki Chikanaga)
09:51 AM Revision f095a085 (git): merge revision(s) 8a7e6f6852740e989ef8f679db5631306466a4ed:
Improve base time of assert_linear_performance (#11369)
Remove `.ceil` from base time calculation that makes 10x gap.
This will make the assertion more strict and also less flaky.
nagachika (Tomoyuki Chikanaga)
09:49 AM Revision f4847607 (git): merge revision(s) f1c78b23313e63eb31a213cc7277b1eb206a581b:
Suppress warning for shadowing outer local variable nagachika (Tomoyuki Chikanaga)
09:49 AM Revision b5bb0ee6 (git): merge revision(s) d23964360335ad561f252cb6fe8e90df7ebee90e:
core_assertions.rb: Support old rubies
Some symbol argument might not be accepted by Process.clock_gettime.
nagachika (Tomoyuki Chikanaga)
09:49 AM Revision bec6da39 (git): merge revision(s) 533423ebe46ebfe3005198c12aa0d2c899c695ea:
core_assertions.rb: Prefer CPU time clocks
To prevent influence from other processes.
nagachika (Tomoyuki Chikanaga)
09:48 AM Revision 7c2cdca7 (git): merge revision(s) f9eb2515a3221cced611b4de971b72a78a7a566f:
core_assertions.rb: Extract common code block nagachika (Tomoyuki Chikanaga)
09:48 AM Revision 07d7ffeb (git): merge revision(s) 3fe134759cc4904c74306e0832c22fa518a5bea2:
Skip assert_linear_performance for RJIT nagachika (Tomoyuki Chikanaga)
09:45 AM Revision 00fada38 (git): merge revision(s) f07c756494b0e473ff8e4ece6f04c7ababe93b01:
core_assertions.rb: Tweak timeout limit
Increase the timeout limit when variance at rehearsal is small.
nagachika (Tomoyuki Chikanaga)
08:43 AM Revision e69945fc (git): [ruby/io-console] Workaround for old TruffleRuby
https://github.com/ruby/io-console/commit/f10c946ac7 nobu (Nobuyoshi Nakada)
08:43 AM Revision 4a1ea9b6 (git): [ruby/io-console] Store console IO in Ractor-local storage
Ractor requires a shareable class has shareable constants only, but IO
is not shareable unless frozen.
https://github.com/ruby/io-console/commit/65e0ff895c
nobu (Nobuyoshi Nakada)
06:43 AM Misc #20013: Travis CI status
All the Travis partner pipelines (non-x86_64) jobs don't start. So, I will drop all the pipelines on the 2nd commit on the following PR.
https://app.travis-ci.com/github/ruby/ruby/builds/272123937
https://github.com/ruby/ruby/pull/11509
jaruga (Jun Aruga)
05:46 AM Revision 5dbb67a5 (git): Update default gems list at 365ededfdf4fa33000411e63d7a1c2 [ci skip]
git[bot]
05:46 AM Revision 365ededf (git): [ruby/io-console] io-console is considered Ractor-safe
https://github.com/ruby/io-console/commit/b1adc15af7 nobu (Nobuyoshi Nakada)
05:22 AM Revision 2afde63e (git): * remove trailing spaces. [ci skip]
git[bot]
05:22 AM Revision 32f134bb (git): Added pre-release suffix for development version of default gems
https://github.com/ruby/stringio/issues/81 hsbt (Hiroshi SHIBATA)
05:22 AM Revision f304afd2 (git): Added check method with released version of rubygems.org
hsbt (Hiroshi SHIBATA)
05:15 AM Revision a4ede0c4 (git): Update default gems list at 7900128ab2d8c1d3c52e9c3e14df3c [ci skip]
git[bot]
05:14 AM Revision 7900128a (git): [ruby/uri] Bump up 0.13.1
https://github.com/ruby/uri/commit/31ec9cea66 hsbt (Hiroshi SHIBATA)
05:05 AM Revision 53d8dca3 (git): Update default gems list at 818e3037ed8635ae2ed63a5d783cb3 [ci skip]
git[bot]
05:04 AM Revision 818e3037 (git): [ruby/zlib] Bump up 3.1.1
https://github.com/ruby/zlib/commit/d756bb0a0f k0kubun (Takashi Kokubun)
03:26 AM Revision a2b3cb65 (git): [ruby/reline] Implement re-read-init-file
(https://github.com/ruby/reline/pull/740)
https://github.com/ruby/reline/commit/59e4ade807
ima1zumi (Mari Imaizumi)
02:26 AM Revision f1a79661 (git): [DOC] Rationalize aliases in What's Here
burdettelamar (Burdette Lamar)
02:25 AM Revision a85dc3e9 (git): [DOC] Rationalize aliases
burdettelamar (Burdette Lamar)
02:23 AM Revision 2d944dde (git): [DOC] Related for Array#[] (#11487)
burdettelamar (Burdette Lamar)

08/30/2024

11:19 PM Bug #20708 (Closed): EINTR while opening fifo isn't retried
I don't think this should fail:
```
martind@stormy:~/download/ruby$ rm -f /tmp/badger && mkfifo /tmp/badger && timeout 2 ./ruby --disable-gems -we 'fork() {}; IO.read("/tmp/badger")'
-e:1:in 'IO.read': Interrupted system call @ rb_sys...
martin.dorey@hds.com (Martin Dorey)
08:36 PM Revision eef2121c (git): [macOS CI] Delete big SDKs to avoid exhausting disk space
Lately we've seen frequent failures on macOS GitHub Action runs due to
disk space issues. Poking with du(1) revealed that
/Library/Developer/CoreSimulator/Caches/dyld was growing to be multiple
gigbytes.
Deleting unused stuff is a known...
alanwu (Alan Wu)
04:06 PM Feature #20309: Bundled gems for Ruby 3.5
I guess I can share my opinion here.
There definitely is a benefit in bundling some gems, both from a ruby maintainer and security perspective. But with things like `benchmark`, `forwardable`, `singleton`, (or `base64`, `mutex_m` from...
Earlopain (Earlopain _)
02:50 PM Feature #20707 (Closed): Move `Time#xmlschema` into core
### Performance
Converting `Time` into `RFC3339 / ISO8601` representation is an significant hotspot for application that serialize data in JSON, XML or other formats.
Right now this feature is currently available through the `tim...
byroot (Jean Boussier)
02:45 PM Revision 89bbb9a8 (git): Fix call to each_location_ptr for ASAN
peterzhu2118 (Peter Zhu)
02:03 PM Revision ca7b3d46 (git): Combine gc_mark_locations and each_stack_location
Also renames the new function each_location_ptr to be consistent with
each_location.
peterzhu2118 (Peter Zhu)
02:03 PM Revision e3f00df2 (git): Drop support for Motorola 68000
The last Motorla 68000 architecture CPU was released 1994, so we can
probably drop support for it.
peterzhu2118 (Peter Zhu)
10:36 AM Revision 830ff66e (git): [rubygems/rubygems] Emit progress to stderr when `--parseable` is passed to `bundle outdated`
Before, `bundle outdated --parseable` (or `--porcelain`) caused output
to be completely silenced during definition resolution, so nothing was
printed at all until the table of outdated gems was printed.
With this change, `--parseable`/`...
Matt Brictson
10:23 AM Misc #20013: Travis CI status
Right now I am seeing Travis's arm64 (and arm32) take time around 7 hours to start the jobs. Therefore I will allow failures for the cases to avoid waiting for the jobs.
https://app.travis-ci.com/github/ruby/ruby/builds/272105049
htt...
jaruga (Jun Aruga)
10:16 AM Revision 08b92b67 (git): [rubygems/rubygems] Don't blow up when explicit version is removed from some git sources
`version` is actually an attribute of the dependency, not of the git
source. Sometimes it's passed to the git source to be able to fake a
gemspec in case there's no gemspec in the source, but it should not be
used for source comparison.
...
deivid (David Rodríguez)
10:16 AM Revision 63287fef (git): [rubygems/rubygems] Fix grammar in one spec description
https://github.com/rubygems/rubygems/commit/a1046466c9 deivid (David Rodríguez)
07:13 AM Misc #20660: DevMeeting-2024-09-05
* [Feature #20309] Bundled gems for Ruby 3.5
* Discuss about `benchmark`,`irb` and `reline`
hsbt (Hiroshi SHIBATA)
06:16 AM Bug #20706 (Closed): Can't build Ruby on macOS Sonoma and Sequoia due to: ignoring duplicate libraries, archive member '/' not a mach-o file in libruby.3.3-static.a
>Is this normal? [I can build Ruby now]
Yes, don't use build toolchain provided by homebrew.
hsbt (Hiroshi SHIBATA)
06:03 AM Bug #20706: Can't build Ruby on macOS Sonoma and Sequoia due to: ignoring duplicate libraries, archive member '/' not a mach-o file in libruby.3.3-static.a
Ok, so I did:
```
sudo rm -rf /Applications/Xcode.app # this was Xcode.app 15.4
brew update
brew upgrade
```
On Sequoia I had to get Xcode_16_beta_6.xip b/c Xcode from App Store doesn't work.
Unpacked, and renamed from `Xcode-...
wkoszek (Adam Koszek)
04:54 AM Bug #20706: Can't build Ruby on macOS Sonoma and Sequoia due to: ignoring duplicate libraries, archive member '/' not a mach-o file in libruby.3.3-static.a
It looks pretty recent to me:
$ rustc --version
rustc 1.80.1 (3f5fd8dd4 2024-08-06) (Homebrew)
I think there are some warnings that I get even on a PC with Ubuntu 24.04. So I don't worry about those. But the linker error is basica...
wkoszek (Adam Koszek)
01:42 AM Bug #20706: Can't build Ruby on macOS Sonoma and Sequoia due to: ignoring duplicate libraries, archive member '/' not a mach-o file in libruby.3.3-static.a
> warning: this method call resolves to `<&Box<[T]> as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<Box<[T]> as IntoIterator>::into_iter` in Rust 2024
Maybe `rustc` is old?
nobu (Nobuyoshi Nakada)
12:27 AM Revision 371432b2 (git): [PRISM] Handle RubyVM.keep_script_lines
kddnewton (Kevin Newton)
12:20 AM Revision 55409830 (git): [PRISM] For stdin scripts, use locale encoding
For example:
$ echo 'p __ENCODING__' | LANG=C ruby
#<Encoding:US-ASCII>
But, allow -K to override the source encoding.
Found by running spec/ruby/language/magic_comment_spec.rb with LANG=C.
alanwu (Alan Wu)

08/29/2024

10:39 PM Feature #20309: Bundled gems for Ruby 3.5
Regarding whether to make `benchmark` a bundled gem I think there are some downsides (from https://github.com/ruby/ruby/pull/11492):
* I think it's valuable that `Benchmark.realtime { ... }` is available without needing a gem dependency...
Eregon (Benoit Daloze)
10:28 PM Bug #20706: Can't build Ruby on macOS Sonoma and Sequoia due to: ignoring duplicate libraries, archive member '/' not a mach-o file in libruby.3.3-static.a
Ok. I removed the rvm, and started with a Ruby that doesn't throw this warning.
The problem remains the same -- attached log
wkoszek (Adam Koszek)
09:21 PM Bug #20706: Can't build Ruby on macOS Sonoma and Sequoia due to: ignoring duplicate libraries, archive member '/' not a mach-o file in libruby.3.3-static.a
```
checking for ruby... /Users/wk/.rvm/rubies/ruby-3.3.0/bin/ruby
/Users/wk/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/time.rb:4:in `require': cannot load such file -- date (LoadError)
from /Users/wk/.rvm/ru...
alanwu (Alan Wu)
02:43 PM Bug #20706 (Closed): Can't build Ruby on macOS Sonoma and Sequoia due to: ignoring duplicate libraries, archive member '/' not a mach-o file in libruby.3.3-static.a
Hi,
I had the same problems with macOS Sonoma and (after an upgrade) Sequoia -- something about my macOS makes it impossible to build Ruby.
Upon an upgrade to Sequoia, I did Xcode upgrade, and then CommandLine tools download.
Then I...
wkoszek (Adam Koszek)
08:31 PM Revision b1c569c1 (git): [DOC] Related for Array#all? and Array#any? (#11495)
burdettelamar (Burdette Lamar)
08:04 PM Revision af65b41e (git): [ruby/prism] Remove deprecated lib/prism/translation/parser/rubocop.rb file
Follow up https://github.com/ruby/prism/pull/2558.
This PR removes deprecated lib/prism/translation/parser/rubocop.rb file.
The file was a workaround to allow setting `TargetRubyVersion: 80_82_73_83_77.xx` until Prism (`Prism::Translat...
koic (Koichi ITO)
08:03 PM Revision 22d9260f (git): Remove unused ec argument in each_stack_location
peterzhu2118 (Peter Zhu)
07:24 PM Revision 9f495455 (git): [PRISM] Handle nth reference ERANGE with warning
kddnewton (Kevin Newton)
06:37 PM Revision 1f114464 (git): Change each_stack_location to accept data instead of objspace
The callers were abusing each_stack_location and passing data into the objspace
argument.
peterzhu2118 (Peter Zhu)
06:37 PM Revision c162da69 (git): Change each_location to accept data instead of objspace
The callers were abusing each_location and passing data into the objspace
argument.
peterzhu2118 (Peter Zhu)
06:09 PM Revision 591a157b (git): prism_compile.c: Fix read_entire_file() for platforms without file mmap
Apply similar fix to https://github.com/ruby/prism/pull/2944 katei (Yuta Saito)
05:54 PM Revision e07f7949 (git): Stop using the "undef" keyword to remove a constant
The keyword tries to remove a method of the same name which is unlikely
to be the intention of this test:
$ ruby -e 'undef Object'
-e:1:in '<main>': undefined method 'Object' for class 'Object' (NameError)
Found looking at GH-1...
alanwu (Alan Wu)
05:34 PM Revision b74e0c5f (git): [ruby/reline] Calculate mbchar width with bsearch
(https://github.com/ruby/reline/pull/632)
https://github.com/ruby/reline/commit/0851e93640
tompng (tomoya ishida)
03:55 PM Misc #20660: DevMeeting-2024-09-05
* [Bug #20675] Parse error with required kwargs and omitted parens (jeremyevans0)
* Is consistency with method parameters worth breaking compatibility in this case?
jeremyevans0 (Jeremy Evans)
02:44 PM Revision a04dd0bf (git): [DOC] Related for Array#[]=
burdettelamar (Burdette Lamar)
02:43 PM Revision 74888846 (git): [DOC] Relateds for combo methods (#11483)
burdettelamar (Burdette Lamar)
02:31 PM Revision 079161e1 (git): [PRISM] Respect PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING flag
kddnewton (Kevin Newton)
02:29 PM Revision 14bb376b (git): [PRISM] Copy the rest of the setup_args_dup_rest_p function
kddnewton (Kevin Newton)
02:10 PM Feature #20705: Should "0.E-9" be a valid float value?
we need to be careful with this, because while `0.1E-9` is also a valid ruby literal,
`0.E-9` is not. (unknown method E for 0)
`1E-9` is valid literal again
Hanmac (Hans Mackowiak)
09:10 AM Feature #20705: Should "0.E-9" be a valid float value?
Note that they also treat `0.` as a floating point number literal.
```
$ python3 -c 'print(0.)'
0.0
$ node -e 'console.log(0.)'
0
```
mame (Yusuke Endoh)
09:02 AM Feature #20705: Should "0.E-9" be a valid float value?
It feels reasonable to relax the `to_f` conversion.
Regarding Python and Node.js examples, they are literals and different things, I think.
nobu (Nobuyoshi Nakada)
08:01 AM Feature #20705 (Closed): Should "0.E-9" be a valid float value?
Ruby doesn't accept "0.E-9" as a valid float value:
```console
$ ruby -e 'Float("0.E-9")'
<internal:kernel>:218:in 'Kernel#Float': invalid value for Float(): "0.E-9" (ArgumentError)
from -e:1:in '<main>'
```
But other systems ...
kou (Kouhei Sutou)
01:11 PM Revision 6b08a50a (git): Move checks for special const for marking
This commit moves checks to RB_SPECIAL_CONST_P out of the GC implmentation
and into gc.c.
peterzhu2118 (Peter Zhu)
01:11 PM Revision ddd2b178 (git): Move marking code together in gc.c
peterzhu2118 (Peter Zhu)
10:43 AM Bug #20704 (Closed): Windows: `-C` option does not work for multibyte path name
Applied in changeset commit:git|d33e3d47b84a73b38644f2a3d41881ce9be6ef18.
----------
[Bug #20704] Win32: Fix chdir to non-ASCII path
On Windows, `chdir` in compilers' runtime libraries uses the active
code page, but command line argume...
nobu (Nobuyoshi Nakada)
10:41 AM Revision d33e3d47 (git): [Bug #20704] Win32: Fix chdir to non-ASCII path
On Windows, `chdir` in compilers' runtime libraries uses the active
code page, but command line arguments in ruby are always UTF-8, since
commit:33ea2646b98adb49ae2e1781753bf22d33729ac0.
nobu (Nobuyoshi Nakada)
09:59 AM Revision 871ba3e9 (git): [rubygems/rubygems] Add a note about "platforms" in Gemfile vs "platforms" in Gemfile.lock
https://github.com/rubygems/rubygems/commit/0dd4bd59b4 deivid (David Rodríguez)
09:59 AM Revision 6dee0d3f (git): [rubygems/rubygems] Reject unknown platforms when running `bundle lock --add-platform`
https://github.com/rubygems/rubygems/commit/1f93a2bdc5 deivid (David Rodríguez)
08:37 AM Revision 15153533 (git): Make optional benchmark test in OpenSSL::OSSL#test_memcmp_timing
hsbt (Hiroshi SHIBATA)
08:37 AM Revision 4e5b3e58 (git): Make optional benchmark test in test_find_in_unresolved_tree_is_not_exponentiental
hsbt (Hiroshi SHIBATA)
08:37 AM Revision a780633d (git): Don't use benchmark for test_activate_via_require_respects_loaded_files
benchmark.rb may extract as bundled gems in the future release hsbt (Hiroshi SHIBATA)
08:37 AM Revision a6820823 (git): Removed redundant require for TestGemRequire
hsbt (Hiroshi SHIBATA)
02:11 AM Revision 7cc6f70a (git): Surpressing 'unknown command: “Switch to inspect mode.”' message
hsbt (Hiroshi SHIBATA)

08/28/2024

11:27 PM Revision fe440c59 (git): [PRISM] Use node flags for dup_rest detection instead of looping
alanwu (Alan Wu)
09:27 PM Revision 3fa5b4be (git): [DOC] Mention rb_io_fdopen() takes ownership of the FD
alanwu (Alan Wu)
09:17 PM Revision c3ffa710 (git): [PRISM] Set use_block parameter flag for forwardable methods
Match logic in compile.c:2133. Without this, the unused block warning
code allocates an array, causing TestAllocation to fail.
alanwu (Alan Wu)
09:17 PM Revision dba9601e (git): [DOC] Array comparing doc (#11486)
burdettelamar (Burdette Lamar)
09:10 PM Revision d25833b8 (git): [ruby/prism] Multi-splat flag for arguments
https://github.com/ruby/prism/commit/21cb9b78ae kddnewton (Kevin Newton)
08:51 PM Revision ec88979a (git): Related for Array#<<
burdettelamar (Burdette Lamar)
07:45 PM Revision 570a9580 (git): Update default gems list at ad737a8d0f5929dd8e2cdd1ab8f75a [ci skip]
git[bot]
07:43 PM Revision ad737a8d (git): [PRISM] Sync version update
kddnewton (Kevin Newton)
07:07 PM Revision 45f32e3a (git): [ruby/prism] Reverse-sync ruby/ruby and deprecate old fields
https://github.com/ruby/prism/commit/bc21c9f3ee kddnewton (Kevin Newton)
07:06 PM Revision 417bb8d4 (git): [PRISM] Field renaming
Rename some fields that do not quite make sense.
* CaseMatchNode#consequent -> CaseMatchNode#else_clause
* CaseNode#consequent -> CaseNode#else_clause
* IfNode#consequent -> IfNode#subsequent
* RescueNode#consequent -> RescueNode#subseq...
kddnewton (Kevin Newton)
07:05 PM Revision acafb924 (git): [DOC] Remove Array#abbrev
burdettelamar (Burdette Lamar)
07:05 PM Revision a7cec438 (git): [DOC] More xrefs for array creation
burdettelamar (Burdette Lamar)
06:07 PM Revision 8f95e2ab (git): [ruby/irb] Make colorize test pass with NO_COLOR env set
(https://github.com/ruby/irb/pull/994)
https://github.com/ruby/irb/commit/985ac509c1
tompng (tomoya ishida)
05:42 PM Revision d6764076 (git): [ruby/prism] Review config.yml: documentation, types and field names
https://github.com/ruby/prism/commit/d43333539e Eregon (Benoit Daloze)
05:34 PM Revision 7c9bcdf3 (git): [PRISM] Improve `dup_rest` optimization targeting
Part of implementing 3de20efc308cccc38bf9dacfffca6c626d039a06 in
prism_compile.c. Down to 2 failures from 30 failures in
test/ruby/test_allocation.rb.
alanwu (Alan Wu)
04:16 PM Revision ce6b0c44 (git): [ruby/irb] Colorize command input
(https://github.com/ruby/irb/pull/983)
https://github.com/ruby/irb/commit/0e64136e76
tompng (tomoya ishida)
03:35 PM Revision ccef3911 (git): [ruby/prism] Swap around order of predicates for assoc static literal
https://github.com/ruby/prism/commit/ec181a3b68 kddnewton (Kevin Newton)
02:50 PM Revision 4c5a1dad (git): [PRISM] Check length of line for shebang
kddnewton (Kevin Newton)
02:43 PM Revision 91c6c2bd (git): Related methods for Array#delete
burdettelamar (Burdette Lamar)
02:07 PM Feature #20664: Add `before` and `until` options to Enumerator.produce
The kwargs proposed here could be useful:
```rb
sequence.take_until(inclusive: true, &:terminator?)
```
Alternatively, we could always be inclusive and let people `pop` to remove the last element:
```rb
sequence.take_until(&:...
matheusrich (Matheus Richard)
11:36 AM Feature #20664: Add `before` and `until` options to Enumerator.produce
About does/doesn’t include the last element, there is a related inconclusive discussion: #18136
Basically, I believe that both `take_while`/`take_until` might have pairs of use cases:
```ruby
# the last element not necessary
sequence.ta...
zverok (Victor Shepelev)
12:47 PM Revision f93c27d8 (git): Set encoding index correctly
Alexander Momchilov
12:24 PM Feature #20703: Alias StringIO#string to StringIO#to_s/to_str
@Dan0042 done, ty! sebyx07 (Sebastian Buza)
01:19 AM Feature #20703: Alias StringIO#string to StringIO#to_s/to_str
+1
Might also consider adding #to_str, as I think it makes sense to consider StringIO to be a kind of string.
Dan0042 (Daniel DeLorme)
12:14 PM Bug #20704 (Closed): Windows: `-C` option does not work for multibyte path name
Related to [Bug #20699].
```
C:> \Ruby33-x64\bin\ruby.exe -C xテスト_test -ep
\Ruby33-x64\bin\ruby.exe: Can't chdir to xテスト_test (fatal)
```
https://github.com/ruby/ruby/pull/11493
nobu (Nobuyoshi Nakada)
12:08 PM Bug #20699: On Windows, the `__dir__` keyword is garbled in paths containing Japanese characters, and `require_relative` fails as well
This may be fixed already on the master? nobu (Nobuyoshi Nakada)
10:58 AM Revision b5646124 (git): [ruby/timeout] timeout.rb: Update documentation
This is a followup to #49.
https://github.com/ruby/timeout/commit/683fdb45ee
olleolleolle (Olle Jonsson)
07:00 AM Revision c1e51abd (git): Update bundled gems list as of 2024-08-28
git[bot]
03:17 AM Bug #20700 (Feedback): `warn_cr_in_shebang()` doesn't fire if there's no `\n`
First of all, not all operating systems consider a line that doesn't end with a newline to be a shebang.
For example, a file with `"#!/x\n"` fails as "cannot execute: required file not found" both on Linux and macOS.
However, a file ...
nobu (Nobuyoshi Nakada)
02:31 AM Bug #20700: `warn_cr_in_shebang()` doesn't fire if there's no `\n`
If there is not a `\n`, that file has only a comment.
It would be another thing than `\r\n`, I think.
nobu (Nobuyoshi Nakada)
02:24 AM Revision 942317eb (git): YJIT: Encode doubles to VALUE objects and move stat generation to rust (#11388)
* YJIT: Encode doubles to VALUE objects and move stat generation to rust
Stats that can now be generated from rust have been moved there.
* Move object_shape_count call for runtime_stats to rust
This reduces the ruby method to a singl...
Randy Stauner
12:04 AM Revision 5b129c89 (git): YJIT: Pass method arguments using registers (#11280)
* YJIT: Pass method arguments using registers
* s/at_current_insn/at_compile_target/
* Implement register shuffle
k0kubun (Takashi Kokubun)

08/27/2024

11:15 PM Revision f2ac0130 (git): Add RB_DEFAULT_PARSER preprocessor macro
This way there is one place to change for switching the default.
This also allows for building the same commit with different cppflags.
alanwu (Alan Wu)
11:00 PM Revision 937964f3 (git): Merge URI-0.13.1 for Ruby 3.3 (#11466)
Merge URI-0.13.1 hsbt (Hiroshi SHIBATA)
10:46 PM Feature #20703 (Rejected): Alias StringIO#string to StringIO#to_s/to_str
# Description
Allow to use `StringIO.new('my string').to_s` to be the same as `StringIO.new('my string').string`
IMO nobody really uses the current StringIO#to_s, so I don't think it will break other apps.
* Also added .to_str
Th...
sebyx07 (Sebastian Buza)
09:39 PM Revision 1729f47e (git): [PRISM] Wait for data before reading pipes and chardevs
With the parse.y parser, when a fifo (named pipe) is passed to
Kernel#load and friends, we wait for data to be available first before
reading. Note that with fifos, opening with `O_RDONLY|O_NONBLOCK` and
then reading will look like EOF w...
alanwu (Alan Wu)
08:53 PM Revision 2157dcb5 (git): [ruby/prism] Add `contains_splat` flag
If we have a splat, add a flag for it named `contains_splat`.
https://github.com/ruby/prism/commit/5be97a75c8
eileencodes (Eileen Uchitelle)
08:13 PM Feature #20702 (Closed): Add `Array#fetch_values`
`Array` and `Hash` have matching methods to fetch:
* One value using `[]` (`Array` also allows fetching multiple with range or two arguments)
* One value with default or exception using `fetch` method
* Multiple values using `values...
toy (Ivan Kuchin)
08:01 PM Revision 7462cc77 (git): [PRISM] Fix allocations for keyword splat params
Fixes the following allocations tests:
* `test_keyword_and_keyword_splat_parameter`
* `test_keyword_parameter`
* `test_keyword_splat_parameter`
* `test_no_array_allocation_with_splat_and_nonstatic_keywords`
* `test_no_parameters`
* `tes...
eileencodes (Eileen Uchitelle)
06:50 PM Feature #20692: Rewrite Array#bsearch in Ruby
ty Hanmac sebyx07 (Sebastian Buza)
05:01 PM Revision 8f700db4 (git): [DOC] Tweaks for Array#delete_if
burdettelamar (Burdette Lamar)
04:59 PM Revision 0228cf74 (git): [DOC] Tweaks for Array#cycle (#11459)
burdettelamar (Burdette Lamar)
04:46 PM Revision 2fbaff53 (git): [ruby/prism] Fix warning when `#!` ends with carriage return
https://github.com/ruby/prism/commit/5753fb6260 Alexander Momchilov
04:23 PM Revision 83e72fde (git): Optimize Array allocations
… by allocating them with the correct capacity. Alexander Momchilov
04:08 PM Bug #20701 (Closed): Hash argument passed as keyword splat can be mutated inside method
Applied in changeset commit:git|a3562c2a0abf1c2bdd1d50377b4f929580782594.
----------
Remove incorrect setting of KW_SPLAT_MUT flag
Fixes [Bug #20701]
Co-authored-by: Pablo Herrero <pablodherrero@gmail.com>
jeremyevans (Jeremy Evans)
02:23 PM Bug #20701: Hash argument passed as keyword splat can be mutated inside method
Thanks for the report. Looks like a regression in commit:e87d0882910001ef3b0c2ccd43bf00cee8c34a0c. I submitted a pull request to fix this: https://github.com/ruby/ruby/pull/11468 jeremyevans0 (Jeremy Evans)
06:04 AM Bug #20701 (Closed): Hash argument passed as keyword splat can be mutated inside method
If you call a method with a splatted kwargs that also uses a splatted array followed by at least one positional argument, the called method can mutate the splatted kwargs.
``` ruby
def foo(a, h)
h[:splat_modified] = true
end
a...
pabloh (Pablo Herrero)
04:08 PM Revision a3562c2a (git): Remove incorrect setting of KW_SPLAT_MUT flag
Fixes [Bug #20701]
Co-authored-by: Pablo Herrero <pablodherrero@gmail.com>
jeremyevans (Jeremy Evans)
04:01 PM Bug #19865: Segfault when calling user signal handlers during VM shutdown
@nobu I came upon this again today as I saw this issue in new customer crashes.
I noticed you updated your commit recently, would be awesome to have the fix in so I could recommend these customers update to the latest stable Ruby.
ivoanjo (Ivo Anjo)
01:58 PM Revision 2459e79b (git): Assume that shared array is not embedded
An array cannot be shared and embedded at the same time, so we can assume
that a shared array is not embedded.
peterzhu2118 (Peter Zhu)
12:49 PM Revision 87fa75c5 (git): [ruby/irb] Move parse_command method to Context
(https://github.com/ruby/irb/pull/993)
Since Context dictates whether a line is a command or an expression,
moving the parse_command method to Context makes the relationship
more explicit.
https://github.com/ruby/irb/commit/9a4487af61
st0012 (Stan Lo)
12:46 PM Revision a431f4ec (git): [ruby/reline] Remove unused variables
(https://github.com/ruby/reline/pull/739)
https://github.com/ruby/reline/commit/14784eddee
ima1zumi (Mari Imaizumi)
10:12 AM Revision c96ba1fe (git): Merge URI-0.12.3
hsbt (Hiroshi SHIBATA)
08:22 AM Revision 529b6182 (git): Revert "merge revision(s) 29500e3034681a30045dea462d6bb653e8600738: [Backport #20698]"
This reverts commit 3a3784a197383046537e66a9c567b96a52f0f86f. nagachika (Tomoyuki Chikanaga)
02:39 AM Revision 04ca75ea (git): [ruby/uri] Also warn URI::RFC3986_PARSER.extract
https://github.com/ruby/uri/commit/0f6b945557 hsbt (Hiroshi SHIBATA)
01:19 AM Revision da9bbd8c (git): [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.101 to 0.9.102.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.101...v0.9.102)
---
updated-dep...
dependabot[bot]
12:59 AM Revision 52c4d0e0 (git): Remove `enc_coderange_broken` field from `struct rb_parser_config_struct`
It has not been used since fcc55dc2261b4c61da711c10a5476d05d4391eca. yui-knk (Kaneko Yuichiro)
12:39 AM Revision e5295644 (git): [ruby/fileutils] Update license files same as ruby/ruby
https://github.com/ruby/fileutils/commit/9e32a88573 hsbt (Hiroshi SHIBATA)

08/26/2024

11:42 PM Revision c486fce7 (git): [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.101 to 0.9.102.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.101...v0.9.102)
---
updated-dep...
dependabot[bot]
10:02 PM Revision ec61dbd9 (git): [ruby/rdoc] Make darkfish more responsive and readable on mobile
devices
(https://github.com/ruby/rdoc/pull/1162)
- Make the sidebar toggle fixed on all devices
- Prevent default zooming on mobile devices
- Improve sidebar opening on mobile devices
https://github.com/ruby/rdoc/commit/95b6cfb64f
st0012 (Stan Lo)
06:08 PM Bug #20700 (Feedback): `warn_cr_in_shebang()` doesn't fire if there's no `\n`
The `warn_cr_in_shebang()` function looks for `\r\n` together, but the `\r` should emit a warning, regardless if there's also a `\n` or not.
```ruby
#!/usr/bin/ruby
require "tempfile"
require "open3"
def run_rb(ruby_src)
pu...
AMomchilov (Alexander Momchilov)
05:25 PM Revision 8c01dec8 (git): Skip assertion in gc/default.c when multi-Ractor
The counter for total allocated objects may not be accurate when there are
multiple Ractors since it is not atomic so there could be race conditions
when it is incremented.
peterzhu2118 (Peter Zhu)
05:25 PM Revision 1cafc9d5 (git): Use rb_gc_multi_ractor_p in gc/default.c
peterzhu2118 (Peter Zhu)
05:21 PM Revision 51aadefb (git): [DOC] Tweaks to Array#delete_at
burdettelamar (Burdette Lamar)
04:53 PM Feature #11273 (Closed): [PATCH] Make it possible to `load` from a FIFO file
Closing as we carry a test since commit:bc8687acd62584bf2ba9a951289f3f25a4de7229 that exercises this functionality. alanwu (Alan Wu)
04:13 PM Feature #20664: Add `before` and `until` options to Enumerator.produce
I think that makes sense, as an opposite of `take_while`:
* `take_while` takes all elements until the block returns falsy, and does not include that element which yielded falsy.
* `take_until` takes all elements until the block returns...
Eregon (Benoit Daloze)
12:38 PM Feature #20664: Add `before` and `until` options to Enumerator.produce
IMO `take_until` shouldn't include the element. So the OP example should be:
```rb
Enumerator.produce(3, &:pred).take_until(&:negative?)
```
matheusrich (Matheus Richard)
12:14 PM Feature #20664: Add `before` and `until` options to Enumerator.produce
One issue with `take_until` is: does it include the element for which it yielded `true`?
In the description example `Enumerator.produce(3, until: :zero?, &:pred)` the result does include `0`.
But for `Enumerator.produce(parent, &:paren...
Eregon (Benoit Daloze)
03:20 PM Revision efa4ec0f (git): [DOC] Tweaks to Array#delete
burdettelamar (Burdette Lamar)
02:56 PM Revision 7c794c28 (git): [rubygems/rubygems] Emit progress to stderr when `--print` is passed to `bundle lock`
`bundle lock --print --update` can take a long time to fetch sources and
resolve the lock file.
Before, `--print` caused output to be completely silenced, so nothing
was printed at all until the resolved lock file is finally emitted to
...
Matt Brictson
02:56 PM Revision 20664826 (git): [rubygems/rubygems] Fix newline=false being ignored by Shell#warn
https://github.com/rubygems/rubygems/commit/e021ff33a8 Matt Brictson
02:56 PM Revision cfad1f95 (git): [rubygems/rubygems] Fix missing 'msg' parameter in Shell#no?
https://github.com/rubygems/rubygems/commit/ffe89a099a Matt Brictson
02:49 PM Revision 4ede15fb (git): [PRISM] Fix up nested string flags inside string concatenation
kddnewton (Kevin Newton)
01:56 PM Misc #20660: DevMeeting-2024-09-05
* [Feature #20594] A new String method to append bytes while preserving encoding (byroot)
* Continuation from previous meeting
* Alan proposed the method to be named `append_as_bytes`, to be variadic and accept both String and Intege...
byroot (Jean Boussier)
01:40 PM Revision 80d457b4 (git): Fix object allocation counters in compaction
When we move an object in compaction, we do not decrement the total_freed_objects
of the original size pool or increment the total_allocated_objects of the
new size pool. This means that when this object dies, it will appear as
if the ob...
peterzhu2118 (Peter Zhu)
01:40 PM Revision c3dc1322 (git): Move final_slots_count to per size pool
peterzhu2118 (Peter Zhu)
12:38 PM Revision 2b0b68fa (git): Shrink `pm_integer_t` (32 bytes → 24)
Alexander Momchilov
10:36 AM Revision 03475e55 (git): bundle install with git repo needs to be run under the git environment
hsbt (Hiroshi SHIBATA)
09:07 AM Feature #20692: Rewrite Array#bsearch in Ruby
`find_minimum_mode = finder || !finder` isn't this always true? Hanmac (Hans Mackowiak)
06:59 AM Bug #20699 (Open): On Windows, the `__dir__` keyword is garbled in paths containing Japanese characters, and `require_relative` fails as well
In paths containing Japanese characters, such as:
C:\テスト_test\test.rb
Code:
``` ruby
# this code -> C:\テスト_test\test.rb
# external file -> C:\テスト_test\lib\foo.rb
p __dir__
p __dir__.encoding
p File.dirname(File.expand_path(...
flatland001 (Hayato Arai)
03:20 AM Revision 45c04cad (git): Bump github/codeql-action from 3.26.4 to 3.26.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.4 to 3.26.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md...
dependabot[bot]
02:49 AM Revision 136cbf04 (git): [ruby/tempfile] Support anonymous tempfile on earlier than Ruby 3.2
https://github.com/ruby/tempfile/commit/7052805029 nobu (Nobuyoshi Nakada)
02:37 AM Bug #20690: URI.encode_www_form_component method escapes tilde when it's not supposed to
I labeled it as a bug, but maybe it's more of a feature request..? sorry if I'm getting it wrong.
I have also created a PR on the uri repo to address this particular case.
PR: https://github.com/ruby/uri/pull/117
This change might...
y4m4p (Masahiro Yamashita)
12:08 AM Revision 2e07c130 (git): Remove nonexist declarations
These functions were removed by 33c1e082d0807db403a2d93cbf0a094c911. yui-knk (Kaneko Yuichiro)
 

Also available in: Atom