Project

General

Profile

Activity

From 09/04/2022 to 09/10/2022

09/10/2022

09:46 PM Bug #18880: IO#sysread on Windows does not validate arguments
I submitted PR https://github.com/ruby/ruby/pull/6354 with a simple fix. I don't have a Windows system to test with though, so I couldn't verify that it works. javanthropus (Jeremy Bopp)
06:14 PM Feature #18949 (Open): Deprecate and remove replicate and dummy encodings
Eregon (Benoit Daloze)
05:03 PM Feature #18949 (Closed): Deprecate and remove replicate and dummy encodings
Applied in changeset commit:git|14bcf69c9c36875c7956d0ec8c04bfeaec514dd1.
----------
Deprecate Encoding#replicate
* See [Feature #18949].
Eregon (Benoit Daloze)
05:46 PM Bug #19004 (Closed): Complex can be nested by Complex.polar
`Complex.polar` with one argument can return a "nested" Complex instance, whose real part is also a Complex one.
```ruby
puts RUBY_DESCRIPTION
# ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
p Complex.polar(1+0i)
...
msnm (Masahiro Nomoto)
05:03 PM Revision c22a6685 (git): * 2022-09-11 [ci skip]
git[bot]
05:02 PM Revision 14bcf69c (git): Deprecate Encoding#replicate
* See [Feature #18949]. Eregon (Benoit Daloze)
04:41 PM Feature #16122: Data: simple immutable value object
Indeed, that's what I meant. Alright, I guess we need to support positional arguments too then.
Because that's implemented in the subclass `.new` it should be possible to optimize it pretty well.
Eregon (Benoit Daloze)
02:12 PM Feature #16122: Data: simple immutable value object
> Regarding creating a new Data subclass instance, I wonder if we should support both positional and kwargs, or if we should only support keyword arguments
Am I understanding correctly that you propose to only leave `Measure.new(amoun...
zverok (Victor Shepelev)
02:04 PM Feature #16122: Data: simple immutable value object
zverok (Victor Shepelev) wrote in #note-70:
> I am not sure whether we have a C-level API for passing keyword args one-by-one, not by packing to Hash and unpacking back?.. My C-foo might be not strong enough for defining specialized ini...
Eregon (Benoit Daloze)
01:55 PM Feature #16122: Data: simple immutable value object
@Eregon Yeah, those are valuable observations!
The specialized `initialize` also looks more reasonable to me, actually, but I followed what the `Struct` does so far.
I am not sure whether we have a C-level API for passing keyword...
zverok (Victor Shepelev)
01:46 PM Feature #16122: Data: simple immutable value object
Looks good to me.
Regarding overriding `initialize` and calling `super`, that would not work if we define an optimized `initialize` instance method on the subclass by Data.define (it would result in NoMethodError or the slower generic...
Eregon (Benoit Daloze)
12:35 PM Feature #16122: Data: simple immutable value object
Pull request: https://github.com/ruby/ruby/pull/6353
Copying from its description:
Example docs rendering: [Data](https://zverok.space/ruby-rdoc/Data.html)
Design and implementation decisions made:
**1. The "define data object method...
zverok (Victor Shepelev)
11:08 AM Feature #16122: Data: simple immutable value object
Agreed with @k0kubun. Also `Class.define` wouldn't make it clear it defines a data class and creates Data (subclass) instances. Eregon (Benoit Daloze)
01:24 PM Feature #19001: Data: Add #to_h symmetric to constructor with keyword args [Follow-on to #16122 Data: simple immutable value object]
There isn't any need for this ticket as a separate request, as far as I am concerned.
It works in the initial implementation of data already as submitted in https://bugs.ruby-lang.org/issues/16122#note-68, and even works with ol' good S...
zverok (Victor Shepelev)
12:32 PM Revision f6411795 (git): [win32] Set proper `NULLCMD` in rbconfig.rb [ci skip]
nobu (Nobuyoshi Nakada)
12:31 PM Bug #18998: Kernel#Integer does not convert SimpleDelegator object expectly
> it would be best if you defined #to_int on your delegator
I've tried this approach but it was failed because `base` and `exception` arguments cannot be passed to `#to_i` method on my delegator.
Therefore, I've overridden `Kernel#In...
taichi730 (Taichi Ishitani)
11:50 AM Revision c7225971 (git): [MSWin] Get rid of single quotes in sed command lines
GnuWin32 sed strips only double quotes, but not single quotes, and
dies:
```
sed: -e expression #1, char 1: unknown command: `''
```
nobu (Nobuyoshi Nakada)
11:14 AM Revision 92b907d1 (git): Enable deprecation warnings for test-all
* So deprecated methods/constants/functions are dealt with early,
instead of many tests breaking suddenly when removing a deprecated
method/constant/function.
* Follows https://bugs.ruby-lang.org/issues/17591
Eregon (Benoit Daloze)
07:54 AM Revision 9581248c (git): merge revision(s) b7577b4d9e0fd92522fc30e10fe712e245adee8c:
The tzdata 2022c removed Amsterdam Mean Time
---
spec/ruby/core/time/shared/local.rb | 2 ++
1 file changed, 2 insertions(+)
nagachika (Tomoyuki Chikanaga)
07:13 AM Bug #18936: Backport 261753249996d46e00c2549fff2527816bf387db
ruby_3_1 4508901fbd8825cc8d9aaf535b5201ade17a8392 merged revision(s) 261753249996d46e00c2549fff2527816bf387db. nagachika (Tomoyuki Chikanaga)
07:12 AM Bug #18990: Pattern matching unexpectedly raises "duplicated key name" error
ruby_3_1 163947f4dc031bb5e619ae64ad4a6a02f8885717 merged revision(s) db0e0dad1171456253ebd899e7e878823923d3d8. nagachika (Tomoyuki Chikanaga)
07:12 AM Bug #18938: Backport cf7d07570f50ef9c16007019afcff11ba6500d70
I tried to backport cf7d07570f50ef9c16007019afcff11ba6500d70 and c6aa65430fbb94651f4d15e2a976f59b5475ca19 into ruby_3_1 branch, but the test `test_utf8_method_names` failed. Maybe some more changesets are needed. I will investigate it fu... nagachika (Tomoyuki Chikanaga)
07:04 AM Revision 4508901f (git): merge revision(s) 261753249996d46e00c2549fff2527816bf387db: [Backport #18936]
Free cached mark stack chunks when freeing objspace
Cached mark stack chunks should also be freed when freeing objspace.
---
gc.c | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
nagachika (Tomoyuki Chikanaga)
07:00 AM Revision 163947f4 (git): merge revision(s) db0e0dad1171456253ebd899e7e878823923d3d8: [Backport #18990]
Fix unexpected "duplicated key name" error in paren-less one line
pattern matching
[Bug #18990]
---
parse.y | 16 ++++++++++++----
test/ruby/test_pattern_matching.rb |...
nagachika (Tomoyuki Chikanaga)
03:29 AM Revision 5e39b3b8 (git): YJIT: Branch directly when nil? is known from types
jhawthorn (John Hawthorn)
03:29 AM Revision d3191843 (git): YJIT: Branch directly when truthyness is known
jhawthorn (John Hawthorn)
12:32 AM Revision 79f50b9d (git): Using is_broken_string function
S_H_ (Shun Hiraoka)
12:32 AM Revision 51830188 (git): Fix parallel build on MINGW
When the build is running with a base ruby then generating `x64-ucrt-ruby320.rc`
could fail due to a missing dependency to `x64-mingw-ucrt-fake.rb`.
This commit adds this dependency.
A failing build looks like so:
```
generating x64-min...
larskanis (Lars Kanis)

09/09/2022

11:06 PM Feature #16122: Data: simple immutable value object
shugo (Shugo Maeda) wrote in #note-65:
> why not use Class.define to return a new immutable Struct-like class?
Given that Matz is also thinking about introducing `Struct.define`, if we do the immutable one with `Class.define`, we'd n...
k0kubun (Takashi Kokubun)
09:26 PM Feature #16122: Data: simple immutable value object
If we choose `define` instead of `new`, why not use Class.define to return a new immutable Struct-like class?
* The name Data doesn't imply immutability, so Class.define is OK too.
* It's clearer that Class.define returns a class.
shugo (Shugo Maeda)
10:41 PM Revision 5b5c627d (git): YJIT: eliminate redundant mov in csel/cmov on x86 (#6348)
* Eliminate redundant mov in csel/cmov. Translate mov reg,0 into xor
* Fix x86 asm test
* Remove dbg!()
* xor optimization unsound because it resets flags
maximecb (Maxime Chevalier-Boisvert)
10:14 PM Bug #18998: Kernel#Integer does not convert SimpleDelegator object expectly
> My thought is that Integer method should convert a Delegator object like when a String is given.
I don't think it would be advisable for `Kernel#Integer` to know about `Delegator`. `Delegator` is just a class from the stdlib, you co...
byroot (Jean Boussier)
05:10 PM Bug #18998: Kernel#Integer does not convert SimpleDelegator object expectly
Thank you for your reply.
I understood that there is no documented specification and the current implementation.
How should Integer method behave for this case?
My thought is that Integer method should convert a Delegator object lik...
taichi730 (Taichi Ishitani)
08:44 PM Feature #12354: PKey::EC Can't output public key pem when private key exists
If you're linked against OpenSSL >= 3, the workarounds suggested here don't seem to work any longer because a pkey is not allowed to be modified:
```
Failure/Error: pub.public_key = SIGNING_KEY.public_key
OpenSSL::PKey::PKeyError:...
brandur (Brandur Leach)
03:38 PM Revision 2a08a39d (git): * 2022-09-10 [ci skip]
git[bot]
03:37 PM Revision 848037ca (git): Better offsets (#6315)
* Introduce InstructionOffset for AArch64
There are a lot of instructions on AArch64 where we take an offset
from PC in terms of the number of instructions. This is for loading
a value relative to the PC or for jumping.
We were usually...
kddnewton (Kevin Newton)
10:38 AM Revision b350053a (git): [rubygems/rubygems] Fix resolution on non-musl platforms
Gems without specific platform were being preferred over matching
platform specific gems.
https://github.com/rubygems/rubygems/commit/37b95b9159
deivid (David Rodríguez)
09:58 AM Revision cfe10e48 (git): [DOC] Update `Struct#new` behavior with `keyword_init: true`
nobu (Nobuyoshi Nakada)
09:17 AM Bug #19003 (Rejected): TracePoint behavior inconsistency in 3.2.0-preview2
This is kind of continuation of my previous report about global/local TP processing (#18730).
Sample script:
```rb
def foo
return 1
end
puts RubyVM::InstructionSequence.of(method :foo).disasm
def step_over
TracePoint.ne...
hurricup (Alexandr Evstigneev)
07:03 AM Revision aff6534e (git): Avoid unnecessary copying when removing the leading part of a string
Remove the superfluous str_modify_keep_cr() call from rb_str_update().
It ends up calling either rb_str_drop_bytes() or rb_str_splice_0(),
which already does checks if necessary.
The extra call makes the string "independent". This is no...
rhenium (Kazuki Yamaguchi)
06:47 AM Revision 9faa9ced (git): Support sub-library in builtin-loader
Previously, it was supported in prelude.c, but has not followed up the
builtin-loader system.
nobu (Nobuyoshi Nakada)
06:19 AM Revision 56e5210c (git): More robust macro parser (#6343)
I want to use more complicated macros with MJIT. For example:
```
# define SHAPE_MASK (((unsigned int)1 << SHAPE_BITS) - 1)
```
This commit adds a simple recursive descent parser that produces an AST
and a small visitor that convert...
tenderlovemaking (Aaron Patterson)
05:23 AM Revision be560332 (git): Move RDoc `--`/`++` directives to comments
nobu (Nobuyoshi Nakada)
05:20 AM Revision 2dcaeb75 (git): Built-in function table sentinels do not need names
nobu (Nobuyoshi Nakada)
05:16 AM Bug #18990: Pattern matching unexpectedly raises "duplicated key name" error
@zeke
Thanks for reporting.
ktsj (Kazuki Tsujimoto)
05:06 AM Bug #18990 (Closed): Pattern matching unexpectedly raises "duplicated key name" error
Applied in changeset commit:git|db0e0dad1171456253ebd899e7e878823923d3d8.
----------
Fix unexpected "duplicated key name" error in paren-less one line pattern matching
[Bug #18990]
ktsj (Kazuki Tsujimoto)
05:00 AM Revision db0e0dad (git): Fix unexpected "duplicated key name" error in paren-less one line pattern matching
[Bug #18990] ktsj (Kazuki Tsujimoto)
02:36 AM Revision 59eadf3d (git): Ignore EACCES on Windows
nobu (Nobuyoshi Nakada)
01:47 AM Feature #19002: Explicit splat for enumerator kwarg blocks
I also had
``` ruby
module Enumerable
def **(proc) = each { |arg| proc[**arg] }
end
ary.map ** ->(foo:, bar:) { foo+bar } #=> [143, 222]
```
which is kinda fun, but not so readable.
inopinatus (Joshua GOODALL)
01:12 AM Feature #19002 (Open): Explicit splat for enumerator kwarg blocks
I'm renovating some 2.x-era code that relied heavily on autosplat for block kwargs. As we all know, this throws an ArgumentError in Ruby 3:
``` ruby
ary = [
{ foo: 42, bar: 101 },
{ foo: 99, bar: 123 }
]
ary.map { |foo:, ba...
inopinatus (Joshua GOODALL)

09/08/2022

09:09 PM Revision 35cfc9a3 (git): Remove as many unnecessary moves as possible (#6342)
This commit does a bunch of stuff to try to eliminate as many
unnecessary mov instructions as possible.
First, it introduces the Insn::LoadInto instruction. Previously
when we needed a value to go into a specific register (like in
Insn:...
kddnewton (Kevin Newton)
07:50 PM Feature #16122: Data: simple immutable value object
I've filed a 2nd follow-up ticket [here](https://bugs.ruby-lang.org/issues/19001) for the Symmetric `#to_h` method whose values can be fed to a keyword-args constructor
RubyBugs (A Nonymous)
06:20 PM Feature #16122: Data: simple immutable value object
k0kubun (Takashi Kokubun) wrote in #note-62:
> Can you please file a separate ticket to discuss `Data` extensions that don't exist in Struct? There could be so many `Data` extension ideas, such as default values mentioned in #note-49, b...
RubyBugs (A Nonymous)
07:47 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
💡 In case it's of interest, I've partially solved this problem in the [Refinements](https://www.alchemists.io/projects/refinements) gem several years back by adding the `#merge` and `#merge!` methods to `Struct` as a refinement. Here's t... bkuhlmann (Brooke Kuhlmann)
06:19 PM Feature #19000 (Closed): Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
*As requested: extracted a follow-up to #16122 Data: simple immutable value object from [this comment](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/109815)*
# Proposal: Add a "Copy with changes" method to Data
Assu...
RubyBugs (A Nonymous)
07:35 PM Bug #18998: Kernel#Integer does not convert SimpleDelegator object expectly
So this behavior isn't documented, so it's hard to say wether it's correct:
> Integer(arg, base=0, exception: true) → integer or nil
Converts arg to an Integer. Numeric types are converted directly (with floating point numbers being ...
byroot (Jean Boussier)
01:21 PM Bug #18998 (Closed): Kernel#Integer does not convert SimpleDelegator object expectly
Kernel#Integer method doens not convert a SimpleDelegator object of which value is a String.
This is an sample code.
``` ruby
require 'delegate'
p Integer(SimpleDelegator.new('0x10'))
```
I expect Kernel#Integer to convert the ...
taichi730 (Taichi Ishitani)
06:44 PM Feature #19001: Data: Add #to_h symmetric to constructor with keyword args [Follow-on to #16122 Data: simple immutable value object]
Per @Matz [here](https://bugs.ruby-lang.org/issues/16122#note-51), the preference would be for the constructor to take either:
* Only keyword args
* Either keyword args OR positional args
The [Values gem](https://github.com/ms-ati/V...
RubyBugs (A Nonymous)
06:37 PM Feature #19001 (Closed): Data: Add #to_h symmetric to constructor with keyword args [Follow-on to #16122 Data: simple immutable value object]
*Extracted a follow-up to [#16122 Data: simple immutable value object](https://bugs.ruby-lang.org/issues/16122)*
# Proposal: Add a `#to_h` method symmetric to a constructor accepting keyword arguments
This allows round-trip between...
RubyBugs (A Nonymous)
06:28 PM Bug #18763: The configure option “--with-openssl-dir” has lower precedence than pkg-config
@rhenium I think we can close this once #18999 is done, right? Eregon (Benoit Daloze)
04:33 PM Revision e4f5296f (git): No longer bundle external library sources
nobu (Nobuyoshi Nakada)
03:46 PM Revision 6d93644b (git): * 2022-09-09 [ci skip]
git[bot]
03:45 PM Revision 28030f7b (git): eliminate magic number
YO4 (Yoshinao Muramatsu)
03:45 PM Revision 81e7573a (git): win32.c additional fix: is_readable_console
classic console(conhost.exe) reports an input with ALT+NUMPAD as VK_MENU, KeyUp, and uChar!=0.
additional fix for #5634
YO4 (Yoshinao Muramatsu)
03:45 PM Revision 7a849e19 (git): win32.c fix: is_readable_console
UnicodeChar with lower byte == 0 has dropped accidentaly
this is additional fix for #5634
YO4 (Yoshinao Muramatsu)
02:57 PM Bug #18999 (Closed): Backport openssl 2.1.4/2.2.2/3.0.1
Please backport the latest openssl to stable branches.
I created GitHub PRs for each branch:
- Ruby 2.7 (v2.1.4) https://github.com/ruby/ruby/pull/6339
- Ruby 3.0 (v2.2.2) https://github.com/ruby/ruby/pull/6338
- Ruby 3.1 (v3....
rhenium (Kazuki Yamaguchi)
02:01 PM Bug #5317 (Closed): rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
Applied in changeset commit:git|e2ccb316b437104cd1734c378970d34f5305966d.
----------
[Bug #5317] Use `rb_off_t` instead of `off_t`
Get rid of the conflict with system-provided small `off_t`.
nobu (Nobuyoshi Nakada)
02:01 PM Revision e2ccb316 (git): [Bug #5317] Use `rb_off_t` instead of `off_t`
Get rid of the conflict with system-provided small `off_t`. nobu (Nobuyoshi Nakada)
02:01 PM Revision 55fef084 (git): [Win32] Remove dead code using `chsize`
Already using `rb_w32_truncate` and `rb_w32_ftruncate`, and
`HAVE_FTRUNCATE` has been added 14 years ago.
nobu (Nobuyoshi Nakada)
01:02 PM Revision b7fa78b0 (git): vm_objtostring: skip method lookup for T_STRING receivers
We don't need it, and in string interpolation context
that's the common case.
byroot (Jean Boussier)
01:02 PM Revision cd1724bd (git): rb_str_concat_literals: use rb_str_buf_append
That's about 1.30x faster. byroot (Jean Boussier)
11:44 AM Revision e0cd466a (git): [rubygems/rubygems] Fix unused variable warning
https://github.com/rubygems/rubygems/commit/ca8d47e53a deivid (David Rodríguez)
11:12 AM Misc #18977: DevMeeting-2022-09-22
- [Feature #18996] Proposal: Introduce new APIs to reline for changing dialog UI colours (st0012)
- `irb`'s autocompletion background can make texts hard to read for some users.
- Because the colours are hardcoded in `reline`, u...
st0012 (Stan Lo)
09:22 AM Revision bcf82b7c (git): Process token IDs from id.def without id.h
Fixes id.h error during updating ripper.c by `make after-update`.
While it used to update id.h in the build directory, but was trying to
update ripper.c in the source directory. In principle, files in the
source directory can or should...
nobu (Nobuyoshi Nakada)
09:18 AM Revision a977c663 (git): Generate token ID indexes in id.def
Separate the logic accross the tables from the template view for
id.h.
nobu (Nobuyoshi Nakada)
08:56 AM Bug #18880: IO#sysread on Windows does not validate arguments
The `ArgumentError` is correct.
Even on Windows, `sysread(-2)` raises an `ArgumentError` too.
At rounding up `len` in io.c:io_setstrbuf(), negative values are not considered.
nobu (Nobuyoshi Nakada)
08:38 AM Bug #18997 (Closed): Don't define ruby_qsort when POSIX qsort_r is available
Applied in changeset commit:git|7400628cb054a9a9651d69411a100fc9d518099f.
----------
[Bug #18997] Don't define ruby_qsort when POSIX qsort_r is available
The current code would define ruby_qsort as a wrapper of qsort_s
when it is avail...
Anonymous
07:50 AM Bug #18997 (Closed): Don't define ruby_qsort when POSIX qsort_r is available
The current code would define ruby_qsort as a wrapper of qsort_s when it is available. When both qsort_s and POSIX (GNU) qsort_r are available, we should call qsort_r directly instead, and the qsort_s wrapper is redundant.
Proposed pa...
delphij (Xin Li)
08:37 AM Revision 7400628c (git): [Bug #18997] Don't define ruby_qsort when POSIX qsort_r is available
The current code would define ruby_qsort as a wrapper of qsort_s
when it is available. When both qsort_s and POSIX (GNU) qsort_r
are available, we should call qsort_r directly instead, and
the qsort_s wrapper is redundant.
Xin Li
05:31 AM Revision 78af05ba (git): [ruby/forwardable] Freeze VERSION and FORWARDABLE_VERSION to improve Ractor-compliance
https://github.com/ruby/forwardable/commit/c91f41f4fa rm155 (Rohit Menon)
05:09 AM Revision 70e6be2b (git): [ruby/ipaddr] Improve Ractor-compliance
https://github.com/ruby/ipaddr/commit/73461724e5 rm155 (Rohit Menon)
04:41 AM Revision e76a5508 (git): [MSWin] Fix for non-Windows (cygwin/msys) BASERUBY
nobu (Nobuyoshi Nakada)
04:41 AM Revision 26c42304 (git): [MSWin] Disable rubygems of BASERUBY
nobu (Nobuyoshi Nakada)
02:52 AM Revision 332d29df (git): [DOC] non-positive `base` in `Kernel#Integer` and `String#to_i`
nobu (Nobuyoshi Nakada)
02:25 AM Revision b1efdcee (git): * 2022-09-08 [ci skip]
git[bot]
02:25 AM Revision 24fd2f73 (git): Resync Bundler & RubyGems
deivid (David Rodríguez)

09/07/2022

10:28 PM Feature #18996 (Closed): Proposal: Introduce new APIs to reline for changing dialog UI colours
### TL;DR
I want to add APIs to `reline` for changing its dialog item's colors.
The APIs I want to add actually have been merged but becaue:
1. This is a design change
2. The maintainer @aycabta is not available to approve nor re...
st0012 (Stan Lo)
10:07 AM Revision 2d57447a (git): Fix missing replacement in 1f91dcdab3b
nobu (Nobuyoshi Nakada)
05:48 AM Revision 35c493ec (git): Dump cross.rb only when verbose [ci skip]
nobu (Nobuyoshi Nakada)
05:33 AM Revision 1f91dcda (git): Define BOOTSTRAPRUBY from HAVE_BASERUBY
nobu (Nobuyoshi Nakada)
05:26 AM Revision cac0dcfb (git): Fix typo
I meant the other one. Otherwise this option doesn't make sense. k0kubun (Takashi Kokubun)
05:14 AM Revision 496bdf01 (git): Adjust pch_status for --mjit=pause
to let mjit_add_iseq_to_process work k0kubun (Takashi Kokubun)
01:40 AM Revision f0661bf3 (git): Skip early mjit_add_iseq_to_process on --mjit=pause
k0kubun (Takashi Kokubun)
01:37 AM Revision e6b47f2f (git): Now Psych uses the proleptic Gregorian calendar
nobu (Nobuyoshi Nakada)
01:25 AM Revision f24c65ea (git): Skip calling check_unit_queue with mjit_opts.custom
fixing the behavior of b726c06e7eeafff52e368179dbe79a11b1aff975 k0kubun (Takashi Kokubun)
01:08 AM Revision 6a43245e (git): Use BOOTSTRAPRUBY_COMMAND instead of fake.rb directly
nobu (Nobuyoshi Nakada)
01:08 AM Revision 3a575d13 (git): Ensure BASERUBY when cross-compiling
nobu (Nobuyoshi Nakada)
12:51 AM Revision 1b034d66 (git): [ruby/psych] Bump snakeyaml from 1.28 to 1.31
Resolves CVE-2022-25857, among other fixes.
https://github.com/ruby/psych/commit/918cd25d37
Chad Wilson
12:44 AM Revision cbdde8e0 (git): [ruby/psych] Dump Date/DateTime as proleptic Gregorian date as well as Time
Fix ruby/psych#572
https://github.com/ruby/psych/commit/92304269bc
nobu (Nobuyoshi Nakada)
12:41 AM Revision bfa6d0f6 (git): fixup 8cd6f2a0872e74c6cc089d2a4f8140483080c67a
we should handle ensure block when omit this test hsbt (Hiroshi SHIBATA)

09/06/2022

09:21 PM Revision d5752f73 (git): Add another method for debugging
k0kubun (Takashi Kokubun)
09:18 PM Revision 4c1f6750 (git): [rubygems/rubygems] Fix: Gem info bug with version flag
https://github.com/rubygems/rubygems/commit/e4cee1f975 Antonio Paulino
08:55 PM Revision 87ef9090 (git): Drop an unused method for debugging
and add another useful one instead. k0kubun (Takashi Kokubun)
03:05 PM Revision a9c85c0c (git): * 2022-09-07 [ci skip]
git[bot]
03:04 PM Revision 51022b8e (git): Exit status macros need sys/wait.h on FreeBSD
nobu (Nobuyoshi Nakada)
08:11 AM Revision 1f77cc38 (git): [rubygems/rubygems] Fix `set` not being found when running specs on dev rubies
https://github.com/rubygems/rubygems/commit/c5b2960388 deivid (David Rodríguez)
08:11 AM Revision c664264c (git): [rubygems/rubygems] Add `syntax_suggest` to exemption list in setup specs
https://github.com/rubygems/rubygems/commit/f9a51e4380 deivid (David Rodríguez)
07:27 AM Revision 29bc3e0d (git): omit random failure in bootstraptest with freebsd
http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20220902T063002Z.fail.html.gz hsbt (Hiroshi SHIBATA)
07:27 AM Revision 8cd6f2a0 (git): omit random failure tests with FreeBSD
http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20220906T043002Z.fail.html.gz
http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20220905T103002Z.fail.html.gz
hsbt (Hiroshi SHIBATA)
07:22 AM Revision 03ae415d (git): Fix typo
k0kubun (Takashi Kokubun)
07:09 AM Revision 3f9125aa (git): Update c_32.rb
k0kubun (Takashi Kokubun)
06:59 AM Revision 42140233 (git): Run mjit-bindgen again
I'm thinking about Ruby builtin code instead of doing this.
It'll be hopefully more portable and easier because the same C code could
handle both 32bit and 64bit.
k0kubun (Takashi Kokubun)
06:52 AM Revision b726c06e (git): Allow hooking a different method after --mjit=pause
The interface is similar to RubyVM::ISeq.translate; it's used if defined.
Same as --mjit=pause, this is an undocumented feature for MJIT experiments.
k0kubun (Takashi Kokubun)
06:50 AM Revision 341b40bd (git): Cache RubyVM::MJIT constants
for performance k0kubun (Takashi Kokubun)
06:45 AM Revision 5b3bd91f (git): Add an option to lazily boot MJIT for experiments
You may use `RUBYOPT=--mjit=pause irb` to play with RubyVM::MJIT::C,
control the boot timing of MJIT, or customize the implementation while
paused. It's an undocumented feature for such experiments.
k0kubun (Takashi Kokubun)
06:42 AM Revision f6925fab (git): Do not fork the process on --mjit-wait
fork is for parallel compilation, but --mjit-wait cancels it.
It's more useful to not fork it for binding.irb, debugging, etc.
k0kubun (Takashi Kokubun)
06:40 AM Revision f4dbfa0f (git): Skip test_redefinition_mismatch on trunk-mjit for now
Investigating:
http://ci.rvm.jp/logfiles/brlog.trunk-mjit.20220906-025646
which is not immediately reproducible on my laptop.
k0kubun (Takashi Kokubun)
01:42 AM Revision 6d10865c (git): Update default gems list at 2657d8efb9d38761c1e09f54fadea4 [ci skip]
git[bot]
01:41 AM Revision 2657d8ef (git): [ruby/set] Bump version to 1.0.3
https://github.com/ruby/set/commit/e2419f2d30 hsbt (Hiroshi SHIBATA)

09/05/2022

03:39 PM Revision 63ed61e3 (git): Deal with MJIT_FORCE_ENABLE miniruby
http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/4225469 k0kubun (Takashi Kokubun)
03:27 PM Revision ca172540 (git): * 2022-09-06 [ci skip]
git[bot]
03:26 PM Revision 27eb7158 (git): Workaround unused variable warning by builtin
```
<internal:mjit_compiler>:43: warning: assigned but unused variable - iseq_addr
<internal:mjit_compiler>:48: warning: assigned but unused variable - ci_addr
<internal:mjit_compiler>:53: warning: assigned but unused variable - ci_addr
...
k0kubun (Takashi Kokubun)
12:21 PM Revision 6bc6c8d0 (git): [rubygems/rubygems] Remove no longer needed `fiddle` hacks
RubyInstaller has released patch versions backporting their changes to
not load `fiddle` on boot, so all these are no longer necessary.
https://github.com/rubygems/rubygems/commit/05a307deb2
deivid (David Rodríguez)
10:36 AM Revision a8a7c9d0 (git): [DOC] [Bug #17120] Fix match-reset `\K`
nobu (Nobuyoshi Nakada)
10:06 AM Revision 4331d4bb (git): Update default gems list at 113581d288496f8f3e60851b76b751 [ci skip]
git[bot]
10:05 AM Revision 113581d2 (git): [ruby/set] Set version to 1.0.3.dev for fixing rubygems/bundler tests
https://github.com/ruby/set/commit/40dda15d7f hsbt (Hiroshi SHIBATA)
09:02 AM Revision 915cbdb2 (git): Stop testing MJIT on s390x
It didn't work either.
http://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20220905T080003Z.fail.html.gz
k0kubun (Takashi Kokubun)
08:30 AM Revision fb769aaa (git): Update MJIT doc about bindgen and platforms [ci skip]
k0kubun (Takashi Kokubun)
08:25 AM Revision cb26917d (git): Drop Solaris support for MJIT
I tried to debug:
http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20220905T070005Z.fail.html.gz
but I don't have sudo privilege to install dependencies such as xz on
that machine. Thus I can't extract a prebuilt libclang bin...
k0kubun (Takashi Kokubun)
08:06 AM Revision 06eb9af8 (git): Add mjit-bindgen workflow (#6327)
k0kubun (Takashi Kokubun)
07:27 AM Revision c2986f7d (git): Fix warnings from private_constant
`private_constant *constants` seems to be warned for some reason k0kubun (Takashi Kokubun)
06:25 AM Revision d77c037a (git): Automatically detect 64bit platforms
k0kubun (Takashi Kokubun)
06:23 AM Revision 967fe334 (git): s390x seems like a 64bit architecture
k0kubun (Takashi Kokubun)
05:37 AM Revision 3eca1e43 (git): Merge https://github.com/rubygems/rubygems/commit/16c3535413afebcdbab7582c6017c27b5da8a8dc
hsbt (Hiroshi SHIBATA)
04:53 AM Revision 3767c6a9 (git): Ruby MJIT (#6028)
k0kubun (Takashi Kokubun)
04:45 AM Revision 277498e2 (git): Attempt to fix test-bundler
f7cf641469161c3770b58f79e08e312512212aa8 broke spec/bundler/install/gems/resolving_spec.rb:356.
This line seems to impact that test, so I slightly modified the
implementation for that spec's case.
k0kubun (Takashi Kokubun)
04:08 AM Revision 4d469472 (git): Debugging snapshot [ci skip]
nobu (Nobuyoshi Nakada)
02:43 AM Revision 45fe7f75 (git): [rubygems/rubygems] Feature: `bundle add` supports `--path` option
https://github.com/rubygems/rubygems/commit/32bee01fbe mdalessio (Mike Dalessio)
02:43 AM Revision f7cf6414 (git): [rubygems/rubygems] Fix resolution hanging on musl platforms
After recent musl support was added, Bundler started hanging in musl
platforms. I identified the issue where valid candidates were being
filtered out because their platform was specified as a string, and thus
`Gem::Platform.match_spec?` ...
deivid (David Rodríguez)
02:25 AM Revision 14203334 (git): Fix fake.rb expansion from preprocessed version.h
nobu (Nobuyoshi Nakada)
02:16 AM Revision 85a48316 (git): Use cross compiling settings as fake.rb for snapshots
nobu (Nobuyoshi Nakada)
02:16 AM Revision 68a092a4 (git): Set fake.rb variables by command line arguments
Then fallbacks to preprocessed version.h. nobu (Nobuyoshi Nakada)
01:22 AM Revision f6d569b7 (git): Call appropriate hooks on MJIT's fork
This takes care of signal_self_pipe and other things. k0kubun (Takashi Kokubun)

09/04/2022

11:13 PM Bug #18880: IO#sysread on Windows does not validate arguments
I'm interested in submitting a patch for this, but which behavior is considered correct? javanthropus (Jeremy Bopp)
11:06 PM Bug #18995 (Open): IO#set_encoding sometimes set an IO's internal encoding to the default external encoding
This script demonstrates the behavior:
```ruby
def show(io)
printf(
"external encoding: %-25p internal encoding: %-25p\n",
io.external_encoding,
io.internal_encoding
)
end
Encoding.default_external = 'iso-88...
javanthropus (Jeremy Bopp)
03:16 PM Revision 51291ade (git): Remove extra semicolons at the top level [ci skip]
nobu (Nobuyoshi Nakada)
03:00 PM Revision e83183b4 (git): * 2022-09-05 [ci skip]
git[bot]
02:59 PM Revision 76664905 (git): Ignore fake.rb for snapshot
nobu (Nobuyoshi Nakada)
02:50 PM Bug #18743: Enumerator#next / peek re-use each others stacktraces
Good day, @matz. Is the fix above acceptable? marcper (Marcelo Pereira)
09:16 AM Bug #18994 (Closed): Range#last(n) returns empty for single-element Integer Range
Applied in changeset commit:git|bbe5ec78463f8d6ef2e1a3571f17357a3d9ec8e4.
----------
rb_int_range_last: properly handle non-exclusive range
[Bug #18994]
byroot (Jean Boussier)
07:49 AM Bug #18994: Range#last(n) returns empty for single-element Integer Range
Thanks, I have a patch for it: https://github.com/ruby/ruby/pull/6324 byroot (Jean Boussier)
09:16 AM Revision bbe5ec78 (git): rb_int_range_last: properly handle non-exclusive range
[Bug #18994] byroot (Jean Boussier)
07:55 AM Revision c498b16a (git): revision up for https://github.com/ruby/ruby/pull/6296
nagachika (Tomoyuki Chikanaga)
07:54 AM Bug #18981: Backport bundle loader option to stable versions
Merged https://github.com/ruby/ruby/pull/6296. nagachika (Tomoyuki Chikanaga)
07:53 AM Revision 1821b759 (git): Backport https://github.com/ruby/ruby/pull/6193
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com> hsbt (Hiroshi SHIBATA)
07:26 AM Bug #18775: Backport ef525b012a709077ea2797e8642fae0b61234063
ruby_3_1 882d4203f184ac93ac5c2c02c1e9f4b26cfad1db merged revision(s) ef525b012a709077ea2797e8642fae0b61234063,dc9a13abeef5a2b936fbb55edc112b8b382a05e7. nagachika (Tomoyuki Chikanaga)
07:25 AM Bug #18631: Range check breaks multiplex backreferences in regular expressions
ruby_3_1 6b8bf6ba5d1893b3c933c2de3ada1eb59a94b644 merged revision(s) 6d3f447aecfb56f7d3edbdf9cc68e748e150d7d8. nagachika (Tomoyuki Chikanaga)
07:25 AM Bug #18670: MatchData#[start, length] pads nil values when negative start is given
ruby_3_1 1cfc139f6d0cb80d6024b0c416976194929417cf merged revision(s) d8189ed23f02dd197453279aeee9be1785337d4f. nagachika (Tomoyuki Chikanaga)
07:24 AM Revision 882d4203 (git): merge revision(s) ef525b012a709077ea2797e8642fae0b61234063,dc9a13abeef5a2b936fbb55edc112b8b382a05e7: [Backport #18775]
Explicit handling of frozen strings in `IO::Buffer#for`. (#5892)
---
io_buffer.c | 122 +++++++++++++++++++++++++++++++++++---------
test/ruby/test_io_buffer.rb | 36 +++++++------
2 fil...
nagachika (Tomoyuki Chikanaga)
07:01 AM Revision 6b8bf6ba (git): merge revision(s) 6d3f447aecfb56f7d3edbdf9cc68e748e150d7d8: [Backport #18631]
Fix multiplex backreferencs near end of string in regexp match
Idea from Jirka Marsik.
Fixes [Bug #18631]
---
regexec.c | 6 ++++--
test/ruby/test_regexp.rb | 6 ++++++
2 ...
nagachika (Tomoyuki Chikanaga)
07:00 AM Revision 1cfc139f (git): merge revision(s) d8189ed23f02dd197453279aeee9be1785337d4f: [Backport #18670]
Return only captured range in `MatchData` [Bug #18670]
---
re.c | 2 +-
test/ruby/test_regexp.rb | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
nagachika (Tomoyuki Chikanaga)
03:01 AM Revision cfa40e22 (git): Prefer stdbool for MJIT options
same motivation as d6f21b308bcff03e82f8b3dbf11a852ce111b3b3 k0kubun (Takashi Kokubun)
 

Also available in: Atom