Project

General

Profile

Activity

From 07/02/2019 to 07/08/2019

07/08/2019

11:39 PM Revision 9b18cb34 (git): * 2019-07-09
git[bot]
11:37 PM Feature #15897: `it` as a default block parameter
@JonRowe Thank you for your opinion, but I'd be happy if you could read my original proposal carefully. I've already pointed out the issue (and said my opinion against the issue).
> Cons:
> ...
I hear from some people that they are ...
mame (Yusuke Endoh)
04:36 PM Feature #15897: `it` as a default block parameter
Its worth pointing out that this would always have to be lower priority than methods and other such locals defined in order to allow code to work. If precedence for this was changed to later override existing definitions of it, or simply... JonRowe (Jon Rowe)
11:31 PM Revision 2a8be8ec (git): Suppress uninitialized instance variable warnings
nobu (Nobuyoshi Nakada)
05:08 PM Feature #15991: Allow questionmarks in variable names
> I thought such an issue would've already been discussed but no number of searches
> ...
I think this has been discussed before - I can not point to another issue request for this,
though, so perhaps I misremember. I also don't rememb...
shevegen (Robert A. Heiler)
10:13 AM Feature #15991: Allow questionmarks in variable names
If this proposal will not cause some serious conflicts, it seems to be also useful for those cases:
```ruby
class Task
def initiailize(name, ready)
@name, @ready = name, ready
end
attr_reader :name
def ready?
...
zverok (Victor Shepelev)
09:18 AM Feature #15991 (Assigned): Allow questionmarks in variable names
Hi,
I thought such an issue would've already been discussed but no number of searches allowed me to find a similar request. Feel free to close if I missed a previous refusal.
From time to time, especially when trying to clear up co...
aquaj (Jérémie Bonal)
01:49 PM Feature #15973: Let Kernel#lambda always return a lambda
"It's already broken, why not break it more" is not what I can follow.
Can I ask you why you need this feature? If this not more than a matter of consistency, I would like to second @eregon's proposal: lambdas without literal blocks ...
shyouhei (Shyouhei Urabe)
12:35 AM Feature #15973: Let Kernel#lambda always return a lambda
I would also like to note that if we revert back to the behavior in 2.4, code that relied on `lambda` without block will not have an easy upgrade path.
```ruby
def make_a_lambda
lambda
end
```
is not equivalent to
```rub...
alanwu (Alan Wu)
12:20 AM Feature #15973: Let Kernel#lambda always return a lambda
The 2.4 spec is a bit problematic since it makes it impossible to forward a
block to `Kernel#lambda` with a block pass. In the rest of the language
forwarding a block has no effect on semantics compared to passing one
literally. The i...
alanwu (Alan Wu)
11:31 AM Revision ad38f026 (git): Adopt the directory structure of ruby repository for racc extension.
hsbt (Hiroshi SHIBATA)
10:02 AM Feature #5735 (Closed): Extending the use of splat operator to when it is inside a hash
matz (Yukihiro Matsumoto)
09:53 AM Feature #5735: Extending the use of splat operator to when it is inside a hash
A similar feature has already been realized as the double splat operator. Please close this issue. sawa (Tsuyoshi Sawada)
09:16 AM Bug #15989: irb-1.1.0.pre.1 crashes on using arrow up, home and delete
I can reproduce (by hitting del at the end of the line). The cause is in the snippet below.
``` ruby
Reline::Unicode.get_next_mbchar_size('')
# => nil
```
`get_next_mbchar_size()` doesn't always return a number.
According to ...
tanguyandreani (Tanguy Andreani)
08:09 AM Revision 995ae6d5 (git): Check indent of `end` against `else` if present
nobu (Nobuyoshi Nakada)
07:05 AM Revision e0a3c547 (git): Get rid of toplevel methods
nobu (Nobuyoshi Nakada)
07:00 AM Revision 93c9405e (git): * expand tabs.
git[bot]
06:13 AM Revision 663d58ff (git): Fix indent
nobu (Nobuyoshi Nakada)
06:07 AM Revision a8c54932 (git): Renamed fib to fiber
nobu (Nobuyoshi Nakada)
04:30 AM Revision 612cad5d (git): Let struct dump_config in objspace fit in a single cache line
Let dump_config boolean members roots and full_heap be bit flags
instead
Closes: https://github.com/ruby/ruby/pull/2274
methodmissing (Lourens Naudé)
04:05 AM Bug #10626 (Feedback): BUS error from nesting lambda's and calls to methods defined with define_method
I tried the last two gists with many Ruby versions (1.9-2.7) and could not produce a crash. These were compiled with clang 7 on OpenBSD. It's possible with a different compiler and compiler options the results would be different. Can ... jeremyevans0 (Jeremy Evans)
04:03 AM Revision e9907122 (git): Suppress a warning when `write_headers: true`
nobu (Nobuyoshi Nakada)
03:54 AM Bug #10635 (Closed): cmp_failed warnings in 2.2 are very hard to track down
`cmp_failed` was removed in Ruby 2.3. jeremyevans0 (Jeremy Evans)
03:49 AM Bug #10654 (Closed): Nil -> Rational Inconsistency
jeremyevans0 (Jeremy Evans)
03:19 AM Bug #10651: pkg_config does not report required include headers
anatolik (Anatol Pomozov) wrote:
> Could anyone explain what this change tries to do?
It tries to separate the `-I` cflags from the non `-I` ones, as they are stored in different global variables. In general it probably doesn't caus...
jeremyevans0 (Jeremy Evans)
02:35 AM Feature #14183: "Real" keyword argument
sawa (Tsuyoshi Sawada) wrote:
> Can someone answer my question in https://bugs.ruby-lang.org/issues/14183#note-68? Perhaps @mame knows? If it is not decisive yet, that is fine. I just want to know what the developers have in mind at thi...
jeremyevans0 (Jeremy Evans)
01:58 AM Feature #14183: "Real" keyword argument
Can someone answer my question in https://bugs.ruby-lang.org/issues/14183#note-68? Perhaps @mame knows? If it is not decisive yet, that is fine. I just want to know what the developers have in mind at this point. sawa (Tsuyoshi Sawada)
02:20 AM Bug #10715: WEBrick::HTTPResponse#to_s calls send_response(), and make debugging quite difficult.
It looks like `WEBrick::HTTPResponse#to_s` is currently broken anyway (https://github.com/ruby/webrick/pull/20). I agree that it makes sense to remove the method, and added a pull request to do so (https://github.com/ruby/webrick/pull/22). jeremyevans0 (Jeremy Evans)
01:59 AM Bug #10928 (Closed): optparse Switch#summarize code doesn't reflect its documentation
Applied in changeset commit:git|3fcffceafd2bce7186851bf4899484c545a9ace8.
----------
Fix default argument values for OptParse::Switch#summarize
The documentation describes these arguments being hashes, and the method
is called with has...
jeremyevans (Jeremy Evans)
01:46 AM Bug #10928: optparse Switch#summarize code doesn't reflect its documentation
Thank you, I've missed it.
Commit it please.
nobu (Nobuyoshi Nakada)
01:59 AM Revision a2e0aaea (git): * 2019-07-08
git[bot]
01:55 AM Bug #10747 (Assigned): DNS resolution should fall back to TCP on Errno::EACCES
I'm not sure I would consider this a bug, but it seems like a reasonable change. Attached is an updated patch that applies against master. jeremyevans0 (Jeremy Evans)
01:34 AM Bug #10789 (Feedback): X-forwarded-Proto required when using Reverse Proxy
I don't think this is a bug. If Apache doesn't pass the `X-Forwarded-Proto` header, and the `X-Forwarded-Host` header doesn't include the port, then how would Webrick know that the request was originally submitted via https? I'm not su... jeremyevans0 (Jeremy Evans)
01:21 AM Bug #10741 (Closed): const_defined? triggers autoload where it did not before
This was fixed between 2.6 and 2.7.0-preview1:
```
$ ruby26 a.rb
in b
true
$ ruby27 a.rb
true
```
jeremyevans0 (Jeremy Evans)
01:17 AM Bug #10764 (Closed): TracePoint API reports events for the last last line of multiline ||=
From testing, this issue was resolved between Ruby 2.4 and 2.5.
2.4 output:
```
c_return -e:3 enable
line -e:5
c_call -e:5 method_added
c_return -e:5 method_added
line -e:8
...
jeremyevans0 (Jeremy Evans)
01:09 AM Bug #10878 (Closed): require: cannot load such file
jeremyevans0 (Jeremy Evans)
01:07 AM Bug #10891 (Closed): /[[:punct:]]/ POSIX group broken (with string literals?)
This was apparently fixed between Ruby 2.3 and 2.4:
```
$ ruby23 -e 'p("<".force_encoding("UTF-8") =~ /[[:punct:]]/)'
nil
$ ruby24 -e 'p("<".force_encoding("UTF-8") =~ /[[:punct:]]/)'
0
```
jeremyevans0 (Jeremy Evans)
01:03 AM Bug #10892 (Closed): Deadlock in autoload
jeremyevans0 (Jeremy Evans)
01:01 AM Bug #10901: Object#singleton_methods behaves differently depending on whether the singleton_class exists
I think this is a bug and it should be fixed. Attached is a patch that fixes the issue by checking if the receiver is already a singleton class, and if so, calling `rb_singleton_class` to force the creation of the singleton class of the... jeremyevans0 (Jeremy Evans)

07/07/2019

09:19 PM Bug #10916 (Third Party's Issue): What the Ruby? SegFault?
This appears to be a bug in the ffi gem, see https://github.com/ffi/ffi/issues/337. jeremyevans0 (Jeremy Evans)
09:07 PM Bug #10924 (Closed): String#b
Considering `String#b` has now been present since Ruby 2.0, and renaming it would break tons of code, I think there is no chance of it being renamed. It looks like Radix has adjusted to it and works with `String#b` being defined by defa... jeremyevans0 (Jeremy Evans)
09:04 PM Feature #15897: `it` as a default block parameter
Eregon (Benoit Daloze) wrote:
> I think this ambiguity is fairly intuitive and easy to resolve:
> ...
I would echo Benoit's comments here. As an avid RSpec user, I employ `it "does something"` without a block fairly often for prototyp...
joallard (Jonathan Allard)
08:57 PM Bug #10928 (Assigned): optparse Switch#summarize code doesn't reflect its documentation
I agree that this is a bug and it should be fixed. You can trigger it by calling `OptionParser::Switch#summarize` without arguments:
```ruby
require 'optparse'
o = OptionParser.new
o.on('-c'){}
o.instance_variable_get(:@stack)[2]...
jeremyevans0 (Jeremy Evans)
08:49 PM Revision 3fcffcea (git): Fix default argument values for OptParse::Switch#summarize
The documentation describes these arguments being hashes, and the method
is called with hashes, so a hash default makes more sense.
The method would fail previously if called without arguments and @short
or @long contained a non-integer...
jeremyevans (Jeremy Evans)
05:43 PM Bug #10955 (Closed): invoke_block_from_c segfault
jeremyevans0 (Jeremy Evans)
04:31 PM Bug #10961 (Closed): Zlib corrupts data when receive signal
It appears this was fixed between ruby 2.3 and 2.4:
```
$ ruby24 /home/jeremy/Downloads/zlib.rb
62780
generating len=1000000000 string...
string length=1000000000
compressing...
^CINT
decompressing...
true
$ ruby23 /home/...
jeremyevans0 (Jeremy Evans)
04:20 PM Bug #11016 (Closed): method calls without parenthesis makes SyntaxError when DVAR exists
The `ng_assoc19.rb` and `ng_assoc19_strvalue.rb` examples are no longer syntax errors, so I think this can be closed. jeremyevans0 (Jeremy Evans)
11:16 AM Revision c1ebb384 (git): Fix a typo
znz (Kazuhiro NISHIYAMA)
10:05 AM Revision fc4dd7d3 (git): Git branch name can contain `#{}` too
nobu (Nobuyoshi Nakada)
10:02 AM Bug #11022: opening an eigenclass does not change the class variable definition context
Class variable lookup just ignores singleton classes currently.
I assume this is intentional behavior so one can use the same variable in singleton methods (when defined under `class<<self`) and instance methods.
Eregon (Benoit Daloze)
05:56 AM Bug #11022: opening an eigenclass does not change the class variable definition context
This issue is not specific to opening a singleton class (`class <<`), but applies to any case where the class being opened is a singleton class. You get the same output for:
```ruby
module Mod1
O = Object.new.singleton_class
c...
jeremyevans0 (Jeremy Evans)
10:01 AM Revision 19a4c42d (git): Unescape #{} in the last commit title
Get rid of unknown escape sequence warning, as `#` is not a
special character in C.
```
version.c:126:26: warning: unknown escape sequence '\#' [-Wunknown-escape-sequence]
fputs("last_commit=" RUBY_LAST_COMMIT_TITLE, stdout);
...
nobu (Nobuyoshi Nakada)
09:33 AM Revision 68e58040 (git): Add coroutine context switch for i386-mingw32
It's essentially a translation of Context.asm from Intel
to AT&T syntax.
larskanis (Lars Kanis)
09:18 AM Revision a13636e7 (git): Message to pipe should end with a newline
nobu (Nobuyoshi Nakada)
06:51 AM Feature #15990 (Closed): "else if" causes confusing syntax error
Applied in changeset commit:git|d548073f68ae719933c328686df224f74a60d366.
----------
Enable indentation warning against `if` just after `else`
```ruby
if false
puts 'false'
else if true
puts 'true'
end # -:5: warning: mismatched in...
nobu (Nobuyoshi Nakada)
04:27 AM Feature #15990: "else if" causes confusing syntax error
Warning only after a syntax error?
```
$ ./ruby -w
if false
else if true
end
-:3: syntax error, unexpected end-of-input, expecting `end'
-:3: `end' of `if' matched `else' before `if'
-:2: maybe `elsif'?
```
nobu (Nobuyoshi Nakada)
12:18 AM Feature #15990: "else if" causes confusing syntax error

The problem is that this is valid Ruby:
``` ruby
if false
puts 'false'
else if true
puts 'true'
end
end
```
So we can't really tell if `else if` is invalid until we parse the second `end`.
nicholaslyang (Nicholas Yang)
06:50 AM Revision a33948f4 (git): * 2019-07-07
git[bot]
06:47 AM Revision d548073f (git): Enable indentation warning against `if` just after `else`
```ruby
if false
puts 'false'
else if true
puts 'true'
end # -:5: warning: mismatched indentations at 'end' with 'if' at 3
end
```
[Feature #15990]
nobu (Nobuyoshi Nakada)
05:43 AM Revision 789e49dc (git): Renamed column in token_info to indent
nobu (Nobuyoshi Nakada)
05:34 AM Bug #11059 (Closed): When saving a hash to YAML or JSON the default value isn't stored
jeremyevans0 (Jeremy Evans)
05:16 AM Bug #11040 (Closed): Mutex can be locked by multiple threads, causing Monitor to sometimes hang
Fixed by commit:7be5169804ee0cfe1991903fa10c31f8bd6525bd. jeremyevans0 (Jeremy Evans)
05:11 AM Bug #11120 (Closed): Unexpected behavior when mixing Module#prepend with method aliasing
jeremyevans0 (Jeremy Evans)
05:09 AM Bug #11178 (Closed): possible bug: a thread killed when waiting on ConditionVariable locks the mutex again before real exit
I don't think this is a bug. Killing a thread requires running ensure blocks until the thread exits, the ensure block for `ConditionVariable#wait` needs to reacquire the mutex. If it didn't, the method would exit with the mutex not loc... jeremyevans0 (Jeremy Evans)
04:53 AM Bug #11119 (Closed): Anonymous classes and modules have terrible #name and #inspect performance
jeremyevans0 (Jeremy Evans)
04:46 AM Bug #11209 (Closed): [PATCH] Fix for String#+ when subclassed
jeremyevans0 (Jeremy Evans)
04:44 AM Bug #11250 (Closed): open-uri broken when fetching from ftp over proxy
Looking at the mentioned commit, I'm not sure how it is possible that the commit broke it. The only code change is:
```diff
- http = klass.new(target_host, target_port)
+ http = proxy ? klass.new(target_host, target_port) : k...
jeremyevans0 (Jeremy Evans)

07/06/2019

04:45 PM Bug #15987: Let `exception` option in `Kernel#Complex`, `Kernel#Float`, `Kernel#Integer`, `Kernel#Rational` be falsy vs. truthy
@sawa Could you write a code example in the description? It would be very helpful to make the developer meeting efficiently.
```
p Integer("z", exception: false) #=> nil
p Integer("z", exception: nil) #=> excepted: nil, actual: i...
mame (Yusuke Endoh)
02:00 PM Bug #15987: Let `exception` option in `Kernel#Complex`, `Kernel#Float`, `Kernel#Integer`, `Kernel#Rational` be falsy vs. truthy
I agree for methods taking an :exception keyword argument.
I would consider this a bug to treat `nil` as "want exception".
Do you have examples of other methods taking a boolean option and treating `nil` the same as `true`?
Those sh...
Eregon (Benoit Daloze)
03:36 PM Misc #15930: DevelopersMeeting20190711Japan
* [Feature #15987] Let boolean option (such as `exception` in `Kernel#Complex`, `Kernel#Float`, `Kernel#Integer`, `Kernel#Rational`) be falsy vs. truthy
* Does this issue need matz approval or can it be fixed directly? If it does, doe...
Eregon (Benoit Daloze)
03:24 PM Feature #15966: Introducing experimental features behind a flag, disabled by default
josh.cheek (Josh Cheek) wrote:
> Why not a comment pragma for this, too? A flag seems out of place.
Thanks for your reply.
I think a pragma is pretty bad for changing the default value when there is no pragma, from the experience wi...
Eregon (Benoit Daloze)
03:11 PM Feature #15966: Introducing experimental features behind a flag, disabled by default
palkan (Vladimir Dementyev) wrote:
> I think, most gems won't use these features anyway: we, gem authors, need to support older versions;
Thanks for your reply. Agreed, I was thinking to that as well but did not mention it explictly....
Eregon (Benoit Daloze)
01:55 PM Feature #15897: `it` as a default block parameter
JonRowe (Jon Rowe) wrote:
> > FWIW, MSpec's it requires the description argument, so it cannot ever be ambiguous for the user.
> ...
I think this ambiguity is fairly intuitive and easy to resolve:
it's exactly the same rule as for met...
Eregon (Benoit Daloze)
01:44 PM Bug #11304: [PATCH] Kernel.global_variables should observe $~.
`$1` - `$N` (there can be more than 9 of them) are treated specially by the parser.
In fact, the only way they can work is special treatment by the parser, because there is potentially an infinite number of them.
And that's probably ...
Eregon (Benoit Daloze)
09:46 AM Revision 9d8855b6 (git): Added assertions for Unicode escaped CHAR scanner events
nobu (Nobuyoshi Nakada)
07:34 AM Feature #15990: "else if" causes confusing syntax error
I guess it should be possible to distinguish between "else if" and "elsif"
by the ruby parser already, since it does fail if the 'e ' part is there
in the first case, as otherwise the parser would accept the syntax. So I
think it woul...
shevegen (Robert A. Heiler)
01:53 AM Feature #15990 (Closed): "else if" causes confusing syntax error
```ruby
if false
puts 'false'
else if true
puts 'true'
end
```
This fails with "syntax error: unexpected end-of-input, expecting end". `else if` isn't `elsif`, of course, but if a file contains `else if` (especially on one l...
viko (Viko Viko)
03:56 AM Bug #15988: Time#dst? vs "real" timezones
I've noticed it and have a patch, but haven't committed it yet as not written the test using dummy timezone objects. nobu (Nobuyoshi Nakada)
03:45 AM Bug #15985 (Closed): Segmentation Fault exception when using dot-colon method reference on literals
Applied in changeset commit:git|f296c260ef3b2d1a9299dbb4a84df567972453f2.
----------
Fix segfault when using method reference operator without using result
Fixes [Bug #15985]
jeremyevans (Jeremy Evans)
03:36 AM Bug #15985: Segmentation Fault exception when using dot-colon method reference on literals
Seems fine. nobu (Nobuyoshi Nakada)
03:43 AM Revision f296c260 (git): Fix segfault when using method reference operator without using result
Fixes [Bug #15985] jeremyevans (Jeremy Evans)
03:31 AM Revision 688cef21 (git): Refactored width calculations
nobu (Nobuyoshi Nakada)
03:11 AM Revision 44aae5fe (git): Simplified
nobu (Nobuyoshi Nakada)

07/05/2019

11:54 PM Bug #11143 (Closed): it should always be possible to return from an if
Fixed by commit:01b3a3804334be19d013526d3edde2b84399ae43. jeremyevans0 (Jeremy Evans)
11:50 PM Bug #11153 (Closed): Defining singleton methods using `class << self` sometimes fails when using threads
jeremyevans0 (Jeremy Evans)
11:26 PM Bug #11175 (Feedback): possible fibers memory leak or risky GC behavior
I think this may be operating system/platform specific and could be fixed in a previous version. I could replicate the behavior on ruby 2.4.1p111 on x86_64-linux, but memory seemed to stablize around 180MB on ruby 2.7.0dev on i686-linux... jeremyevans0 (Jeremy Evans)
11:05 PM Bug #11184 (Closed): Tests fail when configured with different program prefix and suffix
Rubygems upstream merged the pull request, so this can be closed. jeremyevans0 (Jeremy Evans)
11:03 PM Bug #11214: Cannot Get Correct Binding from inside of C Method
> I'm fairly sure having binding capture arguments passed to C methods is not possible.
TruffleRuby could do that! Sorry I know it's boasting and not relevant to MRI :)
chrisseaton (Chris Seaton)
10:59 PM Bug #11214 (Feedback): Cannot Get Correct Binding from inside of C Method
I'm fairly sure having `binding` capture arguments passed to C methods is not possible. Ruby doesn't know the C function's parameter names at runtime. Even if that were possible, you wouldn't be able to handle cases where a C function t... jeremyevans0 (Jeremy Evans)
11:02 PM Bug #11197 (Rejected): POSIX matchers broken in Regexp
jeremyevans0 (Jeremy Evans)
10:31 PM Bug #11234 (Closed): RubyVM::InstructionSequence.load で case が落ちる
I think this can be closed. It doesn't look like 2.3 actually shipped with `RubyVM::InstructionSequence.load` (disabled at commit:22ea03bb7e213d60e49a9cdd1ec1b221ef802e2a), and the equivalent code with `RubyVM::InstructionSequence.load_... jeremyevans0 (Jeremy Evans)
10:22 PM Bug #11233 (Closed): Module#include, Module#prepend can accept no arguments
jeremyevans0 (Jeremy Evans)
10:20 PM Revision 833cfeb2 (git): * 2019-07-06
git[bot]
10:19 PM Revision 89e178c7 (git): Fix showing document of ClassName.method_name in IRB
In IRB, Time.new is split as "Time", ".", and "new". The receiver "Time"
is processed by #class method but it means that "Time" changes to
"Class". This commit fixes it.
aycabta (aycabta .)
10:14 PM Bug #11275 (Assigned): RFC3986_Parser accepts invalid URIs containing %
I agree that this is a bug that should be fixed. The implementation automatically percent escapes invalid characters instead of rejecting them by design. However, I don't think that implies we should accept invalid percent escapes alrea... jeremyevans0 (Jeremy Evans)
09:09 PM Bug #11282 (Closed): ruby.exe never run. ebtry point not found
jeremyevans0 (Jeremy Evans)
09:08 PM Bug #11290 (Closed): Abort: 6 error running sample app
jeremyevans0 (Jeremy Evans)
09:07 PM Bug #11301 (Closed): Module#prepend should have always added the module before the current
This was fixed between Ruby 2.2 and Ruby 2.3:
```
$ ruby23 -e "module M; end; class A; prepend M; end; class B<A; prepend M; end; p B.ancestors"
[M, B, M, A, Object, Kernel, BasicObject]
$ ruby22 -e "module M; end; class A; prepend...
jeremyevans0 (Jeremy Evans)
08:59 PM Bug #15988 (Assigned): Time#dst? vs "real" timezones
The behavior seems even worse in the master branch and 2.7.0-preview1, with a RuntimeError without a calculation, and always false after a calculation:
```ruby
require 'tzinfo'
z = TZInfo::Timezone.get('Europe/Kiev')
t = Time.new(2...
jeremyevans0 (Jeremy Evans)
12:09 PM Bug #15988: Time#dst? vs "real" timezones
Even funnier:
```ruby
winter = Time.new(2019, 12, 1, 14, 30, 12, z) # => 2019-12-01 14:30:12 +0200 -- offset is correct
winter.dst? # => true -- this is wrong!
(winter + 1).dst? ...
zverok (Victor Shepelev)
09:00 AM Bug #15988 (Closed): Time#dst? vs "real" timezones
My current timezone is Europe/Kiev.
With default zone (how it was previously):
```ruby
summer = Time.new(2019, 6, 1, 14, 30, 12) # => 2019-06-01 14:30:12 +0300
summer.zone # => "EEST"
summer.dst? ...
zverok (Victor Shepelev)
06:05 PM Bug #11304: [PATCH] Kernel.global_variables should observe $~.
All of the other similar regexp variables (`$& $' $+ $~ $(backquote)`) are listed by `global_variables`, so it would make sense for `$1` and similar to appear, or alternatively for the other 5 regexp globals not to appear if there is no ... jeremyevans0 (Jeremy Evans)
05:10 PM Bug #11326: Defining a writer as a Struct member allowed?
This issue still exists in the master branch. Eric's patch no longer applies, but attached is a similar approach that works and includes a test. However, maybe there was a reason this wasn't committed originally? jeremyevans0 (Jeremy Evans)
04:40 PM Bug #15989: irb-1.1.0.pre.1 crashes on using arrow up, home and delete
Adding a demo gif code maciej.mensfeld (Maciej Mensfeld)
04:29 PM Bug #15989 (Rejected): irb-1.1.0.pre.1 crashes on using arrow up, home and delete
When I do this:
1. Start irb
2. Define empty string `''`
3. Press arrow up
4. Press Home
5. Press Delete to remove first `'`
6. irb crashes
I get following exception:
```
33: from ../install/bin/irb:23:in `<main>'
32: f...
maciej.mensfeld (Maciej Mensfeld)
02:11 PM Bug #15841 (Closed): SegFault in OpenSSL::PKey::RSA#private_encrypt
jeremyevans0 (Jeremy Evans)
12:38 PM Bug #15841: SegFault in OpenSSL::PKey::RSA#private_encrypt
Both of PR is merged and this issue is resolved, so this can be closed.
- https://github.com/ruby/openssl/pull/255
- https://github.com/ruby/openssl/pull/258
Thanks!
thekuwayama (tomoya kuwayama)
01:39 PM Revision d746a41e (git): Multiple codepoints are not allowed at single character literal
It has unintentionally passed since 2.5. nobu (Nobuyoshi Nakada)
01:24 PM Misc #15930: DevelopersMeeting20190711Japan
* [Feature #15631] Let round_capa for ID table not allocate excess capacity for power of 2 ints >= 4
* PR and further due diligence comments in https://github.com/ruby/ruby/pull/2278
methodmissing (Lourens Naudé)
10:01 AM Revision 0a2f598d (git): * 2019-07-05
git[bot]
10:00 AM Revision fae4489a (git): Fix a typo
znz (Kazuhiro NISHIYAMA)
07:44 AM Feature #15897: `it` as a default block parameter
> Is that used in practice though? I know pending examples, but I would expect they at least have a description.
No but as Ruby doesn't allow method overloading you do create that ambiguity, and the possibility for future bugs due to ...
JonRowe (Jon Rowe)
06:23 AM Feature #15966: Introducing experimental features behind a flag, disabled by default
> This is how frozen string literal support was introduced to Ruby (in addition to the per-file magic comment).
Why not a comment pragma for this, too? A flag seems out of place. A flag also sets it globally, preventing one from optin...
josh.cheek (Josh Cheek)
06:02 AM Bug #15987: Let `exception` option in `Kernel#Complex`, `Kernel#Float`, `Kernel#Integer`, `Kernel#Rational` be falsy vs. truthy
I don't have a huge preference either way, but this may be a design decision, so perhaps we
can ask matz either way; also in how strong the concept of "falsy" and "truthy" is in ruby.
I assume there were design considerations for when ...
shevegen (Robert A. Heiler)
03:12 AM Bug #15987 (Closed): Let `exception` option in `Kernel#Complex`, `Kernel#Float`, `Kernel#Integer`, `Kernel#Rational` be falsy vs. truthy
The `exception` option in `Kernel#Complex`, `Kernel#Float`, `Kernel#Integer`, and `Kernel#Rational` distinguishes `false` vs. other values.
```ruby
Integer("z", exception: false) #=> nil
Integer("z", exception: nil) #>> ArgumentErro...
sawa (Tsuyoshi Sawada)
04:39 AM Bug #11374 (Closed): crash when using Thread.new{Tk.mainloop}
tk was removed in Ruby 2.4. jeremyevans0 (Jeremy Evans)
04:37 AM Bug #11311 (Closed): STRING::Scan method badly interpret i option - Ruby 2.1.*
jeremyevans0 (Jeremy Evans)
03:23 AM Bug #11381 (Feedback): String のサブクラスをハッシュのキーに指定した時に hash メソッドが呼ばれない
This behavior hasn't changed since the initial report. However, it seems odd to just treat string subclasses (or strings with singleton classes) differently. Currently the behavior is to use C functions for (at least) String, Symbol, I... jeremyevans0 (Jeremy Evans)
01:25 AM Bug #11417 (Closed): Wrong description for `limit` parameter for IO#gets
This was fixed in commit:965e9df38045594d126991e6a109c5746242d2ba. jeremyevans0 (Jeremy Evans)
01:09 AM Bug #11436 (Closed): Date parsing probably doesn't match for the longest regular expression
jeremyevans0 (Jeremy Evans)
12:41 AM Bug #11448 (Closed): Requiring a given library may take 23x longer depending on `require` context
I don't think this is a significant issue with current Ruby, though it was certainly a bigger issue in previous versions. From some testing:
```
$ ruby22 -r active_record -e "t = Time.now; require 'English'; p(Time.now - t)"
0.004...
jeremyevans0 (Jeremy Evans)
12:25 AM Bug #11425 (Closed): super_method fails to find the super method when combined with Module#prepend
This was fixed between Ruby 2.3 and 2.4:
```
$ ruby23 -e '
> class C; def a() end end
> ...
nil
$ ruby24 -e '
> class C; def a() end end
> ...
#<UnboundMethod: C#a>
```
jeremyevans0 (Jeremy Evans)

07/04/2019

10:32 PM Bug #15985: Segmentation Fault exception when using dot-colon method reference on literals
I think the attached patch should fix it. Passes `make check`. This is my first time working on the compiler though, so a more experienced committer should probably check the patch.
With the patch:
```
$ ruby --dump=insns -e 'ni...
jeremyevans0 (Jeremy Evans)
08:35 PM Bug #15985: Segmentation Fault exception when using dot-colon method reference on literals
I can reproduce this. Here's a backtrace:
```
Thread 1 received signal SIGSEGV, Segmentation fault.
0x000006441ce6cdcd in check_funcall_callable (ec=0x643ddd44e48, me=0x64472043dc0) at ./vm_eval.c:365
365 return rb_method...
jeremyevans0 (Jeremy Evans)
11:01 AM Bug #15985 (Closed): Segmentation Fault exception when using dot-colon method reference on literals
I have a simple script that actually does nothing:
``` ruby
nil.:|;1
```
or
```ruby
:|.:!;:|
```
When I run it with `make run` for `miniruby` or I run it with the full built master.
I get a segmentation fault as follow...
maciej.mensfeld (Maciej Mensfeld)
10:14 PM Feature #15966: Introducing experimental features behind a flag, disabled by default
Eregon (Benoit Daloze) wrote:
> I expect gems wouldn't use it anyway because of the extra needed flag.
I think, most gems won't use these features anyway: we, gem authors, need to support older versions; it doesn't make a lot of sens...
palkan (Vladimir Dementyev)
07:44 PM Bug #15984 (Feedback): deleting from a collection while iterating on it
jeremyevans0 (Jeremy Evans)
10:06 AM Bug #15984: deleting from a collection while iterating on it
> This generates a wrong output collection after doing this action.
Could you provide some examples and explain exactly what is wrong with the output collection?
alanwu (Alan Wu)
09:53 AM Bug #15984: deleting from a collection while iterating on it
I don't think ruby should disallow this via an exception. The use case
seems fairly odd, too - it is often more idiomatic to do .map, .select,
.reject etc...
shevegen (Robert A. Heiler)
09:38 AM Bug #15984: deleting from a collection while iterating on it
that totally depends on how you interate over the collection.
if you do it right, ruby has no problem with that
Hanmac (Hans Mackowiak)
07:58 AM Bug #15984 (Closed): deleting from a collection while iterating on it
If you tried to delete from a collection while iterating on it Ruby will allow you to do this flawlessly. This generates a wrong output collection after doing this action. An exception should be thrown to disallow this to be done. aothelal (Abdelrahman Othman Helal)
04:24 PM Feature #15897: `it` as a default block parameter
JonRowe (Jon Rowe) wrote:
> it # creates a pending example with no implementation
Is that used in practice though? I know pending examples, but I would expect they at least have a description.
FWIW, MSpec's `it` requires the descr...
Eregon (Benoit Daloze)
10:17 AM Feature #15897: `it` as a default block parameter
Eregon (Benoit Daloze) wrote:
> What do you think about `_`?
> ...
I think Jon express my feelings with a clear example.
For `_` same thing. It is already use and it can lead to an issue: https://bugs.ruby-lang.org/issues/15897#note-3
Benoit_Tigeot (Benoit Tigeot)
01:06 PM Feature #11460: Unhelpful error message when naming a module with the same name as an existing class
> I would appreciate feedback on whether this more detailed error message is an improvement.
I think this depends on what the ruby user at hand is doing; and how much expertise that
ruby user may have. Some behaviour in ruby can be c...
shevegen (Robert A. Heiler)
07:35 AM Feature #11460: Unhelpful error message when naming a module with the same name as an existing class
nobu (Nobuyoshi Nakada) wrote:
> Is “a Integer” OK? :)
"a(n) Integer"
sawa (Tsuyoshi Sawada)
07:16 AM Feature #11460: Unhelpful error message when naming a module with the same name as an existing class
Is “a Integer” OK? :) nobu (Nobuyoshi Nakada)
01:15 AM Feature #11460: Unhelpful error message when naming a module with the same name as an existing class
jeremyevans0 (Jeremy Evans) wrote:
> So I don't think there is a bug here. It is possible to change the format the error message, though. Attached is a patch that changes the error message to the include the current class of the objec...
duerst (Martin Dürst)
12:54 PM Bug #15986 (Assigned): `TestJIT#test_block_handler_with_possible_frame_omitted_inlining` fails on s390x and armv7hl
Thanks to report. I'd like to know more about the context to fix the issue.
* Does the error happen at the same place when you retry running the tests?
* If so, could you share the output of the following command and all .c/.h files ...
k0kubun (Takashi Kokubun)
12:24 PM Bug #15986 (Closed): `TestJIT#test_block_handler_with_possible_frame_omitted_inlining` fails on s390x and armv7hl
I am trying to build the Ruby 2.7 snapshot for Fedora Rawhide [1], but I observe the following test failure on s390x and aarch64 platforms:
~~~
1) Failure:
TestJIT#test_block_handler_with_possible_frame_omitted_inlining [/builddir...
vo.x (Vit Ondruch)
11:58 AM Revision 6c2b59f9 (git): Support Control- and Meta-
aycabta (aycabta .)
11:05 AM Feature #14183: "Real" keyword argument
I would like to ask for clarification.
I understand that this feature removes the rule that complements argument-final brace-less key-value pairs with braces. That is, the rule that interprets:
```ruby
foo("bar", a: 1, b:2)
```
...
sawa (Tsuyoshi Sawada)
10:34 AM Revision d9f8b88b (git): Move a comment to proper place
aycabta (aycabta .)
10:29 AM Revision 6fa7ed45 (git): Check commented out line in inputrc correctly
aycabta (aycabta .)
09:54 AM Revision 265b9a0e (git): Parse key sequence more strictly
nobu (Nobuyoshi Nakada)
09:49 AM Revision 12e06d32 (git): Use lstrip instead of gsub which can match only once
nobu (Nobuyoshi Nakada)
09:48 AM Bug #15981 (Closed): irb immediately crashes when typing any character
Applied in changeset commit:git|ee861e43f70d827abd1f8d26b2e97920237348b4.
----------
Skip indented comment lines [Bug #15981]
nobu (Nobuyoshi Nakada)
04:07 AM Bug #15981: irb immediately crashes when typing any character
I was asked (apparently in private mail) about `^D` and `^C`. `^D` produces the same Traceback. `^C` produces another prompt, still with the number 001. duerst (Martin Dürst)
12:58 AM Bug #15981: irb immediately crashes when typing any character
I attached my .inputrc, and my .irbrc also just in case you might need that. I can't remember ever modifying these files in any way. I didn't even know there was a .inputrc file. duerst (Martin Dürst)
09:47 AM Revision ee861e43 (git): Skip indented comment lines [Bug #15981]
nobu (Nobuyoshi Nakada)
09:12 AM Revision 0c3e6e86 (git): Suppress uninitialized instance variable warnings
nobu (Nobuyoshi Nakada)
09:01 AM Misc #15930: DevelopersMeeting20190711Japan
* [Feature #11460] Unhelpful error message when naming a module with the same name as an existing class nobu (Nobuyoshi Nakada)
07:45 AM Feature #15983: Can we have a similar syntax (string interpolation) the way V language has?
Let's look at this purely from a syntax point of view first, so that we can avoid
other issues such as backwards incompatible changes (which may be a big reason
why this request will not be implemented; but you have to ask matz).
I ...
shevegen (Robert A. Heiler)
06:23 AM Feature #15983: Can we have a similar syntax (string interpolation) the way V language has?
There are other languages that use $ in string interpolation. One of them is Perl. Perl is much more famous and widely used than V. Ruby was created as a better Perl. $variable_name may work (most of the time, but not always) in language... duerst (Martin Dürst)
05:43 AM Feature #15983 (Rejected): Can we have a similar syntax (string interpolation) the way V language has?
Sorry, guys, This is the first feature that I am writing in this Ruby issue tracking system, and If I make any mistake, please understand :).
Today I was going through this language, i.e. V language (mainly their website) and found it...
mechanicles (Santosh Wadghule)
07:14 AM Bug #11485 (Closed): Ripper parser generates nil tokens for ignored_nl event during parse errors
Applied in changeset commit:git|f19e048d244c709e2990ddbb0f986e8b51357bd2.
----------
Do not dispatch a nil token in ripper
As a comment token includes the newline, so delayed newline token
just follows it should not be dispatched. [Bu...
nobu (Nobuyoshi Nakada)
07:09 AM Bug #11485: Ripper parser generates nil tokens for ignored_nl event during parse errors
> `[ruby-core:<unknown>]`
This seems not having sent to the ML, and it happens sometimes, but I'm not sure why.
nobu (Nobuyoshi Nakada)
07:06 AM Bug #11485: Ripper parser generates nil tokens for ignored_nl event during parse errors
Thank you for the patch, somehow I've missed this issue at all.
`dispatch_delayed_token` is an empty expression unless ripper, so it is useless inside `#ifndef RIPPER`.
And delayed tokens should not be `nil` generally.
nobu (Nobuyoshi Nakada)
06:58 AM Revision f19e048d (git): Do not dispatch a nil token in ripper
As a comment token includes the newline, so delayed newline token
just follows it should not be dispatched. [Bug #11485]
Co-Authored-By: Jeremy Evans <code@jeremyevans.net>
nobu (Nobuyoshi Nakada)

07/03/2019

11:09 PM Feature #11460 (Feedback): Unhelpful error message when naming a module with the same name as an existing class
The reason for the difference in behavior here is due to Ruby's open classes. When using `class X` or `module X`, if the constant `X` is already defined, Ruby will reopen the class or module definition, so you can operate in the context... jeremyevans0 (Jeremy Evans)
10:18 PM Bug #11467 (Feedback): Memory leak in win32 signal init
`Init_signal` is only called once at startup. It appears the memory allocation here happens inside `signal`, in the MS C runtime. Does Windows provide a way to free such memory? jeremyevans0 (Jeremy Evans)
09:57 PM Bug #11468 (Closed): Two mutexes leaked in Init_Thread
`Init_Thread` is only called once on Ruby startup. There are 3 mutexes initialized in `Init_Thread` in the master branch. It appears that these mutexes are used, so I wouldn't consider them leaked. 2 of the mutexes appear to be destroy... jeremyevans0 (Jeremy Evans)
09:34 PM Bug #11479 (Closed): gcc warning variable may be used uninitialized
I think the vsnprintf.c issue is spurious, even in 2.2.3. I can't see a case were `uqval` isn't set and line 1074 is reached. case `x`/`X` sets it in line 1041. case `d`/`D` sets on line 846. case `u`/`U` sets it on line 1027. case `o`/`... jeremyevans0 (Jeremy Evans)
09:26 PM Feature #15897: `it` as a default block parameter
👋Hello! As the current maintainer of RSpec I'm concerned about the confusion here.
```ruby
RSpec.describe do
it "will do the thing" do
it # now refers to the first argument to the block? (Which ironically is the example itsel...
JonRowe (Jon Rowe)
08:32 PM Bug #11485: Ripper parser generates nil tokens for ignored_nl event during parse errors
This bug is still present on master. Attached is a patch that fixes it, by not calling `dispatch_delayed_token` when ripper is used if the dispatched value is `nil`. jeremyevans0 (Jeremy Evans)
07:01 PM Revision 23c92b6f (git): Revert self-referencing finalizer warning [Feature #15974]
It has caused CI failures.
* d0cd0866d82a58933e5dccd073c753c0c2ad4eb5
Disable GC during rb_objspace_reachable_object_p
* 89cef1c56b3a0f9c5e6ccc22a5044477a4fd16c1
Version guard for [Feature #15974]
* 796eeb6339952d92ae1b353d450c7...
nobu (Nobuyoshi Nakada)
04:04 PM Revision 5d9e91af (git): * 2019-07-04
git[bot]
04:04 PM Revision c62aac10 (git): * expand tabs.
git[bot]
03:58 PM Revision d0cd0866 (git): Disable GC during rb_objspace_reachable_object_p
Try to fix CI breakage by [Feature #15974]. nobu (Nobuyoshi Nakada)
03:31 PM Feature #15982: Remove y2racc and racc2y
BTW I am asking this question, because their shebang should be updated otherwise:
https://github.com/ruby/ruby/blob/master/libexec/racc2y#L1
vo.x (Vit Ondruch)
03:29 PM Feature #15982 (Closed): Remove y2racc and racc2y
The y2racc and racc2y are not available upstream anymore:
https://github.com/ruby/racc/commit/2d360188e9ed474d559ad2fa9bb0636feb445ea2
I know this is development branch commit, but is it worth of shipping them in Ruby if they are g...
vo.x (Vit Ondruch)
02:52 PM Revision 9f1d67a6 (git): Renamed to rb_objspace_reachable_object_p
nobu (Nobuyoshi Nakada)
02:50 PM Bug #15981: irb immediately crashes when typing any character
Please show me your `~/.inputrc`. aycabta (aycabta .)
07:20 AM Bug #15981 (Closed): irb immediately crashes when typing any character
When invoking irb, the first prompt comes up, but as soon as any character (incl. e.g. space or tab) is typed, it immediately crashes it.
```
duerst@Arnisee /cygdrive/c/Data/ruby
$ irb
irb(main):001:0> Traceback (most recent call l...
duerst (Martin Dürst)
02:37 PM Revision 7b9bb6f4 (git): Check code_block_open for whether code continues
aycabta (aycabta .)
02:22 PM Misc #15978 (Rejected): Deprecate FIXNUM_MIN and FIXNUM_MAX
robertomiranda (Roberto Miranda) wrote:
> Yeah sure basically for consistency, now that Bignum and Fixnum classes have been deprecated in favour of Integer. I think that FIXNUM_MIN and FIXNUM_MAX should be deprecated and replaced for so...
naruse (Yui NARUSE)
09:18 AM Misc #15978: Deprecate FIXNUM_MIN and FIXNUM_MAX
Yeah sure basically for consistency, now that Bignum and Fixnum classes have been deprecated in favour of Integer. I think that FIXNUM_MIN and FIXNUM_MAX should be deprecated and replaced for something that reflects that ruby has a singl... robertomiranda (Roberto Miranda)
02:10 AM Misc #15978 (Feedback): Deprecate FIXNUM_MIN and FIXNUM_MAX
Can you tell us why? We only expose these constants into C and there _are_ fixnums in C. Usages of them are seen in the wild, for instance https://github.com/ged/ruby-pg/blob/master/ext/pg_text_decoder.c
I fail to see any reason to de...
shyouhei (Shyouhei Urabe)
02:21 PM Misc #15723: Reconsider numbered parameters
I've been following this for a while, hopeful that it (or something quite similar) stays in. I've grown to appreciate thinking of the `@1` in a sense of "an instance var of this block", since `@1` can't exist in code today.
However, ...
ttilberg (Tim Tilberg)
01:45 PM Revision 6bd49b33 (git): Ensure that GC is disabled during compaction
Various things can cause GC to occur when compaction is running, for
example resizing the object identity map:
```
frame #24: 0x000000010c784a10 ruby`gc_grey [inlined] push_mark_stack(stack=<unavailable>, data=<unavailable>) at gc.c...
tenderlovemaking (Aaron Patterson)
11:44 AM Bug #15972: TestFileExhaustive#test_birthtime test failure
I just wonder what FS are supported actually. I am using Ext4, which is not an esoteric FS IMO and this works:
~~~
$ stat --printf='%w' test/ruby/test_file_exhaustive.rb
2019-07-03 12:33:07.270913105 +0200
~~~
vo.x (Vit Ondruch)
10:29 AM Revision e44c9b11 (git): Try to avoid `not delagated` error
```
.../ruby/lib/delegate.rb:405:in `__getobj__': not delegated (ArgumentError)
```
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190703T063006Z.fail.html.gz
znz (Kazuhiro NISHIYAMA)
06:22 AM Revision 89cef1c5 (git): Version guard for [Feature #15974]
nobu (Nobuyoshi Nakada)
05:28 AM Revision dcedf0a0 (git): Fix order of tests
`check` includes `test-testframework`, `test-short` and its
preceeding tests, but `test-all` does not.
nobu (Nobuyoshi Nakada)
04:59 AM Bug #11493: IRB/Ruby completely exits when attempting to use NoMethodError exception in BasicObject
This error still occurs in master. However, I'm not sure it is fixable with the example you gave. Your example does not raise `NoMethodError`, it raises `NameError`, because you used `NoMethodError` instead of `::NoMethodError`. Even i... jeremyevans0 (Jeremy Evans)
03:48 AM Bug #15980 (Closed): Coverage shows while/until after raise if/unless as uncovered line
The following code shows line 2 (`while true`) as uncovered:
```ruby
raise if 1 == 2
while true
break
end
```
Coverage reports the following for this file: `[1, 0, 1, nil]`. Note that `true` isn't important, any `while` con...
jeremyevans0 (Jeremy Evans)
02:42 AM Bug #11511 (Feedback): Problem with cyrillic letter И
jeremyevans0 (Jeremy Evans)
02:03 AM Feature #15973: Let Kernel#lambda always return a lambda
No. I'm against it. We have discussed this before multiple times. See the issues I linked just now. shyouhei (Shyouhei Urabe)
01:39 AM Revision 10cc6bc4 (git): Just disable inlining with local varaible for now
This partially reverts commit 712a66b0741605f5b2db670a292b9bb352f8a716.
The previous fix made CI strange like:
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2124178
Let me just downgrade the behavior for now and deal with it...
k0kubun (Takashi Kokubun)
01:23 AM Revision 07e9a1d9 (git): Debugging failures on x86_64-darwin17 of travis-ci
https://travis-ci.org/ruby/ruby/jobs/553346285 znz (Kazuhiro NISHIYAMA)
12:27 AM Bug #15979 (Rejected): URI.parse does not validate components
``` ruby
URI.parse("https://-._~%2C!$&'()*+,;=:@-._~%2C!$&'()*+,;=:/foo?/-._~%2C!$&'()*+,;=:@/?")
```
happily return a `URI::HTTPS` object, even though it has an invalid component and cannot be constructed using `URI::HTTPS.build`
...
singpolyma (Stephen Paul Weber)

07/02/2019

09:05 PM Feature #15976: Add Array#overlap? for whether the intersection of 2 arrays is non empty?
shevegen (Robert A. Heiler) wrote:
> To me the name of the method appears to make sense and I am slightly in
> ...
Thanks. Matz suggested today that the name was not so clear to him. An alternative that springs to mind would be `inter...
fcheung (Frederick Cheung)
04:12 PM Feature #15976: Add Array#overlap? for whether the intersection of 2 arrays is non empty?
To me the name of the method appears to make sense and I am slightly in
favour of the suggestion. I can not say how useful this method would be
in general, though, mostly because I think I needed to do something
such as (array1 & arr...
shevegen (Robert A. Heiler)
02:09 PM Feature #15976 (Closed): Add Array#overlap? for whether the intersection of 2 arrays is non empty?
This is semantically equivalent to `(ary1 & ary2).any?`, but more efficient and makes the intent more obvious.
For example bundler [checks]( https://github.com/ruby/ruby/blob/master/lib/bundler/runtime.rb#L61 ) whether the list of req...
fcheung (Frederick Cheung)
08:50 PM Bug #15620: Block argument usage affects lambda semantic
I posted more thoughts on #15973. Maybe we should simply `raise` when not giving a literal block to `lambda`/`proc`, since it's useless or dangerous (changes semantics of code) otherwise. Eregon (Benoit Daloze)
08:31 PM Bug #15620: Block argument usage affects lambda semantic
I propose we fix the regression first, the optimization introduced let's fix that, regardless of desired semantics in the future. Eregon (Benoit Daloze)
08:49 PM Feature #15973: Let Kernel#lambda always return a lambda
I'm not sure changing this is good, because it can be very surprising for the code to change semantics dynamically.
Also, should `proc(&lambda)` make a non-lambda Proc then? It would be inconsistent if not.
As I said in https://bugs....
Eregon (Benoit Daloze)
01:31 PM Feature #15973: Let Kernel#lambda always return a lambda
I agree. Even though we have to investigate how big the consequence of the change first.
Matz.
matz (Yukihiro Matsumoto)
01:20 PM Feature #15973 (Closed): Let Kernel#lambda always return a lambda
When Kernel#lambda receives a Proc that is not a lambda,
it returns it without modification. l propose to change `Kernel#lambda`
so it always returns a lambda.
Calling a method called lambda and having it do nothing in effect is
no...
alanwu (Alan Wu)
08:16 PM Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
chrisseaton (Chris Seaton) wrote:
> I think Ruby Spec considers warnings to be user-visible features, so does normally spec them. This prompts alternative implementations like JRuby and TruffleRuby to implement the same warning so that ...
Eregon (Benoit Daloze)
07:26 PM Feature #15974 (Closed): Warn in verbose mode on defining a finalizer that captures the object
Applied in changeset commit:git|928260c2a613bbdd4402c300e0bf86ae7562e52a.
----------
Warn in verbose mode on defining a finalizer that captures the object
[Feature #15974]
Closes: https://github.com/ruby/ruby/pull/2264
chrisseaton (Chris Seaton)
07:05 PM Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
I think Ruby Spec considers warnings to be user-visible features, so does normally spec them. This prompts alternative implementations like JRuby and TruffleRuby to implement the same warning so that the user experience is the same on al... chrisseaton (Chris Seaton)
04:50 PM Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
This is a good feature, but I don't think this should belong to the "spec" as seems an implementation detail. nobu (Nobuyoshi Nakada)
04:15 PM Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
> Matz has approved this proposal.
\o/
shevegen (Robert A. Heiler)
03:35 PM Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
Matz has approved this proposal. mame (Yusuke Endoh)
02:41 PM Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
it makes sense. ko1 (Koichi Sasada)
02:00 PM Feature #15974 (Closed): Warn in verbose mode on defining a finalizer that captures the object
There's a really common mistake people make when using `define_finalizer` - they capture the object in the finalizer.
https://www.mikeperham.com/2010/02/24/the-trouble-with-ruby-finalizers/
This PR warns about that, when in verbose...
chrisseaton (Chris Seaton)
07:26 PM Revision 9f262424 (git): * expand tabs.
git[bot]
07:22 PM Revision 796eeb63 (git): Fix up [Feature #15974]
* Fixed warning condition
* Fixed function signature
* Use ident hash
nobu (Nobuyoshi Nakada)
07:05 PM Revision 928260c2 (git): Warn in verbose mode on defining a finalizer that captures the object
[Feature #15974]
Closes: https://github.com/ruby/ruby/pull/2264
chrisseaton (Chris Seaton)
07:05 PM Revision efde19ce (git): Revert expansion of test-all
nobu (Nobuyoshi Nakada)
06:37 PM Revision 712a66b0 (git): Revert "Avoid corrupting VM stack on inlined setlocal"
This reverts commit ea30dd702512ff9df34fe8c71c825f8f901bf5b1.
because it fails when VM_CHECK_MODE=1.
ko1 (Koichi Sasada)
05:32 PM Misc #15978 (Rejected): Deprecate FIXNUM_MIN and FIXNUM_MAX
robertomiranda (Roberto Miranda)
05:13 PM Revision c07165be (git): * expand tabs.
git[bot]
05:09 PM Revision bdddaa9f (git): Use rb_ident_hash_new instead of rb_hash_new_compare_by_id
The latter is same as the former, removed the duplicate function. nobu (Nobuyoshi Nakada)
04:38 PM Bug #15731 (Closed): Wrong evaluation of many keyword default arguments in 2.3 - 2.5
nobu (Nobuyoshi Nakada)
02:31 PM Bug #15731: Wrong evaluation of many keyword default arguments in 2.3 - 2.5
FYI, I see the bad behaviour on 2.6 and master too. I think the root of the issue is here: https://github.com/ruby/ruby/blob/master/vm_args.c#L405 - it uses a bitmask to capture which kwargs have been passed, and that bitmask is stored i... fcheung (Frederick Cheung)
04:34 PM Bug #15941 (Closed): Issue with String#scrub when given block and receiver is modified in block
Applied in changeset commit:git|0f283054e7f568f09fbfc952d57ea6daf4abbd88.
----------
Check that String#scrub block does not modify receiver
Similar to the check used for String#gsub. Can fix possible
segfault.
Fixes [Bug #15941]
jeremyevans (Jeremy Evans)
04:14 PM Feature #15975: Add Array#pluck
Hmm. I don't doubt that this may possibly be useful, but the method name is
a bit ... weird. My first association with this name, oddly enough, is to
associate duck typing with it, and then to "pluck the duck" (yes, strange
associatio...
shevegen (Robert A. Heiler)
02:05 PM Feature #15975 (Rejected): Add Array#pluck
Inspired by https://github.com/rails/rails/issues/20339
While developing web applications I've often wanted to quickly extract an array of values from an array of hashes.
With an array of objects, this is possible:
```rb
irb(ma...
lewispb (Lewis Buckley)
03:34 PM Revision 0f283054 (git): Check that String#scrub block does not modify receiver
Similar to the check used for String#gsub. Can fix possible
segfault.
Fixes [Bug #15941]
jeremyevans (Jeremy Evans)
03:32 PM Bug #15926 (Closed): Edge case issue with String#uminus
Applied in changeset commit:git|7582287eb27e6b649789ce31ffdcbbb9ffcaf726.
----------
Make String#-@ not freeze receiver if called on unfrozen subclass instance
rb_fstring behavior in this case is to freeze the receiver. I'm
not sure i...
jeremyevans (Jeremy Evans)
03:26 PM Revision 7582287e (git): Make String#-@ not freeze receiver if called on unfrozen subclass instance
rb_fstring behavior in this case is to freeze the receiver. I'm
not sure if that should be changed, so this takes the conservative
approach of duping the receiver in String#-@ before passing
to rb_fstring.
Fixes [Bug #15926]
jeremyevans (Jeremy Evans)
03:23 PM Bug #14886 (Closed): ChangeLog section is obsolete
Applied in changeset commit:git|a4b5aaa9a7225693168e43455de2e10c3721b789.
----------
Remove Changelog section from doc/contributing.rdoc [ci skip]
Replace it with a section on commit message formatting. Also,
move the section on rebas...
jeremyevans (Jeremy Evans)
03:22 PM Revision a4b5aaa9 (git): Remove Changelog section from doc/contributing.rdoc [ci skip]
Replace it with a section on commit message formatting. Also,
move the section on rebasing to the bottom, since that only
applies to committers and not most contributors.
Fixes [Bug #14886]
jeremyevans (Jeremy Evans)
03:19 PM Revision 40d31073 (git): * 2019-07-03
git[bot]
03:19 PM Bug #15929 (Closed): Array#minmax is much slower than calling both #min and #max
Applied in changeset commit:git|ced640951b0e7164a12ea1770330eba3e6109fc2.
----------
Implement Array#minmax
Array#minmax was previous not implemented, so calling #minmax on
array was actually calling Enumerable#minmax. This is a simpl...
jeremyevans (Jeremy Evans)
03:07 PM Revision ced64095 (git): Implement Array#minmax
Array#minmax was previous not implemented, so calling #minmax on
array was actually calling Enumerable#minmax. This is a simple
implementation of #minmax by just calling rb_ary_min and
rb_ary_max, which improves performance significantl...
jeremyevans (Jeremy Evans)
03:03 PM Bug #15977 (Assigned): Unobvious result value from #next_rotate_time and #previous_period_end methods of Logger::Period module
mame (Yusuke Endoh)
03:02 PM Bug #15977 (Closed): Unobvious result value from #next_rotate_time and #previous_period_end methods of Logger::Period module
I found that #next_rotate_time and #previous_period_end methods can return different time objects in some case.
When we call these methods with valid `shift_age` option methods returns a new Time object with the local machine's timez...
davydov_anton (Anton Davydov)
02:50 PM Revision 649753b7 (git): Fix timezone issue for logger period's tests
This is a retry of 181b966e7553ac53d034266a7cdc18664d080814.
"Revert "Add a missing tests for Logger::Period module"" is also
reverted.
mame (Yusuke Endoh)
02:42 PM Bug #15971: Segfault with --jit-wait when using simple *= operator
This is a perfect bug report having a minimum code which reproduces the bug in Ruby 2.7 JIT's method inlining.
I wish we could catch this automatically by one of our CIs, but this time it didn't go well.
Thank you for testing Ruby 2....
k0kubun (Takashi Kokubun)
02:36 PM Bug #15971 (Closed): Segfault with --jit-wait when using simple *= operator
Applied in changeset commit:git|ea30dd702512ff9df34fe8c71c825f8f901bf5b1.
----------
Avoid corrupting VM stack on inlined setlocal
setlocal relies on cfp->ep, and frame-omitted method inlining introduced
in Ruby 2.7 kept it wrong.
Thi...
k0kubun (Takashi Kokubun)
11:21 AM Bug #15971 (Assigned): Segfault with --jit-wait when using simple *= operator
k0kubun (Takashi Kokubun)
11:14 AM Bug #15971: Segfault with --jit-wait when using simple *= operator
When I change "a *= b" to "a * b" it doesn't crash. noahgibbs (Noah Gibbs)
11:13 AM Bug #15971 (Closed): Segfault with --jit-wait when using simple *= operator
I get a segfault with the very simple Ruby code below with JIT debug options. Runs fine with only "--jit" (no --jit-wait or --jit-save-temps).
Ruby with "ruby --jit --jit-save-temps --jit-wait ./multiply.rb"
Ruby version: ruby 2.7.0d...
noahgibbs (Noah Gibbs)
02:38 PM Revision f1043090 (git): Revert "Add a missing tests for Logger::Period module"
This reverts commit 181b966e7553ac53d034266a7cdc18664d080814. ko1 (Koichi Sasada)
02:35 PM Revision ea30dd70 (git): Avoid corrupting VM stack on inlined setlocal
setlocal relies on cfp->ep, and frame-omitted method inlining introduced
in Ruby 2.7 kept it wrong.
This change might slow down frame-omitted method inlining for cfp->ep
manipulation, and it obviously complicates the implementaion more....
k0kubun (Takashi Kokubun)
01:56 PM Revision 181b966e (git): Add a missing tests for Logger::Period module
Closes: https://github.com/ruby/ruby/pull/2266 davydov_anton (Anton Davydov)
01:29 PM Misc #15930: DevelopersMeeting20190711Japan
* [Feature #15973] Make `Kernel#lambda` always return lambda nobu (Nobuyoshi Nakada)
10:07 AM Misc #15930: DevelopersMeeting20190711Japan
* [Feature #15940] Coerce symbols internal fstrings in UTF8 rather than ASCII to better share memory with string literals
* Saves some resident memory
* Makes symbols & constant names defined in UTF-8 files UTF-8 encoded, which is ...
byroot (Jean Boussier)
01:22 PM Bug #15972 (Closed): TestFileExhaustive#test_birthtime test failure
Applied in changeset commit:git|e9ea494171745cc22f458952b0aaf4443820caa9.
----------
The behavior of statx(2) depends on the filesystem
birthtime may not be supported on some filesystems, and
NotImplementedError can be raised. [Bug #1...
nobu (Nobuyoshi Nakada)
11:42 AM Bug #15972 (Closed): TestFileExhaustive#test_birthtime test failure
On my Fedora Rawhide, I observer following test failure:
~~~
1) Error:
TestFileExhaustive#test_birthtime:
NotImplementedError: birthtime is unimplemented on this filesystem
/builddir/build/BUILD/ruby-2.7.0-76851381cb/test/ru...
vo.x (Vit Ondruch)
01:20 PM Feature #7517 (Closed): Fixnum::MIN,MAX
nobu (Nobuyoshi Nakada)
01:11 PM Revision e9ea4941 (git): The behavior of statx(2) depends on the filesystem
birthtime may not be supported on some filesystems, and
NotImplementedError can be raised. [Bug #15972]
nobu (Nobuyoshi Nakada)
12:39 PM Revision e8a2521a (git): Adjust memory_status.rb under the tool directory.
hsbt (Hiroshi SHIBATA)
12:30 PM Feature #15897: `it` as a default block parameter
Benoit_Tigeot (Benoit Tigeot) wrote:
> Thanks for the clarification. As member of the RSpec team but expressing my own view I was worried about a strong conflict. I still think this not a good idea to use "it" because it is used a lot i...
Eregon (Benoit Daloze)
11:45 AM Feature #15897: `it` as a default block parameter
I added an updated patch version. The patch has been tested with existing examples that mame shared initially.
Also I tested the patch against rspec-core without any issues. https://github.com/rspec/rspec-core/issues/2645
Benoit_Tigeot (Benoit Tigeot)
10:24 AM Feature #15897: `it` as a default block parameter
jeremyevans0 (Jeremy Evans) wrote:
> mikegee (Michael Gee) wrote:
> ...
Thanks for the clarification. As member of the RSpec team but expressing my own view I was worried about a strong conflict. I still think this not a good idea to u...
Benoit_Tigeot (Benoit Tigeot)
07:31 AM Feature #15897: `it` as a default block parameter
FWIW, wrt "This is Perlish": at least one modern language has adopted a similar feature: Swift. I've used it in practice, and it is really nice to use.
This page has a running example expressed in different ways: https://docs.swift.o...
akim (Akim Demaille)
12:10 PM Feature #15966: Introducing experimental features behind a flag, disabled by default
joanbm (Joan Blackmoore) wrote:
> Although I can understand rationale behind this proposal, I'm not sure it fits Ruby development model too well and in the end it may only lead to its fragmentation. It assumes diligent use of optional e...
Eregon (Benoit Daloze)
11:52 AM Feature #15966: Introducing experimental features behind a flag, disabled by default
ioquatix (Samuel Williams) wrote:
> I think there are two separate concerns that have been raised in this issue.
Thank you for your reply.
> ...
I think we need to not overuse it, like @jeremyevans0 said.
Features which are not e...
Eregon (Benoit Daloze)
11:21 AM Feature #15966: Introducing experimental features behind a flag, disabled by default
jeremyevans0 (Jeremy Evans) wrote:
> I think the idea of a flag for experimental features makes sense.
> ...
Thank you for your reply.
I think that would be reasonable. That would mean it's experimental for at least a year, which seem...
Eregon (Benoit Daloze)
10:29 AM Feature #15966: Introducing experimental features behind a flag, disabled by default
mame (Yusuke Endoh) wrote:
> I have not yet made up my mind to this proposal, but I think of:
Thank you for your reply! I will reply inline for better context.
> ...
I think it's better a bit slower than rushing a feature which is...
Eregon (Benoit Daloze)
10:58 AM Bug #14997: Socket connect timeout exceeds the timeout value for
This really sounds like a bug to me. Please make a patch and I will apply it. tenderlovemaking (Aaron Patterson)
10:07 AM Feature #15940: Coerce symbols internal fstrings in UTF8 rather than ASCII to better share memory with string literals
Done. byroot (Jean Boussier)
09:48 AM Feature #15940: Coerce symbols internal fstrings in UTF8 rather than ASCII to better share memory with string literals
I'm fine with this proposal, it would be interesting to hear what others think.
@byroot Could you add this issue to #15930 for discussion?
Eregon (Benoit Daloze)
12:11 AM Feature #15940: Coerce symbols internal fstrings in UTF8 rather than ASCII to better share memory with string literals
> would it help if Symbol.to_s or Module.name would return a shared string?
It's not really about the returned string, it's about the internal frozen string that is kept in the symbol table.
> ...
I already proposed it, but it was...
byroot (Jean Boussier)
06:22 AM Revision 4d6c35d3 (git): Fix test-all substitution
nobu (Nobuyoshi Nakada)
06:02 AM Revision 6ffef8d4 (git): Clean up temporary expired cert file
nobu (Nobuyoshi Nakada)
06:02 AM Revision 92dcee39 (git): Clean up temporary directory for racc
nobu (Nobuyoshi Nakada)
02:46 AM Revision eb043c88 (git): ${} does not work with nmake.exe
nobu (Nobuyoshi Nakada)
01:45 AM Bug #15969 (Closed): https://git.ruby-lang.org/ruby.git does not work?
Applied in changeset commit:git|0b858425e1e4f2de40dc0d8e5dd105a2fd93e478.
----------
Use GitHub ruby.git for make-snapshot
Previously @hsbt disabled https git clone from git.ruby-lang.org.
Using git.ruby-lang.org for non-commit purpos...
k0kubun (Takashi Kokubun)
01:40 AM Revision 0b858425 (git): Use GitHub ruby.git for make-snapshot
Previously @hsbt disabled https git clone from git.ruby-lang.org.
Using git.ruby-lang.org for non-commit purposes is discouraged. GitHub
mirror is actually recommended because it's reliable than single-hosted
git.ruby-lang.org, the mirr...
k0kubun (Takashi Kokubun)
12:56 AM Revision 7f3bc352 (git): Adjust jit_support file path.
hsbt (Hiroshi SHIBATA)
12:49 AM Revision c6a131da (git): Removed test-almost from TEST_TARGETS
nobu (Nobuyoshi Nakada)
12:45 AM Revision 6e7e0bf2 (git): Now test-almost equals to test-all
nobu (Nobuyoshi Nakada)
12:44 AM Revision 580b7600 (git): Substitute autoconf variables by prereq.status
nobu (Nobuyoshi Nakada)
12:43 AM Revision 832b5094 (git): with_different_ofs.rb has been moved too
nobu (Nobuyoshi Nakada)
12:37 AM Revision 83fed5a4 (git): Adjust minitest file path
nobu (Nobuyoshi Nakada)
12:35 AM Revision 934a3a92 (git): Prefer master rather than trunk in doc/contributing.rdoc [ci skip]
znz (Kazuhiro NISHIYAMA)
12:35 AM Revision 73923bf5 (git): [DOC] Add LibreSSL [ci skip]
znz (Kazuhiro NISHIYAMA)
12:31 AM Revision b7fdeedb (git): Renamed to get rid of name clash
nobu (Nobuyoshi Nakada)
12:26 AM Revision 5aed6245 (git): Adjust minitest file path
nobu (Nobuyoshi Nakada)
12:23 AM Revision 4adfd522 (git): Removed needless exclude option related testframework.
They are moved under the tool directory now. hsbt (Hiroshi SHIBATA)
12:19 AM Revision f47254d2 (git): colors file has been moved from test to tool
nobu (Nobuyoshi Nakada)
 

Also available in: Atom