mrkn / pycall.rb

Calling Python functions from the Ruby language
MIT License
1.05k stars 72 forks source link

Capturing the given block using Kernel#proc is deprecated #115

Open caramdache opened 4 years ago

caramdache commented 4 years ago

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 commented 4 years ago

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