awesome-print/awesome_print

Proc.new is deprecated

navid-farjad opened this issue · 5 comments

iam facing very annoying warning:
/.rvm/gems/ruby-2.7.0/gems/awesome_print-1.8.0/lib/awesome_print/formatters/base_formatter.rb:113: warning: Capturing the given block using Proc.new is deprecated; use &block instead

It's all over the console for every call. please let me know how can I fix it.
Rails 6.0.3.2
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]

Thank you

I'm having the same issue. 😞

Thanks for the PRs - I am working on merging

Fixed with latest PR. I'll cut a new version after more cleanup

Any ETA on 1.9.0 being published on rubygems?

Edit: Apologies. Never spotted this: #399