Bug #16488
closed2.7 spews warnings about net/imap
Description
I just upgraded from 2.6.5 to 2.7.0. Some of my scripts are now emitting warnings that weren't there before. Eg., #16469.
Specifically in this report I want to complain that ruby 2.7 is issuing warnings about it's own net/imap library:
lib/ruby/2.7.0/Net/imap.rb:906: warning: Capturing the given block using Proc.new is deprecated; use &block
instead
Updated by mame (Yusuke Endoh) over 5 years ago
- Status changed from Open to Closed
Applied in changeset git|65c2c75e162ebc8c4b35b0823967eeb132c00749.
lib/net/imap.rb: use &blk
instead of Kernel#proc with no block
[Bug #16488]
Updated by mame (Yusuke Endoh) over 5 years ago
I've pushed https://github.com/ruby/ruby/commit/65c2c75e162ebc8c4b35b0823967eeb132c00749. Could you please check if the fix works for your program? Thanks!
Updated by nagachika (Tomoyuki Chikanaga) over 5 years ago
- Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN to 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: REQUIRED
Updated by chdiza (Charles Diza) over 5 years ago
That patch appears to have fixed the symptoms I see with Net/imap.
Updated by naruse (Yui NARUSE) about 5 years ago
- Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: REQUIRED to 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: DONE