awesome-print / awesome_print

Pretty print your Ruby objects with style -- in full color and with proper indentation
http://github.com/michaeldv/awesome_print
MIT License
4.07k stars 454 forks source link

Change &Proc.new to &block for ruby 2.7 warning #360

Closed QWYNG closed 3 years ago

QWYNG commented 5 years ago

Hi! thank you for a great gem!

ruby trank is merged this warning https://github.com/ruby/ruby/commit/d3da5fbd30e174c5737ec09c6896db7e81691714

I think that Using &block is better than &Proc.new for Capturing the given block

Hope it makes sense

QWYNG commented 4 years ago

@HarlemSquirrel Thank you!

vvo commented 4 years ago

@imajes anything required for this PR to be merged? Let us know!

BryanH commented 3 years ago

The changes have been implemented as part of the cleanup - thank you very much!