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

Fixes block and proc definition to work with Ruby 3.0.0 #392

Closed csalvato closed 3 years ago

csalvato commented 3 years ago

This should fix #391.

Ruby 3.0 changed the rules around how and when you can call Proc.new. This should fix the issue by complying with the new rules.

torrocus commented 3 years ago

I think that this PR also resolve #382.

torrocus commented 3 years ago

@csalvato Did you notice that in Ruby 2.4 for rails_5.0.gemfiles, rails_5.1.gemfiles, rails_5.2.gemfiles did not pass the test?

csalvato commented 3 years ago

Hm, I did...not quite sure how to address it 🤔

csalvato commented 3 years ago

This is my first OSS contribution 🎉

Thanks all :)