awesome-print/awesome_print

Ruby 2.7.0 compatibility

FunnyHector opened this issue · 2 comments

When running on Ruby 2.7.0, I see the following deprecations:

~/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/awesome_print-2.0.0.pre2/lib/awesome_print/formatters/base_formatter.rb:80: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
~/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/awesome_print-2.0.0.pre2/lib/awesome_print/inspector.rb:65: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead

Ruby 2.7.2 has disabled deprecations by default, but these deprecation warnings are still there. This is gonna break on Ruby 3.0 (haven't tried though)

You can pull the latest 1.9.x from git until we can get it pushed to rubygems.

@BryanH Sorry I must have missed, are these deprecations fixed in 1.9.x?