Project

General

Profile

Actions

Bug #16488

closed

2.7 spews warnings about net/imap

Added by chdiza (Charles Diza) about 4 years ago. Updated about 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin18]
[ruby-core:96718]

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

Actions #1

Updated by mame (Yusuke Endoh) about 4 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) about 4 years ago

I've pushed https://github.com/ruby/ruby/commit/65c2c75e162ebc8c4b35b0823967eeb132c00749. Could you please check if the fix works for your program? Thanks!

Actions #3

Updated by nagachika (Tomoyuki Chikanaga) about 4 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) about 4 years ago

That patch appears to have fixed the symptoms I see with Net/imap.

Actions #5

Updated by naruse (Yui NARUSE) about 4 years ago

  • Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: REQUIRED to 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: DONE
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0