Project

General

Profile

Activity

From 12/01/2019 to 12/07/2019

12/07/2019

11:35 PM Revision c38bc172 (git): Fix encoding of completed list
aycabta (aycabta .)
11:10 PM Revision 2eb67437 (git): * 2019-12-08 [ci skip]
git[bot]
11:01 PM Revision c9b06d4a (git): Add test_simple_completion for Readline
aycabta (aycabta .)
07:38 PM Feature #16374: Object#nullify to provide scalars with the effect similar to Enumerable#reject
This is an interesting idea. It is like a generalized version of Active Support's [`Object#presence`](https://api.rubyonrails.org/classes/Object.html#method-i-presence).
However, I agree that the name reads awkwardly. What about `O...
jonathanhefner (Jonathan Hefner)
07:21 PM Feature #16379: Backporting ... to Ruby 2.4 - 2.6 and pass_keywords
Eregon (Benoit Daloze) wrote:
> I've heard quite a few people saying that backporting `...` to Ruby 2.4-2.6 would be a good way to do migration for keyword arguments.
To me, as a gem maintainer, this sounds like the most appealing op...
jonathanhefner (Jonathan Hefner)
01:48 PM Bug #16406 (Closed): `(lambda_proc << normal_proc).lambda?` should return false
Consider:
```ruby
plus = proc { |a, b| a + b }
mult_two = ->(x) { x * 2 }
composed = mult_two << plus
p [composed. lambda?, composed.call([1, 2])]
```
I think this ought to print `[false, 6]` instead of `[true, 6]`, as the call ...
alanwu (Alan Wu)
01:02 PM Revision be13b897 (git): Show failed commits only when exists
aycabta (aycabta .)
12:56 PM Revision 0ff84eda (git): [ruby/irb] Version 1.2.0
https://github.com/ruby/irb/commit/da6577a88c aycabta (aycabta .)
12:56 PM Revision 2e595c2d (git): [ruby/irb] New IRB needs Ruby 2.5 or later
https://github.com/ruby/irb/commit/4be3158358 aycabta (aycabta .)
12:55 PM Revision ad6837dd (git): [ruby/irb] Revert "Reidline mode needs Reline what needs String#grapheme_clusters"
This reverts commit 2b0b19b87c60d2cdb329979acbb96e12a1f940e7.
New IRB parser needs new Ripper what has lex_state too. The new Ripper is
adopted by Ruby 2.5 or later.
https://github.com/ruby/irb/commit/9ab6e35a2c
aycabta (aycabta .)
11:01 AM Revision c2afddcc (git): [ruby/irb] Reidline mode needs Reline what needs String#grapheme_clusters
https://github.com/ruby/irb/commit/2b0b19b87c aycabta (aycabta .)
11:01 AM Revision e72ffc55 (git): [ruby/reline] Support Ruby 2.5 or later for String#grapheme_clusters
https://github.com/ruby/reline/commit/33e8c8f15b aycabta (aycabta .)
04:16 AM Revision ebbc7783 (git): test/ruby/test_file_exhaustive.rb: shorten the name of temporary dir
```
1) Error:
TestFileExhaustive#test_socket_p:
ArgumentError: too long unix socket path (109bytes given but 108bytes max)
/export/home/users/chkbuild/cb-sunc/tmp/build/20191207T024036Z/ruby/test/ruby/test_file_exhaustive.rb:155:in...
mame (Yusuke Endoh)
02:35 AM Feature #14922: Resolv getaddresses ignores AAAA records for IPv6
I was recently bit by this as well. The documentation at https://ruby-doc.org/stdlib-2.6.5/libdoc/resolv/rdoc/Resolv/DNS.html clearly states that getaddresses will return IPv6 addresses, but doesn't list any conditions. Based on this I... [email protected] (Sean Dilda)
12:19 AM Feature #14183: "Real" keyword argument
zverok (Victor Shepelev) wrote:
> The problem with blocks is indeed Array/Enumerable (and similar code). I am not sure how widespread this approach is, but in our production code (lots of small hashes, too many and to short-living to wr...
jeremyevans0 (Jeremy Evans)

12/06/2019

11:14 PM Feature #14183: "Real" keyword argument
> I think everyone agrees that keyword argument separation is disruptive, but it is no more disruptive to blocks than it is to method calls in general.
(inb4, I am obviously not saying "the change is bad, undo! undo!" Just trying to t...
zverok (Victor Shepelev)
10:59 PM Feature #14183: "Real" keyword argument
zverok (Victor Shepelev) wrote:
> So, there is no way to use block's keyword arguments to unpack a hash with symbol keys when passing it to the block?.. That's very disruptive change, this technique is super-useful when working with com...
jeremyevans0 (Jeremy Evans)
10:44 PM Feature #14183: "Real" keyword argument
So, there is no way to use block's keyword arguments to unpack a hash with symbol keys when passing it to the block?.. That's very disruptive change, this technique is super-useful when working with complex structured data :( zverok (Victor Shepelev)
09:26 PM Feature #14183: "Real" keyword argument
koic (Koichi ITO) wrote:
> I have a question because my understanding is not enough. A kwarg warning is displayed with the following code:
> ...
No. This is expected, as `ary = [foo: 'foo', bar: 'bar']` is short for `ary = [{foo: 'foo...
jeremyevans0 (Jeremy Evans)
09:13 PM Feature #14183: "Real" keyword argument
I have a question because my understanding is not enough. A kwarg warning is displayed with the following code:
```ruby
# example.rb
str = 'Hello, %<foo>s, %<bar>s'
ary = [foo: 'foo', bar: 'bar']
ary.each do |foo:, bar:|
form...
koic (Koichi ITO)
08:21 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
As I faced `stack level too deep (SystemStackError)` in `socket.rb:897` in `ip_address_list` on only the Travis ppc64le environment, I am debugging it with `strace` command on my forked repository enabling Travis ppc64le here.
https:/...
jaruga (Jun Aruga)
04:20 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
I found someone's pull-request adding s390x in Travis CI, and the result (Travis) is succeeded. Someone could you check and merge this?
Adding s390x support for Travis build
https://github.com/ruby/ruby/pull/2727
jaruga (Jun Aruga)
01:02 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
Thank you, Rei Odaira. I appreciate your work.
I can work to send a pull-request to add ppc64le and s390x cases to (Travis) CI.
However it's up to you. Feel free to take the task.
jaruga (Jun Aruga)
06:48 PM Bug #15856: Performance of redundant `Kernel.require` is slow when many gems are activated
I tracked it back to the initial commit in the ruby-spec repo:
https://github.com/ruby/spec/blob/6c1c34a6bbf28b55e59bc6a97a1211718082d3e7/1.8/core/kernel/require_spec.rb#L122-L126
That is from May 2008 and there's no history in git...
lamont (Lamont Granquist)
04:28 PM Revision dcf89b20 (git): * 2019-12-07 [ci skip]
git[bot]
04:27 PM Revision 544431e0 (git): Adding s390x support (#2727)
Namrata Bhave
03:54 PM Feature #16363 (Closed): Promote did_you_mean to default gem
jeremyevans0 (Jeremy Evans)
01:26 PM Feature #16363: Promote did_you_mean to default gem
I think we should go rather in opposite direction. Move all gems to "bundled" gems. Especially "did_you_mean" gem does not provide any benefit to **end user** of application and it should not be used in runtime. It is just perfectly fine... vo.x (Vit Ondruch)
01:34 PM Feature #16345: Don't emit deprecation warnings by default.
In the context of this ticket, I have to reference my proposal #16018: "Add a way to deprecate methods" vo.x (Vit Ondruch)
07:03 AM Revision 2f6a8baa (git): Test interfaces include localhost
When interfaces do not include localhost,
some other tests may fail.
znz (Kazuhiro NISHIYAMA)
03:28 AM Bug #16405: [BUG] Segmentation fault at 0x007ffeef650000
ありがとうございます。version upで対応して見ます nakoshi_noriaki (名越 仁昭)
03:14 AM Bug #16405: [BUG] Segmentation fault at 0x007ffeef650000
Rails も 4.0 と Ruby 同様にサポートされていないバージョンなので、5.2 ないし 6.0 で合わせて再現するかを確認することをお勧めします。 hsbt (Hiroshi SHIBATA)
03:12 AM Bug #16405 (Third Party's Issue): [BUG] Segmentation fault at 0x007ffeef650000
- まず2.1.1というのはずいぶん古いバージョンのrubyで、すでにこちらのサポートは切れているという状況です。最近のバージョンに更新するというのが教科書的なご対応になるかと思います。
- エラーを添付していただきありがとうございます。この出力によると問題はmysql2、あるいはそれが内部的に使っているライブラリ(libmysqlclient等)で発生しているようです。ruby本体の側でできることは少ないです。mysql2のバグとしてしかるべき場所に報告されると良い...
shyouhei (Shyouhei Urabe)
02:41 AM Bug #16405 (Third Party's Issue): [BUG] Segmentation fault at 0x007ffeef650000
RailsからMySQL接続するさいエラーが出ます。
Googleで調べてもわからなかったため、ご連絡差し上げた次第でございまう。
ご確認していただけると非常に助かります。
OS:Mac Catalia 1.15.1
ruby -v:ruby 2.1.10p492 (2016-04-01 revision 54464) [x86_64-darwin19.0]
rails -v :Rails 4.0.0
mysql --version:mysql Ver...
nakoshi_noriaki (名越 仁昭)
02:00 AM Bug #16402 (Third Party's Issue): UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
PikachuEXE (Pikachu Leung) wrote:
> Thanks for your answer
> ...
Well that's... complicated. There are lots of debates as to how to know network remote content's content type. Though not a direct answer, issue #2567 can be interestin...
shyouhei (Shyouhei Urabe)
01:29 AM Bug #16402: UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
Thanks for your answer
But I actually encounter this when processing text input from remote data source
And would not be using `File.read`
``` ruby
text = HTTPClient.new.get(
data_feed_url,
follow_redirect: true,
).tap do |r...
PikachuEXE (Pikachu EXE)

12/05/2019

11:54 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
I'm happy to work for ppc64le and s390x. In the last few years, the number of the platform-specific issues that showed up in ppc64le and s390x Ruby has been between 5 and 10 every year, so I assume the same pace for my obligation as a m... ReiOdaira (Rei Odaira)
05:17 AM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
Rei Odaira will work as best effort for both ppc64le and s390x.
https://twitter.com/ReiOdaira/status/1202383090611556353
So it's interesting to add them to CI.
naruse (Yui NARUSE)
09:37 PM Revision 2c8d186c (git): Introduce an "Inline IVAR cache" struct
This commit introduces an "inline ivar cache" struct. The reason we
need this is so compaction can differentiate from an ivar cache and a
regular inline cache. Regular inline caches contain references to
`VALUE` and ivar caches just co...
tenderlovemaking (Aaron Patterson)
07:20 PM Feature #16404 (Closed): Add Proc#ruby2_keywords
While the need is not as common as for methods, procs could benefit from supporting ruby2_keywords, and there are cases in Rails where keywords are passed through procs using a normal argument splat [1]. If we don't add this, such cases... jeremyevans0 (Jeremy Evans)
03:13 PM Revision 38b7f947 (git): * 2019-12-06 [ci skip]
git[bot]
03:12 PM Revision 693cba1a (git): Detect started threads when require only
znz (Kazuhiro NISHIYAMA)
03:12 PM Revision 173b8646 (git): Do not start thread when `require 'drb/drb'` only
znz (Kazuhiro NISHIYAMA)
02:46 PM Revision 6477d98e (git): test/lib/jit_support.rb: Update the regexp for icc
MJIT_CC is always an absolute path. mame (Yusuke Endoh)
01:51 PM Bug #16403 (Rejected): Unavailable protected methods through `Symbol#to_proc`
`Proc` by `Symbol#to_proc` calls the method on its argument in an isolated context, so the receiver does not exist. nobu (Nobuyoshi Nakada)
01:34 PM Bug #16403 (Rejected): Unavailable protected methods through `Symbol#to_proc`
Hello!
I've faced with a bug (I guess):
``` ruby
# protected.rb
# frozen_string_literal: true
class Foo
def initialize(text, *children)
@text = text
@children = children
end
def via_each
@children.red...
AlexWayfer (Alexander Popov)
01:37 PM Revision d43b9eb2 (git): lib/drb/drb.rb: suppress warning: instance variable @pool_proxy not initialized
mame (Yusuke Endoh)
01:24 PM Revision f4d9daf2 (git): coroutine/ucontext/Context.c: define __EXTENSIONS__ explicitly
instead of ruby/config.h, per samuel's request.
https://github.com/ruby/ruby/commit/dbfd4b780e3914a3f27e92c2248254452bf0fd6b#diff-7fd78c3cc8a19b7e0637502983ec26ff
mame (Yusuke Endoh)
09:23 AM Revision c3abbc1b (git): ext/openssl/extconf.rb: check with -Werror=deprecated-declarations
This reverts commit 0d7d8b2989e1738dd902d354cc41186899e6b71e,
but restore `$warnflags` without the flag, to get rid of using
deprecated functions.
nobu (Nobuyoshi Nakada)
09:18 AM Revision 4c88107c (git): Fix `warning: already initialized constant DidYouMean::VERSION`
```
.../gems/did_you_mean-1.3.1/lib/did_you_mean/version.rb:2: warning: already initialized constant DidYouMean::VERSION
.../lib/did_you_mean/version.rb:2: warning: previous definition of VERSION was here
```
znz (Kazuhiro NISHIYAMA)
08:57 AM Revision 75b64435 (git): ext/psych/extconf.rb: braced VPATH is for nmake only
nobu (Nobuyoshi Nakada)
07:56 AM Revision 0bca34dd (git): test/io/console/test_io_console.rb: add a memo for the mysterious hack
mame (Yusuke Endoh)
07:29 AM Revision 264d5aff (git): Change encoding of completion list...for more tests
aycabta (aycabta .)
06:57 AM Revision ee579200 (git): move an interrupt point.
`args_ptr` can be corrupted by interrupt handlers.
Pointed by nagachika <https://ruby-trunk-changes.hatenablog.com/entry/ruby_trunk_changes_20191204>.
ko1 (Koichi Sasada)
06:53 AM Revision b40bb27e (git): test/io/console/test_io_console.rb: Try the hack for Solaris
I'm not entirely sure why, but test_set_winsize_console gets stuck on
Solaris (and if I recall, macOS). I found a hack for FreeBSD, so I want
to give it a try on Solaris too.
mame (Yusuke Endoh)
06:25 AM Revision fa1db8f9 (git): Add missing dependency
https://travis-ci.org/ruby/ruby/jobs/620972117 k0kubun (Takashi Kokubun)
06:18 AM Revision 72cff5f3 (git): MJIT_CC and MJIT_SUPPORT are not a prefix
0b19e15a1239bff9ae854f522f954206ec910cf8 was also for "MJIT_SUPPORT"
too.
k0kubun (Takashi Kokubun)
06:16 AM Revision 5fbb4555 (git): Prefer using MJIT_CC for JIT support check
because Solaris might have CC=cc and we'd like to check full path
MJIT_CC=/opt/developerstudio12.5/bin/cc instead.
k0kubun (Takashi Kokubun)
06:05 AM Bug #16402 (Feedback): UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
I bet your locale setting is UTF-8? Hence the error message. You have to be explicit then. `File.read("u.txt", mode: "rb:bom|utf-16")` Would give you a correct String instance. shyouhei (Shyouhei Urabe)
05:58 AM Bug #16402 (Third Party's Issue): UTF-16LE BOM causing regex match to fail with "invalid byte sequence in UTF-8"
``` shell
$ ruby -e 'File.binwrite("u.txt", "\xff\xfe\x00\x01")'
$ file u.txt
u.txt: Little-endian UTF-16 Unicode text, with no line terminators
$ ruby -e 'p /\w+/.match?(File.read("u.txt"))'
Traceback (most recent call last):
1:...
PikachuEXE (Pikachu EXE)
05:51 AM Revision 199bd851 (git): parse.y: suppress "set but not used" warnings on ripper.y
mame (Yusuke Endoh)
05:47 AM Revision edb80dfe (git): add additional CF info for CI env
Introduce new RUBY_DEBUG option 'ci' to inform Ruby interpreter
that an interpreter is running on CI environment.
With this option, `rb_bug()` shows more information includes
method entry information, local variables information for eac...
ko1 (Koichi Sasada)
05:47 AM Revision c88afd53 (git): fix parameter
ko1 (Koichi Sasada)
05:45 AM Revision 0d7d8b29 (git): ext/openssl/extconf.rb: do not use -Werror=deprecated-declarations
It fails to build on Solaris:
```
ossl_cipher.c: 関数 ‘ossl_cipher_init’ 内:
ossl_cipher.c:228:2: エラー: ‘EVP_md5’ is deprecated [-Werror=deprecated-declarations]
228 | EVP_BytesToKey(EVP_CIPHER_CTX_cipher(ctx), EVP_md5(), iv,
| ^~...
mame (Yusuke Endoh)
05:17 AM Revision c0d118f4 (git): Fix "cannot find the function: strcpy()" error on arm32 on Travis CI. (#2686)
This issue happened when `libc.so` and `libm.so` path were not found
and `ldd ruby` command also failed to print the shared dependencies
in `test/fiddle/helper.rb`.
See https://travis-ci.org/ruby/ruby/jobs/611483288#L3018
/home/travis/b...
Jun Aruga
04:28 AM Revision ed5d032e (git): debug.rb: expand filenames in breakpoints
When debugging some local code, specifying a breakpoint to a local
filename does not work, i.e.
break lib/foo.rb:10
Expanding the filename makes it work. FWIW byebug has the same behavior.
terceiro (Antonio Terceiro)
04:06 AM Revision 20031f8b (git): Change encoding of completion list
aycabta (aycabta .)
03:49 AM Bug #16392: test-all failure Windows - TestEncoding#test_nonascii_library_path
I haven't found what's different between the MinGW CI in ruby/ruby and ruby-loco. The above shows a test that fails in ruby-loco, but passes in ruby/ruby.
But, commit df76f2c5 'Make TracePoint.stat a singleton method again (#2726)' f...
MSP-Greg (Greg L)
02:02 AM Bug #16399 (Closed): TracePoint.stat disappeared in Ruby-2.7.0-preview3
Applied in changeset commit:git|df76f2c577b6567b617be2df9451123cc450d1cc.
----------
Make TracePoint.stat a singleton method again (#2726)
[Bug #16399]
alanwu (Alan Wu)
02:02 AM Revision df76f2c5 (git): Make TracePoint.stat a singleton method again (#2726)
[Bug #16399] alanwu (Alan Wu)
01:05 AM Bug #10466 (Closed): rb_eval_string_wrap does not actually wrap in a module binding
Applied in changeset commit:git|e4db0443bcfc94f9183e8ea72fb4ab560aa005bf.
----------
Make rb_eval_string_wrap specify a cref so constant setting works correctly
Fixes [Bug #10466]
jeremyevans (Jeremy Evans)
01:04 AM Revision e4db0443 (git): Make rb_eval_string_wrap specify a cref so constant setting works correctly
Fixes [Bug #10466] jeremyevans (Jeremy Evans)
12:55 AM Revision 18d3b5a9 (git): Do not attempt to call methods on the receiver if it is a basic object
yuki24 (Yuki Nishijima)
12:44 AM Revision 88ee375d (git): Revert "Add debug option to check ci failures on solaris"
This reverts commit f289e3994bbc6560e2e4e5905b52c35c829c972d. znz (Kazuhiro NISHIYAMA)
12:10 AM Bug #16389: Unexpected tINTEGER in conditional expression
codinganarchy (Matthew Tanous) wrote:
> Just to clarify, if you don't mind, is this also due to the difference between `.>` (a method) and `>` (an operator)? I ask as `foo unless (@bar&.nil? && @baz > 15)` does not result in a syntax er...
nobu (Nobuyoshi Nakada)
12:03 AM Revision fbf10ed5 (git): * 2019-12-05 [ci skip]
git[bot]
12:02 AM Revision e3587ed8 (git): Support disable-completion
aycabta (aycabta .)
12:02 AM Revision ad8fbf44 (git): Fix variable catch
aycabta (aycabta .)

12/04/2019

11:32 PM Feature #16255: Make `monitor.rb` built-in
Thanks for your response! I understood the support policy. y-yagi (Yuji Yaginuma)
04:42 AM Feature #16255: Make `monitor.rb` built-in
I fixed `new_cond` before `mon_initialize` problem c6e3db0c66312af1e932c21006437419efa9ac75
> https://github.com/rails/rails/blob/461aae05f194f775e6367be9add4dda37746bd5c/activesupport/lib/active_support/concurrency/load_interlock_awa...
ko1 (Koichi Sasada)
09:10 PM Bug #16239: Crash when accessing postgresql-12
@jeremyevans0 is correct. This is a fatal interaction between the PostgreSQL 12 client libraries and the GSS implementation provided by macOS. This is being tracked in the pg gem at https://github.com/ged/ruby-pg/issues/311.
An immedi...
cbandy (Chris Bandy)
05:28 PM Bug #16331: fails to build with BSD make when any -j option is given (including -j 1)
Are there plan to merge this fix to ruby_2_6 branch? yasuhirokimura (Yasuhiro KIMURA)
05:11 PM Misc #16396: What is the reason for this behaviour of Find.find?
I can not say whether this is the case or not (I work only on Linux), also due to me
using Dir[] preferentially instead. With Dir[] I always make sure to have a trailing
'/' token if I wish to work with directories, and subdirectories,...
shevegen (Robert A. Heiler)
04:10 PM Bug #16389: Unexpected tINTEGER in conditional expression
mame (Yusuke Endoh) wrote:
> I don't think that your expectation is wrong, but due to parser limitation, we cannot place a non-parenthesized method call as an argument of `&&`. It is a good practice to write parentheses for method call...
codinganarchy (Matthew Tanous)
04:09 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
Yusuke Endoh, I've tested using the following code:
```ruby
loop do
break if rand < 0
break while true
next if rand < 0
break until false
return if rand < 0
break while true
raise if rand < 0
break until...
puchuu (Andrew Aladjev)
09:26 AM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
There is a workaround for everyone wants to use lines coverage only with 2.6.5 version (recommended by Jeremy Evans):
```ruby
# Workaround for https://bugs.ruby-lang.org/issues/15980
require "coverage"
Coverage.module_eval do
...
puchuu (Andrew Aladjev)
01:41 AM Bug #15980 (Closed): Coverage shows while/until after raise if/unless as uncovered line
Applied in changeset commit:git|f9e5c74cd24025a5aa19e318e8fecabf207f1b7b.
----------
compile.c: stop wrong peephole optimization when covearge is enabled
jump-jump optimization ignores the event flags of the jump instruction
being skip...
mame (Yusuke Endoh)
01:19 AM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
I talked with @ko1, and decide to introduce a stopgap measurement: stop the optimization in question only when coverage measurement is enabled. This is because this issue is critical in coverage measurement, but minor in TracePoint.
...
mame (Yusuke Endoh)
12:53 AM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
jeremyevans0 (Jeremy Evans) wrote:
> My idea for a hacky workaround: As the correct result is shown when branch coverage is enabled, always run with branch coverage enabled, even if the branch results will not be used.
This issue is ...
mame (Yusuke Endoh)
03:25 PM Bug #16400 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries
Ruby crashed while loading the mysql2 gem. You will probably want to report this to the mysql2 developers: https://github.com/brianmario/mysql2/issues. Be sure to check for existing issues when reporting, as from a brief look this may ... jeremyevans0 (Jeremy Evans)
09:34 AM Bug #16400 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries
913 /usr/local/rvm/gems/ruby-2.4.4@retailhq/gems/nokogiri-1.8.4/lib/nokogiri/html/element_description.rb
914 /usr/local/rvm/gems/ruby-2.4.4@retailhq/gems/nokogiri-1.8.4/lib/nokogiri/html/element_description_defaults.rb
915 /usr/l...
toddfox (Todd Kingsford)
02:19 PM Bug #16401 (Closed): [BACKPORT] Disable _FORTIFY_SOURCE on mingw
The latest version of mingw gcc on cygwin doesn't work with `_FORTIFY_SOURCE`.
The following commits need to be backported to build.
* a7b9f085ff952fcb18f82de39b3bf9ab7e5ba3e7
* 9165fcdfa309052a2adc3c6100ab24204de6c2d1
* e42d9d8df8...
nobu (Nobuyoshi Nakada)
12:55 PM Bug #16391 (Closed): Dir.pwd, Dir[] pathname case inconsistency
Applied in changeset commit:git|fb11e6089dbe9d995510977def038a21882bcffe.
----------
[DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip]
nobu (Nobuyoshi Nakada)
12:46 PM Bug #16391: Dir.pwd, Dir[] pathname case inconsistency
`Dir.pwd` returns `'C:/Users/...'`, not `'C:/users/...'` for me.
> Unfortunately, `File.fnmatch` seems to be case sensitive,
> ...
`File::Constants` has two constants for `File.fnmatch`
* `FNM_CASEFOLD`:
Makes `File.fnmatch` pa...
nobu (Nobuyoshi Nakada)
12:52 PM Revision fb11e608 (git): [DOC] Added File::FNM_SYSCASE example [Bug #16391] [ci skip]
nobu (Nobuyoshi Nakada)
11:59 AM Revision dbfd4b78 (git): coroutine/ucontext/Context.c: Include "ruby/config.h" for Solaris
getcontext, makecontext, and swapcontext seem to be available only when
`__EXTENSION__` is defined on Solaris.
mame (Yusuke Endoh)
11:57 AM Revision a0bc0e1b (git): Fix thread leak in drb
znz (Kazuhiro NISHIYAMA)
07:35 AM Bug #16399 (Closed): TracePoint.stat disappeared in Ruby-2.7.0-preview3
`TracePoint.stat` method that existed in Ruby 2.6 (including 2.7.0-preview2) no longer exists in Ruby 2.7.0-preview3, but instead, `TracePoint#stat` method that did not exist so far has been added.
Test Script:
```ruby
#!/usr/bin/...
TOKI.Yoshinori (仁謙 土岐)
06:52 AM Bug #16353: Backport 2a477e0e444de6344048101466fb9189b9defddc
ruby_2_5 r67829 merged revision(s) 2a477e0e444de6344048101466fb9189b9defddc. usa (Usaku NAKAMURA)
06:52 AM Revision dcc0a529 (git): merge revision(s) 2a477e0e444de6344048101466fb9189b9defddc: [Backport #16353]
test_ftp.rb: loosen timeout for Travis osx
https://travis-ci.org/ruby/ruby/jobs/454798071
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
git-svn-id: svn+ssh://ci.ruby-lang....
U.Nakamura
06:32 AM Revision 00bbdf44 (git): implement Range#count
As matz requested in [Bug #16366]. shyouhei (Shyouhei Urabe)
04:36 AM Revision c6e3db0c (git): new_cond before mon_initialize
MonitorMixin#new_cond can be called before mon_initialize, so we
need to initialize `@monitor` before it.
https://bugs.ruby-lang.org/issues/16255#note-4
ko1 (Koichi Sasada)
03:01 AM Bug #16382: SystemStackError thrown when running `LC_ALL="C" RUBYLIB=".:" ruby -E cp932:utf-8 aaa.rb` from where the current dir contains Japanese characters
same issue with 2.6.5 [x86_64-linux].
I think backport 2.6 is REQUIRED.
```
~/tmp/テスト$ echo "puts 'ok'" > aaa.rb
~/tmp/テスト$ ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
~/tmp/テスト$ LC_ALL="C" RUBYLIB=".:" ruby...
Tietew (Toru Iwase)
02:25 AM Bug #16398: Active Support unit test error since caac5f777ae288b5982708b8690e712e1cae0cf6
This is due to refactoring of `Monitor` class. Ref: https://bugs.ruby-lang.org/issues/16255#note-3 y-yagi (Yuji Yaginuma)
12:48 AM Bug #16398 (Closed): Active Support unit test error since caac5f777ae288b5982708b8690e712e1cae0cf6
This issue has been originally reported at https://github.com/rails/rails/issues/37676 . According to git bisect of ruby repository, this error reproduces since https://github.com/ruby/ruby/commit/caac5f777ae288b5982708b8690e712e1cae0cf6... yahonda (Yasuo Honda)
01:41 AM Bug #16397 (Closed): Line coverage is broken for until and while after guard clause
Applied in changeset commit:git|f9e5c74cd24025a5aa19e318e8fecabf207f1b7b.
----------
compile.c: stop wrong peephole optimization when covearge is enabled
jump-jump optimization ignores the event flags of the jump instruction
being skip...
mame (Yusuke Endoh)
01:40 AM Revision f9e5c74c (git): compile.c: stop wrong peephole optimization when covearge is enabled
jump-jump optimization ignores the event flags of the jump instruction
being skipped, which leads to overlook of line events.
This changeset stops the wrong optimization when coverage measurement is
neabled and when the jump instruction...
mame (Yusuke Endoh)
01:10 AM Revision 5a404efd (git): [ruby/io-console] Fixed `intr: false` mode on Windows
https://github.com/ruby/io-console/commit/4c172c01aa nobu (Nobuyoshi Nakada)
01:06 AM Bug #16339 (Closed): Forwardable#def_delegator warns and is incorrect on trunk when passed keyword arguments
Fixed by commit:9fa0166a580e72adf02562b7d60672c6c362d4b7. jeremyevans0 (Jeremy Evans)
01:04 AM Bug #15188 (Closed): Incorrect warning "assigned but unused variable" when using ripper with $VERBOSE = true
Applied in changeset commit:git|447d583536274a2489efc8792653ad35d6f7128a.
----------
Silence incorrect assigned but unused variable warnings in ripper
To only emit the warnings in correct cases would require tracking
local variable usa...
jeremyevans (Jeremy Evans)
01:04 AM Revision 447d5835 (git): Silence incorrect assigned but unused variable warnings in ripper
To only emit the warnings in correct cases would require tracking
local variable usage in ripper, which ripper currently does not do.
Fixes [Bug #15188]
jeremyevans (Jeremy Evans)
12:48 AM Bug #16383: TracePoint does not report calls to attribute reader methods
I'm not sure if skipping tracing for these methods is on purpose for performance reasons or not, but I agree it would be useful to be able to trace such method calls. Attached is a patch that implements tracing for `attr_reader`/`attr_w... jeremyevans0 (Jeremy Evans)

12/03/2019

11:59 PM Misc #16393: DevelopersMeeting20191220Japan
* [Feature #14183] "Real" keyword argument (jeremyevans0)
* Is it OK to merge branch to remove deprecated support for positional hash <-> keyword conversion after 2.7 released?
* [Bug #11022] opening an eigenclass does not change the...
jeremyevans0 (Jeremy Evans)
12:04 PM Misc #16393: DevelopersMeeting20191220Japan
**NOTE: Please follow the comment format strictly!**
I've created a script to automatically create an markdown-style agenda.
https://gist.github.com/mame/b0390509ce1491b43610b9ebb665eb86
We may ignore a comment that violates the...
mame (Yusuke Endoh)
10:40 AM Misc #16393: DevelopersMeeting20191220Japan
* [Bug #6087] How should inherited methods deal with return values of their own subclass? (mame)
* Matz said "We will fix this (to consistently return Arrays) in 3.0." seven years ago. Now is the time. Final confirmation.
mame (Yusuke Endoh)
10:34 AM Misc #16393: DevelopersMeeting20191220Japan
Carry over:
* [Feature #16264] Real "callable instance method" object. .:method to be a first-class thing, instead of Symbol#to_proc trick (zverok)
* This proposal would make sense only if .: would not be reverted (which, to the be...
mame (Yusuke Endoh)
10:33 AM Misc #16393 (Closed): DevelopersMeeting20191220Japan
Please comment on your favorite ticket numbers you want to ask to discuss with your *SHORT* comment or summary.
(your summary/comment will help us because we don't need to read all of the ticket comments)
*DO NOT* discuss then on thi...
mame (Yusuke Endoh)
11:45 PM Feature #14183: "Real" keyword argument
Shortly after the release of 2.7.0, I would like to merge the branch at https://github.com/jeremyevans/ruby/tree/r3, which fully separates positional and keyword arguments. I've been maintaining this branch for a couple months now and u... jeremyevans0 (Jeremy Evans)
10:02 AM Feature #14183: "Real" keyword argument
I've written a draft of a note about this change in https://github.com/ruby/www.ruby-lang.org/pull/2293. mame (Yusuke Endoh)
11:35 PM Bug #15629 (Closed): super_method fails on binded/unbinded/cloned methods
Applied in changeset commit:git|a91637c516779d9ecee5f323e211f0ed71eb06ad.
----------
Make {Method,UnboundMethod}#super_method handle clone/bind/unbind
This wasn't working previously because the iclass entry wasn't
being copied, and wit...
jeremyevans (Jeremy Evans)
11:35 PM Revision a91637c5 (git): Make {Method,UnboundMethod}#super_method handle clone/bind/unbind
This wasn't working previously because the iclass entry wasn't
being copied, and without an iclass entry, super_method returns
nil.
Fixes [Bug #15629]
jeremyevans (Jeremy Evans)
11:22 PM Revision f9754f0e (git): compile.c: trivial refactoring
Use `for` instead of `while` to make it explicit that it is a traverse
of bytecode.
mame (Yusuke Endoh)
10:44 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
mame (Yusuke Endoh) wrote:
> I think of some options to fix:
> ...
My idea for a hacky workaround: As the correct result is shown when branch coverage is enabled, always run with branch coverage enabled, even if the branch results will...
jeremyevans0 (Jeremy Evans)
10:32 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
Oops, I overlooked this issue. Sorry.
This is a tough problem. The compiler produces the following code:
```
0006 branchunless 13
...
0013 jump 17 (Line 2)
...
0017 putnil (Line 3)
```
The peephole opt...
mame (Yusuke Endoh)
10:05 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
Hello. This thing affects both `return`, `break` and `raise` guard clauses. I want to insist on covering this issue with tests, `test_line_coverage_for_multiple_lines` is too weak. I will try to prepare tests.
Unfortunately this bug w...
puchuu (Andrew Aladjev)
10:38 PM Bug #14119: IPAddr#include? does not seem to support the subnet mask
As ipaddr has been moved to a gem, I have submitted a pull request for this: https://github.com/ruby/ipaddr/pull/22 jeremyevans0 (Jeremy Evans)
09:43 PM Bug #16397 (Closed): Line coverage is broken for until and while after guard clause
Hello. I was working on [ruby gem](https://github.com/andrew-aladev/ruby-zstds) and received a bug with [simplecov](https://github.com/colszowka/simplecov/issues/764). See the following [coverage report](https://codecov.io/gh/andrew-alad... puchuu (Andrew Aladjev)
09:41 PM Feature #13083 (Closed): Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
Applied in changeset commit:git|8852fa876039ed177fd5e867f36177d8a9ff411c.
----------
Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"
This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf.
Revert [Fea...
naruse (Yui NARUSE)
01:34 PM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
It's not my intention to suffer users. Let's cancel the change.
Matz.
matz (Yukihiro Matsumoto)
08:57 AM Feature #13083: Regexp#{match,match?} with a nil argument are deprecated and will raise a TypeError in Ruby 3.0
Eregon (Benoit Daloze) wrote:
> > I believe many of us have got used to the original behavior, that is, methods of a Regexp object work permissively and accept nil, and we know we've migrated many pieces of code from `/re/ =~ nilable` /...
naruse (Yui NARUSE)
09:40 PM Revision 8852fa87 (git): Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"
This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf.
Revert [Feature #13083]
naruse (Yui NARUSE)
09:40 PM Revision 08074eb7 (git): Revert "Revert nil error and adding deprecation message"
This reverts commit 452bee3ee8d68059fabd9b1c7a75661b14e3933e. naruse (Yui NARUSE)
09:40 PM Revision a705f647 (git): Revert "Improve warning message"
This reverts commit 31110d820cc1258cbc84b46ecc65b254c7d5529a. naruse (Yui NARUSE)
09:40 PM Revision 34a66b1f (git): Revert "Fix warnings in Regexp#{match,match?} specs"
This reverts commit 782d1b8fb0a039cedef9ad9c94f432dad51901e6. naruse (Yui NARUSE)
09:18 PM Bug #15613 (Closed): Enumerator::Chain#each doesn't relay block signature
Applied in changeset commit:git|a029b54ec716812ade37fef1f857c49f821a8cc8.
----------
Make Enumerator::Chain#each treat lambdas as lambda
Previously, lambdas were converted to procs because of how
rb_block_call works. Switch to rb_func...
jeremyevans (Jeremy Evans)
09:18 PM Revision a029b54e (git): Make Enumerator::Chain#each treat lambdas as lambda
Previously, lambdas were converted to procs because of how
rb_block_call works. Switch to rb_funcall_with_block, which
handles procs as procs and lambdas as lambdas.
Fixes [Bug #15613]
jeremyevans (Jeremy Evans)
03:58 PM Bug #10495 (Closed): Attaching lldb to a program running `sleep` hangs the VM
I tried the process on Ubuntu, but I couldn't reproduce the issue. Maybe it is already fixed? Tentatively closing. Let me know if you still see the issue.
AFAIK there is no committer that daily uses `lldb` for ruby. Contribution i...
mame (Yusuke Endoh)
03:44 PM Bug #10453 (Rejected): NUM2CHR() does not perform additional bounds checks
See #15460. `String#setbyte` has accepted not only 0..255 but also any integers. Once it had been limited only to 0..255, but it caused a compatibility issue, and eventually was reverted.
I don't think that this is a good idea in te...
mame (Yusuke Endoh)
03:38 PM Bug #16394 (Third Party's Issue): libmysqlclient20 5.7.28-0ubuntu0.18.04.4 causes segmentation fault
This happens while loading the mysql2 gem:
```
/opt/chef/embedded/lib/libruby.so.2.3(sigsegv+0x3e) [0x7f4ad936d22e] signal.c:890
/lib/x86_64-linux-gnu/libc.so.6 [0x7f4ad8e58f20]
/lib/x86_64-linux-gnu/libc.so.6 [0x7f4ad8f83d76]
/op...
jeremyevans0 (Jeremy Evans)
10:51 AM Bug #16394: libmysqlclient20 5.7.28-0ubuntu0.18.04.4 causes segmentation fault
duthmanek (Tim Dithmer) wrote:
> OS: Ubuntu 18.04
> ...
Gem Versions:
mysql (2.9.1)
mysql2 (0.5.2)
duthmanek (Tim Dithmer)
10:49 AM Bug #16394 (Third Party's Issue): libmysqlclient20 5.7.28-0ubuntu0.18.04.4 causes segmentation fault
OS: Ubuntu 18.04
Update from libmysqlclient20 to 5.7.28-0ubuntu0.18.04.4 causes segmentation fault while using mysql- and mysql2-gem.
Stacktrace is in attached log
duthmanek (Tim Dithmer)
03:32 PM Bug #11055 (Closed): autoload resets private_constant
Applied in changeset commit:git|47c97e1e843159c3c4d57f8c5e22daea57c3ffe1.
----------
Do not lose existing constant visibility when autoloading
This copies the private/deprecate constant visibility across the
autoload. It still is back...
jeremyevans (Jeremy Evans)
03:31 PM Revision 47c97e1e (git): Do not lose existing constant visibility when autoloading
This copies the private/deprecate constant visibility across the
autoload. It still is backwards compatible with setting the
private/deprecate constant visibility in the autoloaded file.
However, if you explicitly set public constant in...
jeremyevans (Jeremy Evans)
03:28 PM Bug #13688 (Closed): Thread overflow hangs ruby (not responding ^C)
Applied in changeset commit:git|5c2c3966851ed074eb468ad36d8d75e53b8eab6c.
----------
Check interrupts before starting thread
Fixes a hang when Thread.new calls Thread.new in a loop.
Fixes [Bug #13688]
jeremyevans (Jeremy Evans)
03:27 PM Revision b96d559c (git): * 2019-12-04 [ci skip]
git[bot]
03:27 PM Revision 5c2c3966 (git): Check interrupts before starting thread
Fixes a hang when Thread.new calls Thread.new in a loop.
Fixes [Bug #13688]
jeremyevans (Jeremy Evans)
03:25 PM Bug #10250 (Rejected): User-Agent HTTP header not being set on CONNECT requests
I think that this is not a bug, but a request for a feature to set HTTP headers for a proxy server instead of endpoint.
My survey:
* golang has a dedicated API, ProxyConnectHeader, to specify HTTP headers for a proxy server: https:...
mame (Yusuke Endoh)
03:09 PM Bug #16265: Test (spec) failure using current MSYS2 tools, related to -fstack-protector and possibly D_FORTIFY_SOURCE=2
PR https://github.com/ruby/ruby/pull/2718 shows this issue, and also properly updates MSYS2/MinGW gcc. MSP-Greg (Greg L)
01:52 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
shyouhei (Shyouhei Urabe) wrote:
> Hello. It is definitely a good idea to enhance our CI. But that alone does not improve the code quality. We need someone to fix issues.
> ...
Hello. I agree with it.
Someone, do you have any ide...
jaruga (Jun Aruga)
01:26 PM Bug #16395: .any? and .all? methods, flawed.
> The dynamics of the script is simple, no explanations needed, look for yourselves:
I do not think that this can be a useful issue description because there may be
secondary aspect to consider for when requesting changes, including ...
shevegen (Robert A. Heiler)
12:21 PM Bug #16395 (Rejected): .any? and .all? methods, flawed.
@Hanmac is right.
```
ary = [1, 2, 3, 4, 5]
result = ary.any? {|n| p n; n == 3 } #=> 1, 2, 3
p result #=> true
result = ary.all? {|n| p n; n != 3 } #=> 1, 2, 3
p result #=> false
```
You may want to use `each` instead of ...
mame (Yusuke Endoh)
12:10 PM Bug #16395: .any? and .all? methods, flawed.
your problem is that `.any?` and `.all?` wants a value returned for the block which is truly or falsely
puts returns nil which is falsely, in the second example count += 1 returns an integer which is truly
EDIT: it looks like yo...
Hanmac (Hans Mackowiak)
12:01 PM Bug #16395 (Rejected): .any? and .all? methods, flawed.
The dynamics of the script is simple, no explanations needed, look for yourselves:
``` ruby
# 100E1 312A3 8B64 282F C4A B28F
result = '99E2E403100E1A685A63312A308B6478282F2B2C4A34B28F7E'
virus = ['100E1',...
stiuna (Juan Gregorio)
01:03 PM Misc #16396 (Open): What is the reason for this behaviour of Find.find?
When I have a script at `D:\Downloads\Ruby 2.5.3\rbL\comp\codeShort.rb` with few other files in the same folder, the following searches only the folder where the `.rb` script is located:
``` ruby
Find.find('D:')
```
When I have a...
stiuna (Juan Gregorio)
10:50 AM Revision 7f2cd2ae (git): fix typo
kosaki (Motohiro KOSAKI)
08:56 AM Revision a1f98cd4 (git): vm_args.c: make the keyword deprecation message helpful
```
$ ./miniruby -e 'def foo(kw: 1); end; h = {kw: 1}; foo(h)'
-e:1: warning: The last argument is used as the keyword parameter
-e:1: warning: for `foo' defined here; maybe ** should be added to the call?
```
mame (Yusuke Endoh)
08:27 AM Bug #5577: test/testunit/test_parallel.rb causes NoMethodError when file descriptor is limited to 30.
いまmacOSで試してみましたが、特に刺さるようなことはありませんでした。閉じておきます。 mame (Yusuke Endoh)
08:26 AM Bug #5577 (Closed): test/testunit/test_parallel.rb causes NoMethodError when file descriptor is limited to 30.
Applied in changeset commit:git|409e4ab740de3852c3667217bcf41b55040f638f.
----------
tool/lib/test/unit/parallel.rb: fail explicitly when failing to get io
`(ulimit -n 30; make test-tool)` fails with unexplicit message:
"undefined meth...
mame (Yusuke Endoh)
08:26 AM Revision 409e4ab7 (git): tool/lib/test/unit/parallel.rb: fail explicitly when failing to get io
`(ulimit -n 30; make test-tool)` fails with unexplicit message:
"undefined method `write' for nil:NilClass" due to lack of stdout.
This change makes it explicit. [Bug #5577]
mame (Yusuke Endoh)
05:51 AM Revision e42d9d8d (git): Fixed the inverted condition
nobu (Nobuyoshi Nakada)
05:46 AM Revision 9165fcdf (git): Wrap statements in AS_IF properly
nobu (Nobuyoshi Nakada)
05:40 AM Feature #16374: Object#nullify to provide scalars with the effect similar to Enumerable#reject
I think I've proposed `Object#not` (and `Object#!`) for this purpose. nobu (Nobuyoshi Nakada)
05:16 AM Feature #16374: Object#nullify to provide scalars with the effect similar to Enumerable#reject
IMO, `[1, 2].nullify(&:empty?)&.then(&:join)` is just cryptic.
BTW, why do you write `&.then(&:join)`? I'm afraid you have been corrupted by `&:sym`.
mame (Yusuke Endoh)
04:25 AM Bug #16392 (Closed): test-all failure Windows - TestEncoding#test_nonascii_library_path
ruby-loco build failed, so ran the test locally using runner.rb. Failed on both of the below builds. The new test is valid, but the fix in 14a17063a1 doesn't seem to be working...
```
ruby 2.7.0dev (2019-12-02T23:51:50Z master 14a1...
MSP-Greg (Greg L)
04:02 AM Revision 027e847c (git): Fix auto-indent behavior correctly
aycabta (aycabta .)
01:16 AM Bug #16382 (Closed): SystemStackError thrown when running `LC_ALL="C" RUBYLIB=".:" ruby -E cp932:utf-8 aaa.rb` from where the current dir contains Japanese characters
Applied in changeset commit:git|14a17063a11a01d518b4bbaf0eb967330aec3984.
----------
Fixed stack overflow [Bug #16382]
Get rid of infinite recursion in expanding a load path to the real
path while loading a transcoder.
nobu (Nobuyoshi Nakada)
12:36 AM Bug #16389 (Rejected): Unexpected tINTEGER in conditional expression
mame (Yusuke Endoh)
12:14 AM Bug #16389 (Closed): Unexpected tINTEGER in conditional expression
You need to parenthesize the argument 15.
```
foo unless (@bar&.nil? && @baz&.>(15))
```
I don't think that your expectation is wrong, but due to parser limitation, we cannot place a non-parenthesized method call as an argument o...
mame (Yusuke Endoh)

12/02/2019

11:51 PM Revision 14a17063 (git): Fixed stack overflow [Bug #16382]
Get rid of infinite recursion in expanding a load path to the real
path while loading a transcoder.
nobu (Nobuyoshi Nakada)
11:02 PM Revision 8bddf1bc (git): mjit.c: fix a mismatch of malloc'ed type
Coverity Scan found this issue. mame (Yusuke Endoh)
09:20 PM Feature #12928: Use socket conect_timeout in net stdlib for open_timeout
It looks like we can now use the `resolv_timeout` `Socket.tcp` option that was recently added by https://bugs.ruby-lang.org/projects/ruby-trunk/repository/git/revisions/0e9d56f5e73ed2fd8e7c858fdea7b7d5b905bb64.
The only complication w...
dylants (Dylan Thacker-Smith)
08:23 PM Revision 424ad9a4 (git): Make more attempts to check for the precision of Process.times
* Process.clock_getres specs use 10_000 but that's quite slow for
the Process.times spec.
Eregon (Benoit Daloze)
06:33 PM Bug #16391 (Closed): Dir.pwd, Dir[] pathname case inconsistency
Directory globbing case sensitivity is os-dependent
(https://ruby-doc.org/core-2.6.5/Dir.html, glob,
"Case sensitivity depends on your system");
On Windows 10, directory globbing is case insensitive,
and may return glob matches that ...
dbuck (Dave Buck)
04:41 PM Revision c688487f (git): * 2019-12-03 [ci skip]
git[bot]
04:39 PM Revision a9256013 (git): Support incremental search by last determined word
In the incremental search by C-r, search word is saved when it's determined. In
the next incremental search by C-r, if a user presses C-r again with the empty
search word, the determined previous search word is used to search.
aycabta (aycabta .)
04:39 PM Revision bce38f70 (git): The C-r in vi command mode is also incremental search
aycabta (aycabta .)
04:37 PM Bug #16390 (Third Party's Issue): Crash report for ruby2.6.4p104
This crash happens inside the pg gem. It's either caused by the pg gem, libpq (PostgreSQL), or one of the internal Mac OS libraries listed.
```
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff6e865b1d]
/usr/lib/syste...
jeremyevans0 (Jeremy Evans)
04:21 PM Bug #16390 (Third Party's Issue): Crash report for ruby2.6.4p104
Hello, Ruby 2.6.4 just crashed for me while using [the apartment gem](https://github.com/influitive/apartment) to switch postgres search paths in Rails.
Attached is the console output in `crash-console-output.txt`, as well as the cras...
codinganarchy (Matthew Tanous)
03:55 PM Feature #16166: Remove exceptional treatment of *foo when it is the sole block parameter
Eregon (Benoit Daloze) wrote:
> The `*rest` parameter will not splat either, or it would delegate arguments incorrectly.
Thanks! Finally I can see some meaning behind the madness. Normally I would expect `proc{ |*a| }.call([1,2])` to...
Dan0042 (Daniel DeLorme)
03:44 PM Bug #16385 (Third Party's Issue): Segmentation fault when running a rails app with puma
This crash happens inside the pg gem. It's either caused by the pg gem, libpq (PostgreSQL), or one of the internal Mac OS libraries listed.
```
3 libsystem_platform.dylib 0x00007fff64d62b1d _sigtramp + 29
4 libdispatc...
jeremyevans0 (Jeremy Evans)
01:30 PM Bug #16385 (Third Party's Issue): Segmentation fault when running a rails app with puma
got a new machine and after reinstalling a dev env, i cannot run locally a functional rails app
seems to be linked to puma since the app can be booted and the database can be accessed from the rails console.
If somebody more competen...
itkin (nicolas paon)
03:33 PM Bug #16389 (Rejected): Unexpected tINTEGER in conditional expression
I'm not sure that this is a bug, or simply an unexpected result of operator precedence, but I am seeing a result that appears to me to be an issue.
When putting a conditional expression after a command call using `unless`, I am seeing...
codinganarchy (Matthew Tanous)
08:17 AM Revision a47d6c25 (git): Fix random failure on getusage-missing environments
`* 1e6` makes a spurious result about floating point number's precision.
```
irb(main)[01:0]> 16.028
=> 16.028
irb(main)[02:0]> (16.028 * 1e6)
=> 16027999.999999998
```
k0kubun (Takashi Kokubun)
07:25 AM Revision 1a88adcd (git): Fix Leaked file descriptor in test/did_you_mean
https://github.com/ruby/ruby/commit/de74d2c3b0005048a2c4433bde68b9be10c86f01/checks?check_suite_id=336910877#step:19:131
```
Leaked file descriptor: NameErrorExtensionTest#test_correctable_error_objects_are_dumpable: 7 : #<File:test_name...
znz (Kazuhiro NISHIYAMA)
07:23 AM Revision 185f7608 (git): Debug random failure of ruby-spec on ci.rvm.jp
k0kubun (Takashi Kokubun)
05:15 AM Revision 9afaf139 (git): Revert "builtin_binary.inc needs miniruby itself for RubyVM.each_builtin"
This reverts commit 2615030c521afc822c66a7e139ccba3d2365ab56,
which doesn't work when cross compiling, except for mingw.
nobu (Nobuyoshi Nakada)
05:03 AM Revision 2615030c (git): builtin_binary.inc needs miniruby itself for RubyVM.each_builtin
nobu (Nobuyoshi Nakada)
04:20 AM Revision a7b9f085 (git): Disable _FORTIFY_SOURCE on mingw for now
It causes a link error due to some `__*_chk` functions on mingw. nobu (Nobuyoshi Nakada)
04:17 AM Revision b1c92363 (git): Wait for the main thread to start reading by Queue
Otherwise, the written data to pty before the reading started may
be just lost.
nobu (Nobuyoshi Nakada)
01:32 AM Revision de74d2c3 (git): Simplify variable declaration by C99
k0kubun (Takashi Kokubun)
12:41 AM Bug #15460: Behaviour of String#setbyte changed
On the 2.6 branch, this causes a declaration-after-statement warning. nobu (Nobuyoshi Nakada)

12/01/2019

11:13 PM Feature #16255: Make `monitor.rb` built-in
> The latest google-cloud-pubsub breaks too because new_cond comes before initialization:
Rails encountered the same issue(related to https://github.com/rails/rails/pull/37822).
The error and backtrace of in this case are as follow...
y-yagi (Yuji Yaginuma)
10:53 AM Feature #16255: Make `monitor.rb` built-in
Could you share the error and backtrace in both of these cases? Eregon (Benoit Daloze)
08:35 AM Feature #16255: Make `monitor.rb` built-in
The latest `google-cloud-pubsub` breaks too because `new_cond` comes before initialization: https://github.com/googleapis/google-cloud-ruby/blob/google-cloud-pubsub/v1.1.2/google-cloud-pubsub/lib/google/cloud/pubsub/async_publisher.rb#L9... qnighy (Masaki Hara)
05:20 AM Feature #16255: Make `monitor.rb` built-in
This change breaks the library that extends `Monitor` class.
For example, Rails has such class and it breaks in Ruby 2.7.
https://github.com/rails/rails/blob/461aae05f194f775e6367be9add4dda37746bd5c/activesupport/lib/active_support/c...
y-yagi (Yuji Yaginuma)
07:18 PM Revision 103b0412 (git): Support incremental search again by C-r in incremental search
aycabta (aycabta .)
06:53 PM Revision b3ea0980 (git): Check MJIT support in one place
to fix test failure on trunk-no-mjit
https://gist.github.com/ko1/32ab982ffd7555988818773c08f97123
k0kubun (Takashi Kokubun)
06:51 PM Revision 6bc8b4d8 (git): Skip --jit-debug= test on mswin
it fails like
https://ci.appveyor.com/project/ruby/ruby/builds/29235837/job/v0apdjj4qx8afars
k0kubun (Takashi Kokubun)
06:30 PM Revision c7f05310 (git): Process Backspace key in incremental search correctly
aycabta (aycabta .)
06:09 PM Revision e15b0313 (git): Search history to back in the middle of histories
aycabta (aycabta .)
04:34 PM Revision 4d7a6d04 (git): Avoid unnecessary tzset() call
Akatsuki reported ENV['TZ'] = 'UTC' improved 7x-8x faster on following code.
t = Time.now; 100000.times { Time.new(2019) }; Time.now - t
https://hackerslab.aktsk.jp/2019/12/01/141551
commit 4bc1669127(reduce tzset) dramatically improved...
kosaki (Motohiro KOSAKI)
03:05 PM Revision 43811cc3 (git): * 2019-12-02 [ci skip]
git[bot]
03:03 PM Revision 7f0d5170 (git): Remove obsolete code
aycabta (aycabta .)
02:54 PM Revision 8cb3f29a (git): The ed_search_prev_history should always search to backward
aycabta (aycabta .)
02:54 PM Revision f1cfc7da (git): Reline::HISTORY can take Range object
aycabta (aycabta .)
01:11 PM Revision 617a3735 (git): Update to ruby/spec@dcf4955
Eregon (Benoit Daloze)
01:11 PM Revision 60d362b0 (git): Update to ruby/mspec@aa28e95
Eregon (Benoit Daloze)
12:55 PM Revision ab516e26 (git): [ruby/spec] Fix failures with LC_ALL=C
https://github.com/ruby/spec/commit/51047687c0
https://github.com/ruby/spec/commit/2b87b467cc
nobu (Nobuyoshi Nakada)
11:26 AM Revision 4e03a729 (git): Constified mjit_init
nobu (Nobuyoshi Nakada)
11:13 AM Feature #9602: Logic with `Enumerable#grep`
I agree with sawa's opinion. `Enumerable#grep` and other methods using `===` internally should accept more than one arguments, following `when` conditions.
Yukihiro Matsumoto wrote:
> We should use #select for more complex filtering...
msnm (Masahiro Nomoto)
10:29 AM Revision cb760f36 (git): Constified
nobu (Nobuyoshi Nakada)
10:00 AM Revision 91af5542 (git): Fix a mistake excluding NULL in the end
k0kubun (Takashi Kokubun)
09:35 AM Revision 8a677a6e (git): Workaround missing strndup on Windows
https://ci.appveyor.com/project/ruby/ruby/builds/29230976/job/c910t37313edb97k k0kubun (Takashi Kokubun)
09:25 AM Revision 3e2753ad (git): Use build dir for testing --jit-debug
to fix failure like https://github.com/ruby/ruby/runs/327745536 k0kubun (Takashi Kokubun)
08:58 AM Revision a19d625e (git): Allow specifying arbitrary MJIT flags by --jit-debug
This is a secret feature for me. It's only for testing and any behavior
with this flag override is unsupported.
I needed this because I sometimes want to add debug options but do not
want to disable optimizations, for using Linux perf.
k0kubun (Takashi Kokubun)
08:43 AM Feature #15563: #dig that throws an exception if a key doesn't exist
matz (Yukihiro Matsumoto) wrote:
> I am against `dig!` for this purpose. When we have two versions of a method (`foo` and `foo!`), the bang version should be more dangerous than the non-bang version. `dig!` is not the case.
> ...
I thi...
amcaplan (Ariel Caplan)
08:40 AM Feature #16095 (Rejected): 2 Features: remove (simplify) 'new' keyword and Property Shorthand
One of the requests is a duplicate of an already rejected request. nobu (Nobuyoshi Nakada)
07:58 AM Feature #16095: 2 Features: remove (simplify) 'new' keyword and Property Shorthand
Please, do not mix requests for multiple unrelated features in one feature request. It makes it impossible to properly address them. For example, what should happen with this feature request if one feature gets accepted and one gets reje... jwmittag (Jörg W Mittag)
05:38 AM Revision bdc62dfc (git): Fixed type of an index variable
nobu (Nobuyoshi Nakada)
04:26 AM Revision 9914d6e9 (git): Relax test strictness for error message from KeyError
yuki24 (Yuki Nishijima)
03:29 AM Revision cc7455dd (git): Relax test requirements for DYM's verbose formatter
yuki24 (Yuki Nishijima)
03:24 AM Revision 56faa13a (git): remove spaces to pass a test.
23d7f4c5e1ce164e78d77de694dccc0c41f6de3d breaks a test which expect
to match error message. To avoid this failure, use #strip for expect
and actual results.
ko1 (Koichi Sasada)
02:08 AM Revision 23d7f4c5 (git): * remove trailing spaces. [ci skip]
git[bot]
02:08 AM Revision 0fef5266 (git): Do not call 'gem "did_you_mean"' for now
This will slow down the time that the +require+ method takes to load DYM,
but this has caused a build failure in a certain situation:
https://ci.appveyor.com/project/ruby/ruby/builds/29214253/job/r9u9c8p95tnlftt3#L24965
which is repo...
yuki24 (Yuki Nishijima)
02:08 AM Revision 171803d5 (git): Promote did_you_mean to default gem
At the moment, there are some problems with regard to bundler + did_you_mean because of did_you_mean being a bundled gem. Since the vendored version of thor inside bundler and ruby itself explicitly requires did_you_mean, it can become d... Kevin Deisz
 

Also available in: Atom