Project

General

Profile

Activity

From 09/12/2021 to 09/18/2021

09/18/2021

06:51 PM Bug #17882: bootstraptest/test_ractor.rb:224 segfaults on Cygwin
This no longer happens as of commit:4cc44bd819, though not bisected. Thanks. xtkoba (Tee KOBAYASHI)
04:08 PM Bug #17885 (Closed): require_relative and require should be compatible with each other when symlinked files are used
Applied in changeset commit:git|ddb85c5d2bdf75a83eb163856508691a7436b446.
----------
Do not load file with same realpath twice when requiring
This fixes issues with paths being loaded twice in certain cases
when symlinks are used.
It ...
jeremyevans (Jeremy Evans)
04:05 PM Revision f9fd04ff (git): * 2021-09-19 [ci skip]
git[bot]
04:05 PM Revision ddb85c5d (git): Do not load file with same realpath twice when requiring
This fixes issues with paths being loaded twice in certain cases
when symlinks are used.
It took me multiple attempts to get this working. My original
attempt tried to convert paths to realpaths before adding them
to $LOADED_FEATURES. ...
jeremyevans (Jeremy Evans)
02:21 PM Misc #18175: Propose Jean Boussier (@byroot) as a core committer
Accepted.
Matz.
matz (Yukihiro Matsumoto)
01:45 PM Bug #18141: Marshal load with proc yield objects before they are fully initialized
I made a followup patch: https://github.com/ruby/ruby/pull/4866
It now handle similar bugs with `Array`, `Hash` and other mutable objects. It also handle circular objects.
byroot (Jean Boussier)
07:34 AM Bug #18141: Marshal load with proc yield objects before they are fully initialized
Hello byroot,
Thank you for the investigation about the issue. Yes, the patch with only the bug fix is very helpful to maintain stable branches.
nagachika (Tomoyuki Chikanaga)
12:53 PM Bug #18178 (Closed): RubyVM::AST.of(method_defined_in_C) Segmentation fault
Applied in changeset commit:git|ed9d9cee76ee941c504ccea33c70c0eb5d825813.
----------
ast.c: AST.of checks if a given method object is defined in C
[Bug #18178]
mame (Yusuke Endoh)
10:05 AM Bug #18178 (Closed): RubyVM::AST.of(method_defined_in_C) Segmentation fault
`RubyVM::AbstractSyntaxTree.of` segfault when it receives a method defined in C.
```console
$ ruby -ve 'RubyVM::AbstractSyntaxTree.of(String.instance_method(:gsub))'
ruby 3.1.0dev (2021-09-17T11:46:18Z master b45fe48fbb) [x86_64-...
pocke (Masataka Kuwabara)
12:52 PM Revision 1b300789 (git): ast.c: AST.of against C method should return nil (as Ruby 2.6--3.0)
mame (Yusuke Endoh)
12:28 PM Revision ed9d9cee (git): ast.c: AST.of checks if a given method object is defined in C
[Bug #18178] mame (Yusuke Endoh)
12:27 PM Revision 1c07c982 (git): Enhanced RDoc for Range (#4847)
Treated:
#to_s
#inspect
#===
#include?
#cover?
#count
burdettelamar (Burdette Lamar)
09:04 AM Revision 593cc4ca (git): * 2021-09-18 [ci skip]
git[bot]
09:03 AM Revision ec4ecb6d (git): Include the invalid value in invalid_utc_offset error
nobu (Nobuyoshi Nakada)
07:52 AM Bug #18160: IndexError raised from MatchData#{offset,begin,end} does not keep the encoding of the argument
ruby_3_0 3e61556191ea7e6586ffb995f03e6d2631ec6fb0 merged revision(s) 99d8c4832a7133ca52578d015e3ddcfd94820f4a. nagachika (Tomoyuki Chikanaga)
07:51 AM Bug #17756: StringScanner#charpos makes segmentation fault when target.byteslice returns non string value
ruby_3_0 7b55ff21b52e818819b698326f80158643175645 merged revision(s) 564ccd095a9d7fbe869031dbf666d61dadfdcb03. nagachika (Tomoyuki Chikanaga)
07:51 AM Bug #17661: IO#each will segfault when if file is closed inside an `each_byte` block
ruby_3_0 e6e25b794d8db52e1df85a02f28846ad7eb82d49 merged revision(s) 13939d61b4b69bd109c5f41303c79868d639fa44. nagachika (Tomoyuki Chikanaga)
07:51 AM Bug #17735: `Hash#transform_keys!` drops non evaluated keys
Additionally backported bb84c75001f1bf13b4b2a12db8f4420e76a3ea03 into ruby_3_0 at 98ac62de5cb03efec0fb32684c61c0d4df692e5a. nagachika (Tomoyuki Chikanaga)
07:23 AM Revision 98ac62de (git): merge revision(s) bb84c75001f1bf13b4b2a12db8f4420e76a3ea03: [Backport #17735]
Revert "Force recycle intermediate collection in Hash#transform_keys!
[Bug #17735]"
This reverts commit 522d4cd32f7727886f4fcbc28ed29c08d361ee20.
---
hash.c | 1 -
1 file changed, 1 deletion(-)
nagachika (Tomoyuki Chikanaga)
07:15 AM Bug #18161: [BACKPORT] b8386f7f7f6d7a7d76481e02d389d0f5211f0f2c
b8386f7f7f6d7a7d76481e02d389d0f5211f0f2c was already backported into ruby_3_0 branch at 80c180df769016d58663218de2687613841864f3. nagachika (Tomoyuki Chikanaga)
07:13 AM Revision 3e615561 (git): merge revision(s) 99d8c4832a7133ca52578d015e3ddcfd94820f4a: [Backport #18160]
Preserve the encoding of the argument in IndexError [Bug #18160]
---
re.c | 20 ++++++++++----------
test/ruby/test_regexp.rb | 7 ++++++-
2 files changed, 16 insertions(+), 11 delet...
nagachika (Tomoyuki Chikanaga)
07:11 AM Revision 7b55ff21 (git): merge revision(s) 564ccd095a9d7fbe869031dbf666d61dadfdcb03: [Backport #17756]
[ruby/strscan] Fix segmentation fault of `StringScanner#charpos` when
`String#byteslice` returns non string value [Bug #17756] (#20)
https://github.com/ruby/strscan/commit/92961cde2b
---
ext/strscan/str...
nagachika (Tomoyuki Chikanaga)
07:07 AM Revision e6e25b79 (git): merge revision(s) 13939d61b4b69bd109c5f41303c79868d639fa44: [Backport #17661]
Check if closed after each yield [Bug #17661]
---
io.c | 4 +++-
test/ruby/test_io.rb | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 1 deletion(-)
nagachika (Tomoyuki Chikanaga)
04:48 AM Bug #18177 (Closed): An error occurs when running RSpec with Ruby 3.1.0-dev
## Reproduction context
The following code causes an `ArgumentError` error when using Ruby 3.1.0-dev.
```ruby
# foo_spec.rb
RSpec.shared_context 'config', :config do
end
RSpec.describe 'foo', :config do
end
```
RSpec ver...
koic (Koichi ITO)
02:48 AM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
Dan0042 (Daniel DeLorme) wrote in #note-10:
> If I understand correctly, you mean that it's hard/impossible to test the gemified libs via CI unless they are part of the ruby monorepo? Is that the main difficulty?
Yes. Ex. "ruby/setup...
hsbt (Hiroshi SHIBATA)
12:22 AM Feature #18151: Incorrect Resolv result when DNS server is unreachable
The current behavior seems to be expected (the code explicitly rescues the internal ResolvError), so I would consider this a feature request and not a bug. I agree with you that it would be nice to be able to differentiate the cases. I... jeremyevans0 (Jeremy Evans)

09/17/2021

09:51 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
> We want to make sure there's no (or very low) overhead for correct programs. So possibly load dead_end code only when the error occurs, because it's not needed otherwise.
Hooking into SyntaxError#message should make it zero overhead...
schneems (Richard Schneeman)
08:59 AM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
Some additional comments during the meeting:
- We want to make sure there's no (or very low) overhead for correct programs. So possibly load dead_end code only when the error occurs, because it's not needed otherwise.
- What happen...
duerst (Martin Dürst)
01:35 AM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
> ko1 (Koichi Sasada) and knu (Akinori MUSHA) were concerned about whether the heuristic algorithm was mature enough. If dead_end prints a misguided summary, it may rather confuse users.
I certainly understand and agree. If you (or an...
schneems (Richard Schneeman)
07:33 PM Bug #18158: Pathname#each_entry without block does not return Enumerator
I've submitted a pull request to have `Pathname#each_entry` return Enumerator: https://github.com/ruby/pathname/pull/10 jeremyevans0 (Jeremy Evans)
02:51 PM Feature #18148: Marshal.load freeze option
I implemented a patch https://github.com/ruby/ruby/pull/4859
NB: it does include some extra fixes for https://bugs.ruby-lang.org/issues/18141#change-93742, because the implementation wouldn't have been possible without.
byroot (Jean Boussier)
02:44 PM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
hsbt (Hiroshi SHIBATA) wrote in #note-9:
> Because you are not develop CRuby. We need to test EVERY commits of CRuby with default gems. If CRuby or stdlib broke the test/CI,
> ...
If I understand correctly, you mean that it's hard/impo...
Dan0042 (Daniel DeLorme)
12:06 AM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
>Why not make the changes to the gem itself and be certain that all changes are already in the canonical repository?
> ...
Because you are not develop CRuby. We need to test EVERY commits of CRuby with default gems. If CRuby or stdlib b...
hsbt (Hiroshi SHIBATA)
02:19 PM Bug #18141: Marshal load with proc yield objects before they are fully initialized
So while working on https://bugs.ruby-lang.org/issues/18148, I discovered that many other types of objects are impacted.
Just a few examples:
```ruby
def round_trip(obj, proc = ->(o) { o.freeze })
Marshal.load(Marshal.dump(obj)...
byroot (Jean Boussier)
11:46 AM Revision b45fe48f (git): [rubygems/rubygems] Trigger install command by default on remove
Closes https://github.com/rubygems/rubygems/issues/4889
https://github.com/rubygems/rubygems/commit/2b1754479c
Jose Galisteo
10:07 AM Bug #17048 (Closed): Calling initialize_copy on live modules leads to crashes
Applied in changeset commit:git|178ee1e801acb33d13b3e8a630f6ca4926c68fbc.
----------
Already initialized modules cannot be replaced [Bug #17048]
nobu (Nobuyoshi Nakada)
09:48 AM Bug #17429: Prohibit include/prepend in refinement modules
shugo (Shugo Maeda) wrote in #note-31:
> mame (Yusuke Endoh) wrote in #note-30:
> ...
I've created an issue on the project: <https://github.com/square/refinement/issues/71>.
By gem-codesearch, I've found another gem which defines ::...
shugo (Shugo Maeda)
02:57 AM Bug #17429: Prohibit include/prepend in refinement modules
mame (Yusuke Endoh) wrote in #note-30:
> BTW, the change seems to add a top-level new constant `::Refinement`. I'm not against the addition, but unsure about the impact. Is it okay?
I found a gem named refinement....
https://githu...
shugo (Shugo Maeda)
08:07 AM Misc #18174: DevelopersMeeting20211021Japan
* [Feature #18176] Make Coverage suspendable (mame)
* I'd like to add `Coverage.suspend` and `Coverage.resume`. Any opinion?
* [Bug #18170] `Exception#inspect` should not include newlines (mame)
* I've created a PR for `StandardError...
mame (Yusuke Endoh)
08:04 AM Bug #18170: Exception#inspect should not include newlines
Created a PR: https://github.com/ruby/ruby/pull/4857
As expected, I had to modify some tests. Is this acceptable?
mame (Yusuke Endoh)
07:14 AM Misc #18175: Propose Jean Boussier (@byroot) as a core committer
+2 mame (Yusuke Endoh)
03:17 AM Misc #18175: Propose Jean Boussier (@byroot) as a core committer
+1 k0kubun (Takashi Kokubun)
06:41 AM Feature #18176 (Closed): Make Coverage suspendable
I'd like to add `Coverage.suspend`, `Coverage.resume`, and some methods.
## Synopsis
```
1: # target.rb
2: def foo
3: :foo
4: end
5:
6: def bar
7: :bar
8: end
9:
10: def baz
11: :baz
12: end
```
```
...
mame (Yusuke Endoh)
06:09 AM Bug #14479 (Rejected): Exceptions raised from a :call tracepoint can sometimes be "rescued" inside the method
I want to reject this issue because of the following reasons:
* TracePoint block shouldn't raise an exception. TracePoint should not hurt non-hook (99.99..% case) execution if possible. I don't think this difference is not a matter.
...
ko1 (Koichi Sasada)
02:14 AM Revision fd918d1a (git): Removed Module.allocate [Bug #17048]
nobu (Nobuyoshi Nakada)
02:14 AM Revision 178ee1e8 (git): Already initialized modules cannot be replaced [Bug #17048]
nobu (Nobuyoshi Nakada)
01:27 AM Revision 8f41c791 (git): Add spec for MatchData#match and MatchData#match_length [Feature #18172]
nobu (Nobuyoshi Nakada)
01:03 AM Revision 5a048829 (git): Add WB_PROTECTED to mutexes
mutex_mark is (basically) NULL, so we don't have any references to mark.
This means we should safely be able to mark Mutex as WB_PROTECTED
without changing anything else.
jhawthorn (John Hawthorn)
12:29 AM Feature #18172: MatchData#sublen to return the length of a substring
`match_ary_aref` may return an `Array` of substrings when `idx` is a `Range`. nobu (Nobuyoshi Nakada)

09/16/2021

11:54 PM Revision 34d6720f (git): Prohibit test method redefinition
nobu (Nobuyoshi Nakada)
11:39 PM Revision 8450b6a9 (git): * 2021-09-17 [ci skip]
git[bot]
11:38 PM Revision 475a4651 (git): [Feature #18172] Fix duplicate test name
nobu (Nobuyoshi Nakada)
09:00 PM Bug #17048: Calling initialize_copy on live modules leads to crashes
Here a repro that that always crashes for me on cbbda3e:
```ruby
mod = Module.new { define_method(:foo) {:first} }
klass = Class.new { include mod }
instance = klass.new
p instance.foo
new_mod = Module.new { define_method(:foo) {...
alanwu (Alan Wu)
04:03 PM Bug #17048: Calling initialize_copy on live modules leads to crashes
nobu (Nobuyoshi Nakada) wrote in #note-16:
> As far as I tested it with `master` slightly, it didn't reproduce.
> ...
It still happens in my environment. I tested with 1000 iterations, and it hung on the 14th iteration:
```
$ for ...
jeremyevans0 (Jeremy Evans)
07:18 AM Bug #17048: Calling initialize_copy on live modules leads to crashes
As far as I tested it with `master` slightly, it didn't reproduce.
Does it still happen, and how occational?
nobu (Nobuyoshi Nakada)
05:30 PM Misc #18175 (Closed): Propose Jean Boussier (@byroot) as a core committer
Hi,
I would like to propose adding Jean Boussier (@byroot) as a committer. For years Jean has been doing great work with performance / memory optimizations, reporting and fixing bugs, as well as contributing features that really help ...
tenderlovemaking (Aaron Patterson)
04:28 PM Bug #17568 (Feedback): Thread.handle_interrupt is per-Thread but should probably be per-Fiber
jeremyevans0 (Jeremy Evans)
02:20 PM Bug #17568: Thread.handle_interrupt is per-Thread but should probably be per-Fiber
ko1 (Koichi Sasada) wrote in #note-2:
> mame-san also proposed `Fiber.handle_interrupt` for fiber local handler to set fiber local setting.
No I didn't propose it actually. In today's dev meeting, we discussed that there are a case w...
mame (Yusuke Endoh)
07:12 AM Bug #17568: Thread.handle_interrupt is per-Thread but should probably be per-Fiber
I understand some case it is confusing, but if Fiber is used to represent the data structure like Enumerator, Thread-wide mask is needed.
Could you give us the example which should be fiber local?
mame-san also proposed `Fiber.handle...
ko1 (Koichi Sasada)
04:02 PM Feature #18172: MatchData#sublen to return the length of a substring
nobu (Nobuyoshi Nakada) wrote in #note-4:
> Hanmac (Hans Mackowiak) wrote in #note-3:
> ...
i just wonder why not use the functions there like done in the other method?
``` c
if (FIXNUM_P(idx)) {
return rb_reg_nth_match(FIX2INT(...
Hanmac (Hans Mackowiak)
02:28 PM Feature #18172: MatchData#sublen to return the length of a substring
Hanmac (Hans Mackowiak) wrote in #note-3:
> @nobu, isn't your `MatchData#match` the same as `MatchData#[]` ?
Similar, but `#match` accepts only single index/name, but not a range or an optional length.
nobu (Nobuyoshi Nakada)
01:36 PM Feature #18172: MatchData#sublen to return the length of a substring
@nobu, isn't your `MatchData#match` the same as `MatchData#[]` ? Hanmac (Hans Mackowiak)
12:16 PM Feature #18172 (Closed): MatchData#sublen to return the length of a substring
Applied in changeset commit:git|09d724e6f846b4e53e8571d41ca7d3055d732d9f.
----------
[Feature #18172] Add MatchData#match
The method to return the single matched substring corresponding to
the given argument.
nobu (Nobuyoshi Nakada)
09:04 AM Feature #18172: MatchData#sublen to return the length of a substring
In Ruby C source code, we use names like `sublen` but Ruby methods tend to be fully spelled. So I propose `MatchData#match(n)` and `MatchData#match_length(n)`.
Matz.
matz (Yukihiro Matsumoto)
07:34 AM Feature #18172 (Closed): MatchData#sublen to return the length of a substring
There are many code taking the length of a substring matched by `Regexp`.
For instance, in rdoc/markup/attribute_manager.rb:
```ruby
attr_updated = attrs.set_attrs($`.length + $1.length + $2.length, $3.length, attr)
if at...
nobu (Nobuyoshi Nakada)
03:26 PM Misc #18174 (Closed): DevelopersMeeting20211021Japan
# The next dev meeting
**Date: 2021/10/21 13:00-17:00 +09:00**
Place/Sign-up/Agenda/Log: https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20211021Japan.md
- Dev meeting *IS NOT* a decision-making place. All dec...
mame (Yusuke Endoh)
03:25 PM Misc #18122 (Closed): DevelopersMeeting20210916Japan
mame (Yusuke Endoh)
03:14 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
In today's dev meeting, we discussed this. Basically, no one was opposed to the concept. But some concerns were discussed.
@ko1 and @knu were concerned about whether the heuristic algorithm was mature enough. If dead_end prints a misg...
mame (Yusuke Endoh)
02:50 PM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
> We should backport this changes to the upstream repo in github.
Why not make the changes to the gem itself and be certain that all changes are already in the canonical repository?
If it is a problem of testing in CRuby, you can r...
headius (Charles Nutter)
12:09 PM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
We are sorry to confuse about the versioning policy for the default gems in our transition phase.
I only maintain the version of the default gems with the new release version of Ruby like 2.6.0.
I forgot them with stable version releas...
hsbt (Hiroshi SHIBATA)
03:37 AM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
An alternative might be to check out the repositories at a specific tag and copy them in place, rather than going to the gems. headius (Charles Nutter)
03:36 AM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
I am available to help make this happen or describe how we are doing it in JRuby. The short description is just that we install to a temporary location and copy everything in place as part of the build. However, we do that by bootstrappi... headius (Charles Nutter)
02:49 PM Revision cbbda3e6 (git): Adjust indent in string.c [ci skip]
nobu (Nobuyoshi Nakada)
02:15 PM Feature #18136: take_while_after
@mame
> In other words, your use case examples looked not so frequent to make it built-in.
Soooo... Let me summarize :)
In defense of the idea, I provided:
1. **Two** big domains: API clients with pagination ("stop after curr...
zverok (Victor Shepelev)
01:59 PM Feature #18136: take_while_after
zverok (Victor Shepelev) wrote in #note-11:
> > The listed use cases are not so clearly convincing. For the Example 2, "can_continue" field often contains a URL to receive the subsequent results (like `"can_continue": "http://api.exampl...
mame (Yusuke Endoh)
01:26 PM Feature #18136: take_while_after
Then what about `take_till`?
```ruby
Enumerator.produce(Date.today, &:succ).take_till(&:monday?).each { schedule_job(_1) }
```
nobu (Nobuyoshi Nakada)
12:15 PM Feature #18136: take_while_after
@knu
> feels to me like `drop_after`
Hmm, this actually sounds like a good name.
> ...
Of course.
The first case of my initial ticket (take tokens till the token that ends sentence)
```ruby
sentence = tokens.take_while_aft...
zverok (Victor Shepelev)
05:41 AM Feature #18136: take_while_after
In the dev meeting, we discussed this proposal in more than a hour, and reached no conclusion.
* The listed use cases are not so clearly convincing. For the Example 2, "can_continue" field often contains a URL to receive the subsequen...
mame (Yusuke Endoh)
04:56 AM Feature #18136: take_while_after
I want to see use cases without `lazy`. If typical uses cases you could think of were always with `lazy`, then a lazy-minded API would be what you'd need in the first place. knu (Akinori MUSHA)
04:29 AM Feature #18136: take_while_after
This behavior of `take_upto` feels to me like `drop_after`. 🤔 knu (Akinori MUSHA)
02:18 AM Feature #18136: take_while_after
ufuk (Ufuk Kayserilioglu) wrote in #note-5:
> I don't want to detract from the content of the proposal, nor do I want to bikeshed the name, but personally, `take_while_after` does not convey the meaning of this behaviour to me. Can I su...
Dan0042 (Daniel DeLorme)
02:11 PM Feature #18148: Marshal.load freeze option
> Could you please create a patch for your proposal?
That was my intent, it might take me a couple days though.
byroot (Jean Boussier)
02:04 PM Feature #18148 (Assigned): Marshal.load freeze option
@nobu created a ticket #18171 for `Hash#compare_by_identity` issue. It is not so related to this issue, anyway.
@byroot Could you please create a patch for your proposal?
mame (Yusuke Endoh)
05:14 AM Feature #18148: Marshal.load freeze option
Seems reasonable. Accepted.
@nobu might have concerns regarding `Hash#compare_by_identity`.
Matz.
matz (Yukihiro Matsumoto)
02:11 PM Bug #17429: Prohibit include/prepend in refinement modules
BTW, the change seems to add a top-level new constant `::Refinement`. I'm not against the addition, but unsure about the impact. Is it okay? mame (Yusuke Endoh)
02:09 PM Bug #17429: Prohibit include/prepend in refinement modules
In today's dev meeting, matz accepted the concept, but wanted to take some time to consider the name `import`. mame (Yusuke Endoh)
10:55 AM Revision aa3d8388 (git): NEWS for [Feature #18172] [ci skip]
nobu (Nobuyoshi Nakada)
10:55 AM Revision f2cb6288 (git): [Feature #18172] Add MatchData#match_length
The method to return the length of the matched substring
corresponding to the given argument.
nobu (Nobuyoshi Nakada)
10:55 AM Revision 09d724e6 (git): [Feature #18172] Add MatchData#match
The method to return the single matched substring corresponding to
the given argument.
nobu (Nobuyoshi Nakada)
10:43 AM Bug #18173 (Closed): The feature in `$LOADED_FEATURES` is loaded again
Applied in changeset commit:git|ddb32e66160ab50849419ef7c7ac584913b79c34.
----------
[Bug #18173] Update loaded_features_index
If $LOADED_FEATURES is changed in the just required file, also the
index table needs to be updated before lo...
nobu (Nobuyoshi Nakada)
09:47 AM Bug #18173 (Closed): The feature in `$LOADED_FEATURES` is loaded again
In general, the feature name registered in `$LOADED_FEATURES` (e.g. "enumerator.so", "thread.rb", and so on) is expected not to be loaded again.
But, as @ko1 reported, when a feature name is added to the variable during another file i...
nobu (Nobuyoshi Nakada)
10:16 AM Bug #18170: Exception#inspect should not include newlines
Thanks @mame. ioquatix (Samuel Williams)
08:42 AM Bug #18170 (Assigned): Exception#inspect should not include newlines
Matz said "give it a try". I'll create a PR mame (Yusuke Endoh)
02:34 AM Bug #18170 (Closed): Exception#inspect should not include newlines
Is this intentional?
```
p StandardError.new("foo\nbar")
#=>
# #<StandardError: foo
# bar>
```
I expect `#inspect` returns a one-line string. How about returning `#<StandardError: "foo\nbar">` or something?
Recently, multi-...
mame (Yusuke Endoh)
09:48 AM Revision ddb32e66 (git): [Bug #18173] Update loaded_features_index
If $LOADED_FEATURES is changed in the just required file, also the
index table needs to be updated before loaded_features_snapshot is
reset. If the snapshot is reset without updating the table, the
name of the added feature will not be ...
nobu (Nobuyoshi Nakada)
09:22 AM Feature #14579: Hash value omission
...Which is that `{ symbol: }` verbosely means `{ symbol: binding.local_variable_defined?(:symbol) ? binding.local_variable_get(:symbol) : __send__(:symbol) }` with no exception, no matter if the symbol is `if`, `self`, `fork`, `return` ... knu (Akinori MUSHA)
06:10 AM Feature #14579 (Closed): Hash value omission
Matz accepted the current behavior at [DevelopersMeeting20210916Japan](https://bugs.ruby-lang.org/issues/18122) shugo (Shugo Maeda)
01:41 AM Feature #14579: Hash value omission
matz (Yukihiro Matsumoto) wrote in #note-16:
> I assumed the value should be a local variable.
I also assumed the same thing, but after getting over my initial surprise I found this way is quite nice, very ruby-ish. A bit like learni...
Dan0042 (Daniel DeLorme)
08:31 AM Revision 5f1385be (git): Add a newline [ci skip]
shugo (Shugo Maeda)
08:29 AM Revision 81fd91ab (git): Add details of Hash value ommission [ci skip]
shugo (Shugo Maeda)
07:21 AM Feature #18127: Ractor-local version of Singleton
OK, accepted.
Matz.
matz (Yukihiro Matsumoto)
05:16 AM Bug #15027 (Rejected): When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
The methods may be overridden in the subclass. The assumption in this report seems to be too much.
Rejected.
Matz.
matz (Yukihiro Matsumoto)
05:13 AM Bug #18171 (Closed): `Marshal` ignores `Hash#compare_by_identity`
Is this a bug?
```ruby
h = {}.compare_by_identity
h["a"+"1"] = "1"
h["a"+"1"] = "2"
p h #=> {"a1"=>"1", "a1"=>"2"}
p Marshal.load(Marshal.dump(h)) #=> {"a1"=>"2"}
```
nobu (Nobuyoshi Nakada)
05:02 AM Feature #18143 (Rejected): Add a new method to change GC.stress only in the given block such as GC.with_stress(flag) {...}
I reject this proposal, for several reasons:
* it's very easy to implement the method using existing `GC.stress` and `begin ... ensure` by yourself
* if it's built-in, users may expect too much (thread-safety is one of them)
Matz.
matz (Yukihiro Matsumoto)
04:21 AM Revision 68bd5626 (git): Remove unneeded ruby_reset_leap_second_info function declaration (#4824)
S_H_ (Shun Hiraoka)
01:17 AM Feature #17295: Feature: Create a directory and file with Pathname#touch
In the end I agree that `touch` is enough and `ensure_parent_dir_exists` is unnecessary (even with a shorter name). Even though creating the file via "touch" is kinda redundant before `open('a')` it's not really a problem either.
sch...
Dan0042 (Daniel DeLorme)

09/15/2021

11:01 PM Bug #18169 (Assigned): Local copies of gemified libraries are being released out of sync with their gems
hsbt (Hiroshi SHIBATA)
07:48 PM Bug #18169: Local copies of gemified libraries are being released out of sync with their gems
I am unable to edit the description, but I wanted to make clear that the two proposed solutions are mutually exclusive, and I **strongly** recommend that the gem sources be removed from the CRuby repository rather than auditing them at r... headius (Charles Nutter)
07:41 PM Bug #18169 (Closed): Local copies of gemified libraries are being released out of sync with their gems
The CRuby codebase includes a number of libraries that have been gemified, more and more with each release. Unfortunately, these libraries are continually out of sync with both their home repositories and their released gems.
The prob...
headius (Charles Nutter)
08:51 PM Revision 745287d4 (git): Enhanced RDoc for Range#minmax (#4846)
burdettelamar (Burdette Lamar)
08:00 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
I've made a draft PR with a working spike of getting this into Ruby. https://github.com/ruby/ruby/pull/4845 it should be good enough for discussion. I used the same interface you suggested here. It was very easy.
The only limitation ...
schneems (Richard Schneeman)
07:48 PM Revision e967740d (git): Enhanced RDoc for Range#max (#4844)
burdettelamar (Burdette Lamar)
07:24 PM Feature #17295: Feature: Create a directory and file with Pathname#touch
> Shouldn't this method take keyword arguments that FileUtils.touch accepts?
I looked into it. Of the existing pathnames that delegate to FileUtils, only one supports kwargs and it does not support all of them, just one:
```
  d...
schneems (Richard Schneeman)
06:37 PM Revision 67e3727d (git): * 2021-09-16 [ci skip]
git[bot]
06:37 PM Revision 97374c7e (git): Enhanced RDoc for Range#min (#4842)
burdettelamar (Burdette Lamar)
06:22 PM Feature #10982 (Closed): Clarify location of NoMethod error
ko1 (Koichi Sasada)
02:18 PM Feature #10982: Clarify location of NoMethod error
We can close this due to addition of error_highlight in ruby https://github.com/ruby/ruby/tree/db51bcada408f8b0b93a11d41f8e4222436bd9f2/lib/error_highlight schneems (Richard Schneeman)
01:59 PM Revision db51bcad (git): Fix total_freed_objects for invalidated pages
When the object is moved back into the T_MOVED, the flags of the T_MOVED
is not copied, so the FL_FROM_FREELIST flag is lost. This causes
total_freed_objects to always be incremented.
Peter Zhu
01:00 PM Revision a65ac2d6 (git): Don't overwrite free_slots count during sweeping
gc_compact_finish may invalidate pages, which may move objects from this
page to other pages, which updates the free_slots of this page.
Peter Zhu
01:00 PM Revision e624d0d2 (git): Update the free_slots count of the original page
When invalidating a page during compaction, the free_slots count should
be updated for the page of the object and not the page of the forwarding
address (since the object gets moved back to the forwarding address).
Peter Zhu
10:08 AM Feature #14579: Hash value omission
duerst (Martin Dürst) wrote in #note-27:
> I don't think using `if` as the name of a local variable is a good idea, and I don't think the speed of bad ideas should concern us too much.
As zverok stated, a keyword such as `if` is used...
shugo (Shugo Maeda)
10:00 AM Feature #14579: Hash value omission
@duerst
> I don't think using `if` as the name of a local variable is a good idea,
It is good (and widely used, BTW) name for a method parameter, in contexts like
```ruby
validate :foo, if: :something?
```
I don't see how it is...
zverok (Victor Shepelev)
09:27 AM Feature #14579: Hash value omission
shugo (Shugo Maeda) wrote in #note-26:
> duerst (Martin Dürst) wrote in #note-25:
> ...
I don't think using `if` as the name of a local variable is a good idea, and I don't think the speed of bad ideas should concern us too much.
duerst (Martin Dürst)
08:54 AM Feature #14579: Hash value omission
duerst (Martin Dürst) wrote in #note-25:
> Ah, so `{if:}` means something close to `{if: local_variable_get(:if)}` and '{self:}` means something close to `{self: local_variable_get(:self)}` (and NOT `{self: self}`).
Yes.
Technicall...
shugo (Shugo Maeda)
07:18 AM Feature #14579: Hash value omission
shugo (Shugo Maeda) wrote in #note-24:
> I meant that keywords are allowed as local variable or method names.
> ...
Ah, so `{if:}` means something close to `{if: local_variable_get(:if)}` and '{self:}` means something close to `{self...
duerst (Martin Dürst)
06:40 AM Feature #14579: Hash value omission
shugo (Shugo Maeda) wrote in #note-22:
> except that keywords are allowed.
I meant that keywords are allowed as local variable or method names.
For example, `{if:}` is not a syntax error and `{self:}` doesn't access the receiver but...
shugo (Shugo Maeda)
06:20 AM Feature #14579: Hash value omission
Note that constants are also allowed:
```ruby
X = 1
p(X:) #=> {:X=>1}
```
shugo (Shugo Maeda)
06:13 AM Feature #14579 (Assigned): Hash value omission
matz (Yukihiro Matsumoto) wrote in #note-16:
> I assumed the value should be a local variable. The merged patch calls the method when the local variable is not defined.
> ...
I believe a method should be called when a local variable is...
shugo (Shugo Maeda)
07:55 AM Revision 92ac1721 (git): [ruby/racc] gemspec: Link to https in homepage [ci skip]
https://github.com/ruby/racc/commit/96075f7720 olleolleolle (Olle Jonsson)
07:32 AM Feature #18037: Update Unicode data to Unicode Version 14.0.0
The release of Unicode Version 14.0.0 has officially been announced today, see
https://home.unicode.org/announcing-the-unicode-standard-version-14-0/.
The overall summary of the version is at http://www.unicode.org/versions/Unicode14.0...
duerst (Martin Dürst)
07:20 AM Revision 645acf57 (git): [ruby/racc] Prefer __dir__ over File.dirname(__FILE__)
https://github.com/ruby/racc/commit/c49df40658 Olle Jonsson
07:11 AM Revision fae0f248 (git): Add test cases for constants and keywords
shugo (Shugo Maeda)
05:29 AM Feature #18168 (Open): Add ActiveSupport deep_transform_values to Ruby
I think since transform_values is a part of Ruby, it makes sense to support the nested version of transform values maximus242 (Philip Solobay)
05:16 AM Revision a27c274f (git): [DOC] Fix broken links [ci skip]
* As the "doc/" prefix is specified by the `--page-dir` option,
remove from the rdoc references.
* Refer to the original .rdoc instead of the converted .html.
nobu (Nobuyoshi Nakada)
12:25 AM Revision 63ab2fed (git): include/ruby/atomic.h: add doxygen
Must not be a bad idea to improve documents. [ci skip] shyouhei (Shyouhei Urabe)
12:25 AM Revision 789232f9 (git): template/Doxyfile.tmpl: modernise
applied doxygen -g for Doxygen 1.9.3. shyouhei (Shyouhei Urabe)

09/14/2021

11:52 PM Revision f650ca75 (git): [ruby/racc] Rename helper to case
hsbt (Hiroshi SHIBATA)
11:49 PM Revision 845ab32a (git): [ruby/racc] Ignored loading CoreAssertions in test case
https://github.com/ruby/racc/commit/1f8b05b298 hsbt (Hiroshi SHIBATA)
11:49 PM Revision 8f6b42e0 (git): [ruby/logger] Ignored loading CoreAssertions in test runner
https://github.com/ruby/logger/commit/2fd5401ad6 hsbt (Hiroshi SHIBATA)
11:49 PM Revision f77f9b93 (git): [ruby/logger] gemspec: Drop unused "executables" configuration
This gem exposes 0 executables.
https://github.com/ruby/logger/commit/fbd9315393
olleolleolle (Olle Jonsson)
11:11 PM Revision b8c3a84b (git): Refactor and Using RBOOL macro
S_H_ (Shun Hiraoka)
11:05 PM Bug #18141 (Closed): Marshal load with proc yield objects before they are fully initialized
nobu (Nobuyoshi Nakada)
11:00 PM Revision 89242279 (git): Marshal.load: do not call the proc until strings have their encoding
Ref: https://bugs.ruby-lang.org/issues/18141 byroot (Jean Boussier)
10:56 PM Feature #18020: Introduce `IO::Buffer` for fiber scheduler.
+1 that being said, I have no problem with augmenting IO::Buffer to map into a memory view interface.
``` ruby
f = File.open(FILENAME,'rb')
bytearray = ByteArray.new(File.size(FILENAME)) # ByteArray implements memoryview and is mut...
dsisnero (Dominic Sisneros)
10:51 PM Revision a0357acf (git): Enhanced RDoc for Range (#4839)
Treated:
#size
#to_a
#each
#begin
#end
#first
#last
burdettelamar (Burdette Lamar)
09:46 PM Bug #18167 (Closed): JSON.load doesn't symbolize names
@Hanmac is correct. I think you also need to manually set `create_additions: false`, otherwise, an ArgumentError is raised:
```ruby
JSON.load(%( {"a": 1, "b": 2} ), nil, symbolize_names: true, create_additions: false)
# => {:a=>1, ...
jeremyevans0 (Jeremy Evans)
01:47 PM Bug #18167: JSON.load doesn't symbolize names
The Problem lies in the documentation of the load method:
``
JSON.load(source, proc = nil, options = {}) -> object
``
because it isn't coded for newer ruby using `**options` there,
for you to make it work you need:
`JSON.load( ...
Hanmac (Hans Mackowiak)
01:03 PM Bug #18167 (Closed): JSON.load doesn't symbolize names
As per the documentation the JSON#load method should accept _**and use**_ the same parsing options as the JSON#parse one.
Obviously this is not the case:
```
$ ./json_parse_vs_load.rb
JSON.load, no symbolize => OK
{"a"=>1, "b"=>...
yann.gouverneur (Yann Gouverneur)
09:15 PM Bug #18166 (Closed): Windows Ripper test-all failures? bison package?
nobu (Nobuyoshi Nakada)
02:26 PM Bug #18166: Windows Ripper test-all failures? bison package?
Fixed by @nobu in [fa05697e4832](https://github.com/ruby/ruby/commit/fa05697e4832), both ruby-loco mingw & mswin also pass.
Thanks again. Ok to close.
MSP-Greg (Greg L)
06:09 AM Bug #18166: Windows Ripper test-all failures? bison package?
FYI, it is known that Bison 3.8.1 breaks build of the latest "still" release of LibreOffice (7.1.6.2): https://bugs.gentoo.org/812923 xtkoba (Tee KOBAYASHI)
03:58 AM Bug #18166 (Closed): Windows Ripper test-all failures? bison package?
Windows builds recently failed, and it's odd. The bison package did change from 3.7.6 to 3.8.1... MSP-Greg (Greg L)
09:08 PM Revision aa18f645 (git): * 2021-09-15 [ci skip]
git[bot]
09:08 PM Revision 1af5a0c5 (git): Bsearch doc for Array and Range (#4838)
This PR creates doc/bsearch.rdoc to provide common documentation for bsearch in Array and Range. burdettelamar (Burdette Lamar)
03:37 PM Bug #18165: resolv: IPv6 link local addresses do not accept dash as a valid zone_id character
jeremyevans0 (Jeremy Evans) wrote in #note-3:
> This issue should be fixed by https://github.com/ruby/resolv/pull/2, which is still waiting for review.
Thanks for the link Jeremy. I tried to find a similar bug here but I did not look...
kanashiro (Lucas Kanashiro)
02:52 PM Bug #18165: resolv: IPv6 link local addresses do not accept dash as a valid zone_id character
This issue should be fixed by https://github.com/ruby/resolv/pull/2, which is still waiting for review. jeremyevans0 (Jeremy Evans)
07:00 AM Bug #18165 (Assigned): resolv: IPv6 link local addresses do not accept dash as a valid zone_id character
mame (Yusuke Endoh)
02:55 PM Bug #18164 (Closed): Segfault after spawn when using modified ENV
Applied in changeset commit:git|57d315c937e79199af2b77f21f5eecaca85ffac8.
----------
Handle overwriting Object::ENV in spawn
Instead of looking for Object::ENV (which can be overwritten),
directly look for the envtbl variable. As that...
jeremyevans (Jeremy Evans)
02:55 PM Revision 57d315c9 (git): Handle overwriting Object::ENV in spawn
Instead of looking for Object::ENV (which can be overwritten),
directly look for the envtbl variable. As that is static in hash.c,
and the lookup code is in process.c, add a couple non-static
functions that will return envtbl (or envtbl...
jeremyevans (Jeremy Evans)
01:28 PM Revision 616d6717 (git): [ruby/reline] Remove unused using method
follow #347
https://github.com/ruby/reline/commit/37453a83a3
ima1zumi (Mari Imaizumi)
10:24 AM Bug #17735: `Hash#transform_keys!` drops non evaluated keys
522d4cd32f7727886f4fcbc28ed29c08d361ee20 was reverted at bb84c75001f1bf13b4b2a12db8f4420e76a3ea03. Should I backport it into ruby_3_0? nagachika (Tomoyuki Chikanaga)
09:51 AM Revision fa05697e (git): Use `%printer` directive for Bison 3.8
nobu (Nobuyoshi Nakada)
07:04 AM Revision 6031f426 (git): Update bundled_gems at 2021-09-14
git[bot]
06:48 AM Feature #18148: Marshal.load freeze option
> When freeze:true is specified, only returned value from proc will be frozen?
It could be either really, but I think the proc should be called with the objects already frozen, mostly to allow deserializing strings with `rb_interned_s...
byroot (Jean Boussier)
04:42 AM Feature #18148: Marshal.load freeze option
`Marshal.load()` accepts `proc` which can manipulate the loaded object:
```ruby
str = Marshal.dump(["a", 1, 10 ** 10, 1.0, :foo])
p Marshal.load(str, proc {|obj| [obj]})
#=> [[["a"], [1], [10000000000], [1.0], [:foo]]]
```
When...
ko1 (Koichi Sasada)
04:41 AM Feature #18148: Marshal.load freeze option
It would be helpful for us if you cloud add a simple code example for a feature proposal.
```ruby=
dump = Marshal.dump(["foo", "bar", "baz"])
ary = Marshal.load(dump, freeze: true)
p ary #=> ["foo", "bar", "baz"]
p ary.froze...
mame (Yusuke Endoh)
06:42 AM Misc #18122: DevelopersMeeting20210916Japan
shyouhei (Shyouhei Urabe) wrote in #note-11:
> mame (Yusuke Endoh) wrote in #note-10:
> ...
Please create a ticket. Alternatively, you can propose another good way to create an agenda markdown automatically.
mame (Yusuke Endoh)
04:11 AM Misc #18122: DevelopersMeeting20210916Japan
mame (Yusuke Endoh) wrote in #note-10:
> @shyouhei @hsbt please follow the comment format. My dev-meeting setup script ignores your topics.
How? Mine is not about a BTS ticket.
shyouhei (Shyouhei Urabe)
03:50 AM Misc #18122: DevelopersMeeting20210916Japan
@shyouhei @hsbt please follow the comment format. My dev-meeting setup script ignores your topics. mame (Yusuke Endoh)
06:24 AM Feature #17295: Feature: Create a directory and file with Pathname#touch
Shouldn't this method take keyword arguments that FileUtils.touch accepts? knu (Akinori MUSHA)
06:22 AM Revision 3fd85313 (git): Remove uneeded initialize local variable (#4818)
S_H_ (Shun Hiraoka)
05:58 AM Revision 692dfc50 (git): Refactor vm_yield function
S_H_ (Shun Hiraoka)
05:53 AM Revision bb84c750 (git): Revert "Force recycle intermediate collection in Hash#transform_keys! [Bug #17735]"
This reverts commit 522d4cd32f7727886f4fcbc28ed29c08d361ee20. kachick (Kenichi Kamiya)
05:45 AM Feature #18127: Ractor-local version of Singleton
The advantage of this `RactorLocalSingleton` is, if a library uses singleton library and it is okay to make an instance per Ractor (memo-usage, for example), it is easy to support ractors. ko1 (Koichi Sasada)
05:44 AM Feature #18127: Ractor-local version of Singleton
code: https://github.com/ruby/singleton/pull/4/files
ko1 (Koichi Sasada)
05:39 AM Bug #11182 (Closed): Refinement with alias causes strange behavior
ko1 agreed to keep the current behavior, so I close this issue.
shugo (Shugo Maeda)

09/13/2021

10:32 PM Bug #18165: resolv: IPv6 link local addresses do not accept dash as a valid zone_id character
The mentioned patch is attached. kanashiro (Lucas Kanashiro)
10:28 PM Bug #18165 (Closed): resolv: IPv6 link local addresses do not accept dash as a valid zone_id character
The support for IPv6 link local addresses was added to resolv [here](https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/2f12af42f7f26d570219b87a89294532a86a8ae2).
However, it does not take into account a `zone_id...
kanashiro (Lucas Kanashiro)
08:39 PM Revision 881136d2 (git): [ruby/reline] The behaviour of Alt+key on Windows is changed
ref. https://github.com/ruby/reline/commit/dc2cf90fa6
https://github.com/ruby/reline/commit/4d1518aafc
aycabta (aycabta .)
08:34 PM Bug #13810 (Closed): Inconsistency between Date and Time.strftime("%v")
jeremyevans0 (Jeremy Evans)
07:37 PM Bug #18164: Segfault after spawn when using modified ENV
jeremyevans0 (Jeremy Evans) wrote in #note-4:
> Fryguy (Jason Frey) wrote in #note-3:
> ...
I submitted a pull request that takes this approach to fixing the issue: https://github.com/ruby/ruby/pull/4834
jeremyevans0 (Jeremy Evans)
06:35 PM Bug #18164: Segfault after spawn when using modified ENV
Fryguy (Jason Frey) wrote in #note-3:
> Speculation ahead, but I'm at the point where I don't understand the Ruby C code anymore...but I think what's happening is, roughly:
> ...
I agree, that is a bug. It should not be looking for `O...
jeremyevans0 (Jeremy Evans)
05:01 PM Bug #18164: Segfault after spawn when using modified ENV
Speculation ahead, but I'm at the point where I don't understand the Ruby C code anymore...but I think what's happening is, roughly:
https://github.com/ruby/ruby/blob/ebad1e829316de48f212cd57f88639fa5ac55ee4/process.c#L2980-L2984
```ru...
Fryguy (Jason Frey)
04:55 PM Bug #18164: Segfault after spawn when using modified ENV
This seems to not segfault
```
ENV = {}
spawn({}, "true", :unsetenv_others => true)
ENV.replace({})
```
which leads me to believe that these lines are in play: https://github.com/ruby/ruby/blob/ebad1e829316de48f212cd57f88639fa5...
Fryguy (Jason Frey)
04:38 PM Bug #18164: Segfault after spawn when using modified ENV
On my Mac (Big Sur 11.5.2) using Ruby 3.0.2, I can duplicate the segfault with just the first two lines:
```
ENV = {}
spawn({}, "true")
```
However, this does NOT segfault:
```
ENV.replace({})
spawn({}, "true")
```
djberg96 (Daniel Berger)
04:08 PM Bug #18164 (Closed): Segfault after spawn when using modified ENV
The attached segfault.rb causes a segfault on Ruby 3.0.2 (also on 2.7.2+). This is the smallest reproducer we could get.
```ruby
ENV = {}
spawn({}, "true")
ENV.replace({})
```
You can also change the last line to `ENV.to_s` an...
Fryguy (Jason Frey)
07:00 PM Revision 4e03032a (git): Enhanced RDoc for Range (#4833)
Treated:
::new
#include_end?
#==
#eql?
#hash
#step
burdettelamar (Burdette Lamar)
04:44 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
> Can you look at whether an integration similar to did_you_mean' and 'error_highlight' is easy/possible?
I've got some time on my calendar for exploration. I didn't previously budget for it so I can't guarantee how far I'll be able t...
schneems (Richard Schneeman)
04:25 PM Misc #18122: DevelopersMeeting20210916Japan
* [Bug #15027] When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections (jeremyevans0)
* Do we want methods like Struct#select to internally call #each (at least if #each is overridden)? (I'm against ma...
jeremyevans0 (Jeremy Evans)
04:09 PM Bug #7676 (Closed): Comparison of Float::NAN in array behaves unexpectedly
jeremyevans0 (Jeremy Evans)
03:57 PM Bug #18163 (Closed): Unclear String documentation of <=> and casecmp methods
The documentation was fixed in commit:7f4e86804d426d79807cc038fe4444f7c65f5c4a, but it hasn't been backported to 3.0. I'm marking it for backporting. jeremyevans0 (Jeremy Evans)
03:35 PM Bug #18163: Unclear String documentation of <=> and casecmp methods
> I'd expect 'B' <=> 'A' to result in -1 since 'B' is smaller.
This should've been: `since 'A' is smaller`.
pvalena (Pavel Valena)
03:32 PM Bug #18163 (Closed): Unclear String documentation of <=> and casecmp methods
I have a new student learning Ruby, and there are apparent inconsistencies in Ruby documentation.
The problem appears to be in the order of parameters / variables `self` and `other_string`.
<=>
https://docs.ruby-lang.org/en/3.0.0/St...
pvalena (Pavel Valena)
03:37 PM Revision ebad1e82 (git): * 2021-09-14 [ci skip]
git[bot]
03:37 PM Revision 94dea77c (git): Links for What's Here sections (#4827)
Makes What's Here sections in Time and Dir link to What's Here for super and included modules (like all the others). burdettelamar (Burdette Lamar)
01:10 PM Bug #17878: bootstraptest/test_ractor.rb:224 a random failing test with "The outgoing-port is already closed (Ractor::ClosedError)"
Also observed in ArchLinux CI:
http://rubyci.s3.amazonaws.com/arch/ruby-master/log/20210913T120007Z.log.html.gz
xtkoba (Tee KOBAYASHI)
12:15 PM Revision 43f49b2d (git): Fixup 455978cd133f27fab9e2bfa4301efd3b7c7d0462
hsbt (Hiroshi SHIBATA)
12:14 PM Revision ec6f04c0 (git): Use capture_output instead of capture_io
hsbt (Hiroshi SHIBATA)
11:56 AM Revision be04006c (git): Rename capture_io to capture_output and deprecate to use capture_io
hsbt (Hiroshi SHIBATA)
11:41 AM Revision 455978cd (git): Removed unused mu_pp method
hsbt (Hiroshi SHIBATA)
10:09 AM Revision f5993331 (git): Renamed skip to pend and prepared to deprecate skip method
hsbt (Hiroshi SHIBATA)
09:11 AM Feature #17355: Using same set of names in or-patterns (pattern matching with Foo(x) | Bar(x))
> I'm confused by this code:
Actually, I'm too! The goal of this request doesn't go beyond having support for
```ruby
case [1, 2]
in [1, a] | [a, 3] then a
end
```
The `=> a` is probably a leftover, I don't recall the reason...
decuplet (Nikita Shilnikov)
06:47 AM Revision aaa9805e (git): Add unique token to separated runner
Same as Test::Unit::CoreAssertions#assert_no_memory_leak. nobu (Nobuyoshi Nakada)
05:39 AM Revision dbdceb8a (git): Removed workaround for test_order
hsbt (Hiroshi SHIBATA)
04:54 AM Revision 46769217 (git): Adds mixed hash value and value omission tests
Introduces specification tests for mixed values and value omissions for
Hashes and keyword arguments, such as `{ a:, b:, c: 3 }`.
baweaver (Brandon Weaver)
04:10 AM Feature #14579: Hash value omission
baweaver (Brandon Weaver) wrote in #note-19:
> * `@var:` - Would this work with instance/class/global/constant variables if they're valid symbols?
No, because we didn't change the symbol key syntax. `{ @var: @var }` is not valid, so...
knu (Akinori MUSHA)
04:03 AM Feature #14579: Hash value omission
We also discussed further with Matz and concluded that quoted keys (`{ "key": }`) are not allowed with or without interpolation. This is simply because you don't need that when any local variable or constant can be written without quota... knu (Akinori MUSHA)
03:53 AM Feature #14579: Hash value omission
knu (Akinori MUSHA) wrote in #note-18:
> We should allow it to call a (private) method if no variable with the name defined. We use methods in RSpec or with attr_reader that look like variables, and programmers don't necessarily distin...
baweaver (Brandon Weaver)
03:23 AM Feature #14579: Hash value omission
We should allow it to call a (private) method if no variable with the name defined. We use methods in RSpec or with attr_reader that look like variables, and programmers don't necessarily distinguish between methods from variables when ... knu (Akinori MUSHA)
02:23 AM Feature #14579: Hash value omission
For the record: `{ "#{ str }": }` is not allowed. Matz said that it is intentional. mame (Yusuke Endoh)
02:04 AM Feature #14579: Hash value omission
I assumed the value should be a local variable. The merged patch calls the method when the local variable is not defined.
I doubt this is sufficient behavior. Any opinion?
Matz.
matz (Yukihiro Matsumoto)
02:33 AM Feature #18162: Shorthand method Proc#isolate to create isolated proc objects
The related ticket is here about Proc#isolated? https://bugs.ruby-lang.org/issues/18137 tagomoris (Satoshi Tagomori)
02:32 AM Feature #18162 (Open): Shorthand method Proc#isolate to create isolated proc objects
Currently, isolated proc objects can be created only via Ractor.make_shareable() method.
But isolated proc objects are useful for other use-cases too. So I want to propose a new method Proc#isolate to make it isolated.
For example, i...
tagomoris (Satoshi Tagomori)
02:07 AM Revision 2982464a (git): Revert "Resolved conflict initializers"
This reverts commit 62db6e47b6c0fbba337649bfa468ec221d5d1001.
308183fffab43f1e111d5bb4c60f1380432966e6 is the correct solution
about this.
hsbt (Hiroshi SHIBATA)
12:36 AM Revision ec6b444f (git): Fixed leaked file descriptor
Leaked file descriptor: TestRDocGeneratorDarkfish#test_template_stylesheets: 11 : #<File:./tmp20210913-30865-7c4ey8/hoge20210913-30865-evm2uo.css> hsbt (Hiroshi SHIBATA)

09/12/2021

10:54 PM Feature #17355: Using same set of names in or-patterns (pattern matching with Foo(x) | Bar(x))
I'm confused by this code:
```
case [1, 2]
in [1, a] | [a, 3] => a then a
end # duplicated variable name
```
The variable isn't used twice, it's used four times. We can ignore the last one, because this is just to give a result b...
duerst (Martin Dürst)
10:47 AM Feature #17355: Using same set of names in or-patterns (pattern matching with Foo(x) | Bar(x))
It'd be nice to have this in 3.1 (no pushing). decuplet (Nikita Shilnikov)
08:15 PM Revision 8de53fb3 (git): [ruby/reline] Use expanded method definitions instead of refinements
@jhawthorn said, "this will make Ruby's integer comparisons slower
globally." It looks like "binding.irb" is going to cause serious
problems in Rails applications.
https://github.com/ruby/reline/commit/ee8d6c6a82
aycabta (aycabta .)
08:12 PM Revision a8fe7c9e (git): coroutine enables assembly version for dragonflybsd.
DC
04:48 PM Revision c8a1e57a (git): Downloader: accept some RFC 2616 noncompliant dates
nobu (Nobuyoshi Nakada)
03:51 PM Revision 62570904 (git): * 2021-09-13 [ci skip]
git[bot]
01:49 PM Revision 289f3a79 (git): [ruby/openssl] Add fallthrough comments
https://github.com/ruby/openssl/commit/258e30b640 nobu (Nobuyoshi Nakada)
01:49 PM Revision 6920f3dc (git): [ruby/openssl] Suppress cast-function-type warnings
https://github.com/ruby/openssl/commit/0f91e2a6ee nobu (Nobuyoshi Nakada)
01:49 PM Revision 598d66f6 (git): [ruby/openssl] Separate formatting from ossl_make_error
Just append OpenSSL error reason to the given message string
object, which would be alreadly formatted.
Suppress -Wformat-security warning in `ossl_tsfac_create_ts`.
https://github.com/ruby/openssl/commit/11b1d8a6b8
nobu (Nobuyoshi Nakada)
01:49 PM Revision c7dce12e (git): [ruby/openssl] Suppress printf format warnings
* Add `printf` format attribute to `ossl_raise`.
* Fix a format specifier in `config_load_bio`.
* Use `ASSUME` for the unreachable condition.
https://github.com/ruby/openssl/commit/41da2955db
nobu (Nobuyoshi Nakada)
12:37 PM Bug #18161 (Closed): [BACKPORT] b8386f7f7f6d7a7d76481e02d389d0f5211f0f2c
The change of tool/lib/vcs.rb in commit:b8386f7f7f6d7a7d76481e02d389d0f5211f0f2c needs to be backported, to run tool/make-snapshort where "7z" command is not installed. nobu (Nobuyoshi Nakada)
09:44 AM Revision 11fd3fec (git): Add benchmarks to create Time instances
nobu (Nobuyoshi Nakada)
09:05 AM Bug #18160 (Closed): IndexError raised from MatchData#{offset,begin,end} does not keep the encoding of the argument
Applied in changeset commit:git|99d8c4832a7133ca52578d015e3ddcfd94820f4a.
----------
Preserve the encoding of the argument in IndexError [Bug #18160]
nobu (Nobuyoshi Nakada)
05:05 AM Revision e8025874 (git): Add printf attribute to functions call va_list format functions
nobu (Nobuyoshi Nakada)
02:16 AM Revision c5570a7c (git): Extract backref_number_check
nobu (Nobuyoshi Nakada)
02:16 AM Revision 99d8c483 (git): Preserve the encoding of the argument in IndexError [Bug #18160]
nobu (Nobuyoshi Nakada)
02:16 AM Revision 83a5e2bb (git): Using RB_FLOAT_TYPE_P macro
S_H_ (Shun Hiraoka)
02:16 AM Revision af5826a2 (git): Replace RB_TYPE_P macro to FIXNUM_P and RB_INTEGER_TYPE_P macro
S_H_ (Shun Hiraoka)
02:00 AM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
schneems (Richard Schneeman) wrote in #note-2:
> For additional context for anyone who could not see the presentation, I uploaded my RubyKaigi talk as unlisted on YouTube https://youtu.be/DfGG77zVVR4.
This is now also available 'offi...
duerst (Martin Dürst)
 

Also available in: Atom