Project

General

Profile

Activity

From 02/25/2022 to 03/03/2022

03/03/2022

07:51 PM Bug #18608 (Open): `require': cannot load such file -- ripper (LoadError) after `make distclean`
When compiling multiple instances of Ruby (In our case, two separate prefixes), using the following build code causes the 2nd installed Ruby to throw an error on any ruby/irb call.
Changing the code to delete the extracted `ruby-3.1.0...
brandonrdn (Brandon Riden)
07:23 PM Revision 19f331f5 (git): Dedup superclass array in leaf sibling classes
Previously, we would build a new `superclasses` array for each class,
even though for all immediate subclasses of a class, the array is
identical.
This avoids duplicating the arrays on leaf classes (those without
subclasses) by calculat...
jhawthorn (John Hawthorn)
06:51 PM Bug #18607 (Feedback): Ruby 2.7.5 fails to configure on macOS Monterey on mac with M1 Pro
I have a new Mac with an M1 Pro CPU running Monterey. I'm trying to build ruby 2.7.5 from source and running into an issue when running the configure script, as outlined below. Please note that I *am* able to build 2.6.9 and 3.0.3, so th... actuallydoughughes (Doug Hughes)
06:19 PM Bug #18606 (Closed): [DOC] Fix typo in Array#min
byroot (Jean Boussier)
03:49 PM Bug #18606 (Closed): [DOC] Fix typo in Array#min
It is just a minor fixes about a typo in Array#min doc in `array.c`
It should be:
**min** returns one or more minimum...
![](clipboard-202203031246-ehjlo.png)
I didn't know if it the way but I've already created a [PR](https...
rog404 (Rogerio Bordignon)
06:18 PM Revision 4d28009f (git): * 2022-03-04 [ci skip]
git[bot]
06:18 PM Revision 83225279 (git): Doc: fix documentation typo for Array#min
Rogerio Bordignon
01:43 PM Revision 3b21818d (git): Update to ruby/spec@82cd3a3
Eregon (Benoit Daloze)
01:43 PM Revision 1dc6bed0 (git): Update to ruby/mspec@bd47c2a
Eregon (Benoit Daloze)
08:56 AM Revision c1790f8c (git): Update default gems list at 7f7db124ee6a72ec178d4045387062 [ci skip]
git[bot]
08:55 AM Revision 7f7db124 (git): [ruby/cgi] Bump up v0.3.2
https://github.com/ruby/cgi/commit/734dfdf1b4 hsbt (Hiroshi SHIBATA)
07:31 AM Bug #18605 (Open): Fails to run on (newer) 32bit Windows with ucrt
32bit ruby using ucrt has started to fail on newer Windows with "unexpected ucrtbase.dll" -> https://github.com/ruby/ruby/blob/3fb7d2cadc18472ec107b14234933b017a33c14d/win32/win32.c#L2591
The problem is that ruby depends on ucrt inter...
lazka (Christoph Reiter)
04:39 AM Revision 7f7f07a6 (git): [DOC] mark `rb_str_init` as `:nodoc:`
Otherwise, an empty entry will be generated as `String::new` along
with the one from doc/string.rb.
nobu (Nobuyoshi Nakada)
04:37 AM Revision 5ef9f7a8 (git): [DOC] Rename doc/*.rb as doc/*.rdoc
With `:markup: ruby` directive so that they are parsed as ruby
scripts.
nobu (Nobuyoshi Nakada)

03/02/2022

08:26 PM Revision cdb62062 (git): * 2022-03-03 [ci skip]
git[bot]
08:26 PM Revision b3123191 (git): [DOC] Addition to encoding.rdoc (#5617)
Adds section "Transcoding a Stream," listing relevant methods in IO.
Moves an example from section "String Encoding Example" to the new section.
Removes header "String Encoding Example" for now-empty section.
Changes items in...
burdettelamar (Burdette Lamar)
02:18 PM Revision 0b661214 (git): [MSWin] Allow gems with VS2022 for VS2019 build ruby [Misc #18362]
Although not sure if it is really compatible, let’s give it a
try.
nobu (Nobuyoshi Nakada)
10:23 AM Bug #18604 (Third Party's Issue): [BUG] ERROR(VpDivd): space for remainder too small
Seems fixed by BigDecimal 3.1.2. nobu (Nobuyoshi Nakada)
09:37 AM Revision f07f4765 (git): Exclude binstubs tests
When relative loading is enabled, the executable ruby is expected
installed at the same directory as the binstub.
nobu (Nobuyoshi Nakada)
09:19 AM Revision db740b7e (git): Revert "enc/depend: fix out-of-src build with --with-static-linked-ext" (#5616)
This reverts commit 32ad8df9d1e07e1b2435a8890d070802fcd2989f,
which broke out-of-src build with the pre-generated transcoder sources.
nobu (Nobuyoshi Nakada)
08:13 AM Revision 2b5097b8 (git): vm_method.c: avoid signature mismatch in rb_f_notimplement call
`rb_f_notimplement` has a similar signature with arity=-1, but it has an
extra marker argument to distinguish it from other methods in
compile-time type check in rb_define_method.
This trick is introduced to override a given arity to be ...
katei (Yuta Saito)
05:01 AM Revision fd2e1d3c (git): [ruby/rdoc] Use `Marshal.load io` instead of `Marshal.load io.read`
https://github.com/ruby/rdoc/commit/135198a31c znz (Kazuhiro NISHIYAMA)
03:50 AM Revision 0c90ca4d (git): dir.c: use self-made IFTODT in rb_pathtype_t if available
dir.c defines IFTODT if the system doesn't have it. The macro is used
when comparing with rb_pathtype_t's cases. rb_pathtype_t's cases are
defined by DT_XXX macro if they are available, or defined using IFTODT.
Most POSIX-compatible plat...
katei (Yuta Saito)
12:40 AM Revision 32ad8df9 (git): enc/depend: fix out-of-src build with --with-static-linked-ext
When out-of-src build, at the beginning of a build, `make -f enc.mk
srcs` generates trans C sources under build dir.
On the other hand, enc/trans/*.o were built from trans C sources
generated under srcdir due to the following auto-gener...
katei (Yuta Saito)
12:27 AM Revision f7491e89 (git): Using macros to check iseq element
S_H_ (Shun Hiraoka)

03/01/2022

06:38 PM Revision 12897218 (git): Wrap ruby_abi_version in `extern "C"` for C++
Make ruby_abi_version have C linkage so that the symbol can be found
in the shared object.
peterzhu2118 (Peter Zhu)
06:07 PM Revision 4bdb4a18 (git): Close files in examples in io.c (#5615)
burdettelamar (Burdette Lamar)
04:45 PM Revision 7a6ba30c (git): [DOC] Add encoding external/internal example to encoding.rdoc (#5610)
* Add encoding external/internal example to encoding.rdoc
* Add encoding external/internal example to encoding.rdoc
* Update doc/encoding.rdoc
I think there may be some more of these that I've recently put into io.c. Will check tomor...
burdettelamar (Burdette Lamar)
04:44 PM Bug #17382: Segfault in String#inspect
I was able to reduce the reproduction example (and excluded `anyway_config` from the equation, kind of).
I guess, there is something with the following refinement (extracted from [anyway_config](https://github.com/palkan/anyway_config...
palkan (Vladimir Dementyev)
03:55 PM Revision fb724a88 (git): Show embed status of array when len is 0 in objspace dump
peterzhu2118 (Peter Zhu)
03:50 PM Revision 77909055 (git): * 2022-03-02 [ci skip]
git[bot]
03:49 PM Revision a0e3da9e (git): Fix race in TestThread#test_thread_status_in_trap
* If the sleep is not enough to run the rest of the logic the process
would be exited early, e.g., before the signal handler can run.
Eregon (Benoit Daloze)
02:44 PM Revision 25ad9eab (git): Only define RUBY_DLN_CHECK_ABI when supported
peterzhu2118 (Peter Zhu)
02:42 PM Revision 210f29a6 (git): ABI checking is not supported on Windows
peterzhu2118 (Peter Zhu)
02:33 PM Revision 33dadb2c (git): dln.c: suppress unused function 'abi_check_enabled_p' warning for wasi
katei (Yuta Saito)
01:11 AM Revision eebc2421 (git): [DOC] Fix reference in rb_enc_associate() description
larskanis (Lars Kanis)
01:05 AM Revision 347c3faf (git): [DOC] Fix String#getbyte doc
* String#getbyte returns `nil` if `index` is out of range.
* Add String#getbyte example with nil output.
* Modify String#getbyte example to use negative index.
Maumagnaguagno (Mau Magnaguagno)
12:59 AM Revision 1a20bb1c (git): [DOC] Fix function name in example
larskanis (Lars Kanis)
12:46 AM Revision 4a55f501 (git): * 2022-03-01 [ci skip]
git[bot]
12:46 AM Revision 11bcc0d9 (git): [DOC] Fix documentation for Array#delete
Never returns self. apatniv (Vivek Ak)

02/28/2022

02:55 PM Bug #18476: Call to require stuck forever after receiving EAGAIN on writev when running with zeus
I looked into this a bit more. And I'm pretty sure this is related to the introduction of the fiber scheduler. JelteF (Jelte Fennema)
02:46 PM Feature #18589: Finer-grained constant invalidation
So I've been digging more on the constant cache busts happening in our app, beside what I already mentioned, what I found is:
A large majority of the busts are caused by autoloaded constants in gems. A few shouldn't autoload at all, b...
byroot (Jean Boussier)
11:10 AM Revision bec492c7 (git): Update default gems list at eb40ff73bfc8afae1d87e214f31564 [ci skip]
git[bot]
11:08 AM Revision eb40ff73 (git): [ruby/securerandom] Bump up v0.2.0
https://github.com/ruby/securerandom/commit/62ca2828f3 hsbt (Hiroshi SHIBATA)
09:55 AM Bug #18604 (Third Party's Issue): [BUG] ERROR(VpDivd): space for remainder too small
After upgrading to Ruby 3.1 one of our statistical dashboards started crashing with a message saying
[BUG] ERROR(VpDivd): space for remainder too small
### How to reproduce
This can be reproduced in irb (reproduction script ...
mentalizer (Jakob Skjerning)
09:14 AM Misc #18591: DevMeeting-2022-03-17
* [Feature #18576] Rename `ASCII-8BIT` encoding to `BINARY`
- The patch is ready.
- I'd like to make the change for 3.2.0-preview1, so that we can get early feedback and if it's negative revert before final release.
- Matz last ...
byroot (Jean Boussier)
08:59 AM Revision bd1507b2 (git): spec: skip ext's extension spec for --with-static-linked-ext
`resolve_feature_path` doesn't return .so when the given ext is linked
statically by --with-static-linked-ext
katei (Yuta Saito)
08:04 AM Bug #18590: String#downcase and CAPITAL LETTER I WITH DOT ABOVE
@duerst Thanks, I have created a PR. https://github.com/ruby/ruby/pull/5607 mame (Yusuke Endoh)
04:29 AM Revision 32f356e8 (git): Fix a typo of macro name
When the date is 28 Feb in the local timezone and 27 in the UTC,
the leap second info is wrongly calculated, and the Time for 1 Mar
created with a timezone resulted in an invalid date, 30 Feb.
nobu (Nobuyoshi Nakada)
02:40 AM Revision 1cb67905 (git): st.c: Fix a typo in a comment
mame (Yusuke Endoh)
02:39 AM Revision ff3d7b72 (git): Merge RubyGems and Bundler master
hsbt (Hiroshi SHIBATA)

02/27/2022

09:43 PM Revision 02ead4a8 (git): * 2022-02-28 [ci skip]
git[bot]
09:43 PM Revision 28ee1ca7 (git): [DOC] Enhanced RDoc for encoding (#5603)
Additions and corrections for external/internal encodings. burdettelamar (Burdette Lamar)
05:04 PM Feature #18603: Allow syntax like obj.method(arg)=value
IMHO way too complicated and `[]=` seems good enough for this use case.
Also it would be very confusing as the similar and existing syntax `def obj.method(arg) = value` means something completely different.
Eregon (Benoit Daloze)
02:31 PM Feature #18603: Allow syntax like obj.method(arg)=value
@sawa - My proposal would be to allow omitting parentheses only if there are no arguments provided, ie. how it is currently.
```ruby
self.xyz = 6 # correct currently
self.xyz() = 6 # correct under the proposal
self.xyz(a) = 6 # cor...
hmdne (hmdne -)
08:17 AM Feature #18603: Allow syntax like obj.method(arg)=value
I believe in this particular case it would make more sense to have a dual method to `dig`, rather than adding additional complexity to the syntactic sugar around `=`. There were proposals in the past for `Enumerable#bury` that targeted t... baweaver (Brandon Weaver)
08:03 AM Feature #18603: Allow syntax like obj.method(arg)=value
Notice that, while `[]` in `[]=` cannot be omitted, `()` in method invocation can be omitted. Are you expecting `()` in the proposed feature to be omittable or not? Either way, I think it would introduce complexity. I think that is a cru... sawa (Tsuyoshi Sawada)
03:14 AM Feature #18603 (Open): Allow syntax like obj.method(arg)=value
I propose here to allow a syntax like:
```ruby
obj.method(arg) = value
```
It would be translated to the following:
```ruby
obj.__send__(:method=, arg, value)
```
The lack of this syntax kind of limits the ability to desi...
hmdne (hmdne -)
12:58 PM Revision 7f434563 (git): fake.rb: Set prefix to `$topdir`
Not to refer outside the top build directory from rbconfig. nobu (Nobuyoshi Nakada)
12:44 PM Revision 289a4cf6 (git): [DOC] Extend intro/defn of 'transcoding' (#5602)
* Extend intro/defn of 'transcoding' burdettelamar (Burdette Lamar)
05:36 AM Bug #18590: String#downcase and CAPITAL LETTER I WITH DOT ABOVE
mame (Yusuke Endoh) wrote in #note-9:
> I wanted to create a PR to fix the document, but I am unsure what document is the best reference for full case mapping. @duerst Could you please fix it? Or should we wait until the chart will be...
duerst (Martin Dürst)
03:24 AM Feature #18583: Pattern-matching: API for custom unpacking strategies?
> `# looking into global value isn't exactly elegant, right?`
It's not global, it's Fiber-local, so are $1 and friends. This may not be messaged well enough in the documentation though...
```ruby
[1] pry(main)> z = Fiber.new { /(....
hmdne (hmdne -)

02/26/2022

11:56 PM Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
Updated timing check code to be more fair. danh337 (Dan H)
11:20 PM Feature #18597: Strings need a named method like `dup` that doesn't duplicate if receiver is mutable
This is my last attempt to show why this named method is needed. The `driver.rb` file shows the patterns that apply to all sorts of code. danh337 (Dan H)
03:15 PM Revision 1e4ee10f (git): * 2022-02-27 [ci skip]
git[bot]
12:50 PM Revision 3e5d7e31 (git): [DOC] Move String.new to allow non US-ASCII characters
nobu (Nobuyoshi Nakada)
07:34 AM Revision 0be2049a (git): [DOC] Fix the pseudo code
nobu (Nobuyoshi Nakada)
07:23 AM Revision 62c15833 (git): [DOC] Place a non-US-ASCII document in a document-specific script
nobu (Nobuyoshi Nakada)
04:27 AM Bug #18602 (Closed): OpenSSL is not available.
t3rcio (Tercio Oliveira) wrote in #note-4:
> Now I have openssl support.
Great! So this issue can be closed.
> ...
If you were going to report the bug, you would report it to the rubygems-server project. I checked and the bug ha...
jeremyevans0 (Jeremy Evans)
03:07 AM Bug #18602: OpenSSL is not available.

I tried your suggestion:
```
You may want to use --with-openssl-include=/path/to/openssl/headers --with-openssl-lib=/path/to/openssl/lib, with values appropriate to your installation.
```
but it didn't work.
After read the code a...
t3rcio (Tercio Oliveira)

02/25/2022

07:12 PM Revision 26ffda2f (git): [DOC] Enhanced RDoc for some encoding methods (#5598)
In String, treats:
#b
#scrub
#scrub!
#unicode_normalize
#unicode_normalize!
#encode
#encode!
Also adds a note to IO.new (suggested by @jeremyevans).
burdettelamar (Burdette Lamar)
06:03 PM Bug #17382 (Open): Segfault in String#inspect
mame (Yusuke Endoh)
10:55 AM Bug #17382: Segfault in String#inspect
I've attached code that reproduces the issue, along with output and the macOS crash report from my machine. Just run `bundle` and then `ruby segfault.rb`. It reliably segfaults for me within a minute or two on Ruby 2.7.5. I tried it on R... tom_dalling (Tom Dalling)
05:43 PM Revision 189ac52b (git): * 2022-02-26 [ci skip]
git[bot]
05:42 PM Revision e82f5db7 (git): Deprecate the unintentional ability to parse `Symbol`
nobu (Nobuyoshi Nakada)
05:40 PM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
This happened again in Ruby 3.1. I have not audited the other gems, but at least securerandom was modified in both repositories but those changes were not released as a new gem.
https://github.com/ruby/securerandom/issues/10
headius (Charles Nutter)
03:45 PM Bug #18602: OpenSSL is not available.
From your `mkmf.log`:
```
/opt/ruby-3.1.1/ext/openssl/extconf.rb:100: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed.
```
I see you attem...
jeremyevans0 (Jeremy Evans)
12:41 PM Bug #18602: OpenSSL is not available.
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> Did you reinstall Ruby after installing openssl/libssl-dev? If so, how did you install Ruby? Can you post the configure environment and args, and upload the build log (output of configur...
t3rcio (Tercio Oliveira)
01:27 AM Bug #18602 (Feedback): OpenSSL is not available.
Did you reinstall Ruby after installing openssl/libssl-dev? If so, how did you install Ruby? Can you post the configure environment and args, and upload the build log (output of configure/make) and `ext/openssl/mkmf.log`? jeremyevans0 (Jeremy Evans)
01:20 AM Bug #18602 (Closed): OpenSSL is not available.
The following exception:
```
ERROR: While executing gem ... (Gem::Exception)
OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
```
is triggered when try to install a gem.
The syste...
t3rcio (Tercio Oliveira)
11:39 AM Revision 8780f15f (git): [ruby/date] Use `assert_deprecated_warn`
https://github.com/ruby/date/commit/c55004715a nobu (Nobuyoshi Nakada)
11:01 AM Revision 0db5ee51 (git): [ruby/date] Suppress declaration-after-statement warnings
https://github.com/ruby/date/commit/60bd16009d nobu (Nobuyoshi Nakada)
10:57 AM Revision bb22bc76 (git): [ruby/date] Deprecate the unintentional ability to parse `Symbol`
https://github.com/ruby/date/commit/d57818f3b3 nobu (Nobuyoshi Nakada)
10:52 AM Revision d4f32b6b (git): [ruby/date] Scale timeouts
https://github.com/ruby/date/commit/2889698e2f nobu (Nobuyoshi Nakada)
10:52 AM Revision 4933d7fe (git): [ruby/date] Update tests
https://github.com/ruby/date/commit/5a138afce9 nobu (Nobuyoshi Nakada)
10:52 AM Revision b5c2a084 (git): [ruby/date] Anchor at beginning of numbers
https://hackerone.com/reports/1254844
https://github.com/ruby/date/commit/2f7814cc22
nobu (Nobuyoshi Nakada)
10:52 AM Revision 1758eade (git): [ruby/date] Anchor at beginning of numbers
https://hackerone.com/reports/1254844
https://github.com/ruby/date/commit/7ffe25e458
nobu (Nobuyoshi Nakada)
10:52 AM Revision d54a3df2 (git): [ruby/date] Separate era from preceding word
https://github.com/ruby/date/commit/017149e53e nobu (Nobuyoshi Nakada)
10:52 AM Revision c8cddac4 (git): [ruby/date] Use possessive match
Reduce backtracks at the same character classes arounding an
optional pattern.
https://github.com/ruby/date/commit/1fd15f7c49
nobu (Nobuyoshi Nakada)
10:52 AM Revision 9f59a2bd (git): [ruby/date] Extracted common leading pattern
https://github.com/ruby/date/commit/ec86dbbdc1 nobu (Nobuyoshi Nakada)
 

Also available in: Atom