pycall.rb icon indicating copy to clipboard operation
pycall.rb copied to clipboard

Capturing the given block using Kernel#proc is deprecated

Open caramdache opened this issue 4 years ago • 1 comments

The following code will generate the warning below:

worksheet._images.each {|i| puts i}
/usr/local/lib/ruby/gems/2.7.0/gems/pycall-1.3.0/lib/pycall/list.rb:18: warning: Capturing the given block using Kernel#proc is deprecated; use `&block` instead

caramdache avatar Apr 17 '20 08:04 caramdache

It seems this has been fixed in 1.3.1, but gem install -v 1.3.1 will not find it.

caramdache avatar Apr 17 '20 09:04 caramdache