[#106341] [Ruby master Bug#18369] users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" } — dorianmariefr <noreply@...>
Issue #18369 has been reported by dorianmariefr (Dorian Mari辿).
14 messages
2021/11/30
[#106351] [Ruby master Bug#18371] Release branches (release information in general) — "tenderlovemaking (Aaron Patterson)" <noreply@...>
Issue #18371 has been reported by tenderlovemaking (Aaron Patterson).
7 messages
2021/11/30
[ruby-core:105966] [Ruby master Bug#18292] 3.1.0-dev `include` cause Module to be marked as initialized
From:
"byroot (Jean Boussier)" <noreply@...>
Date:
2021-11-08 13:27:50 UTC
List:
ruby-core #105966
Issue #18292 has been reported by byroot (Jean Boussier).
----------------------------------------
Bug #18292: 3.1.0-dev `include` cause Module to be marked as initialized
https://bugs.ruby-lang.org/issues/18292
* Author: byroot (Jean Boussier)
* Status: Open
* Priority: Normal
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Some subtle change I found while testing our app compatibility with Ruby head:
```ruby
class Mod1 < Module
def initialize(...)
super
end
end
p Mod1.new
class Mod2 < Module
def initialize(...)
include Enumerable
super
end
end
p Mod2.new
```
On 3.0:
```
#<Mod1:0x00007fbf9b825b38>
#<Mod2:0x00007fbf9b825818>
```
On ruby-head:
```
#<Mod1:0x00000001108cb1d8>
/tmp/module.rb:11:in `initialize': already initialized module (TypeError)
from /tmp/module.rb:11:in `initialize'
```
I suspect this might be a result of https://bugs.ruby-lang.org/issues/17048, but I have to admit I'm not certain so I'd rather report it.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>