Amazing Print v3.0.0
Amazing Print, the maintained fork of the popular Awesome Print gem to enhance the pretty-printing of Ruby objects, has been updated to version 3. It works with the next version of Rails (8.2, or 9, or whatever the next version number will be). If you are still using Awesome Print, you will want to migrate to Amazing Print v3 as part of your next Rails upgrade, or your app will crash on boot!
Thankfully it should be a drop-in replacement, since the coloring default behavior has been updated to be closer to Amazing Print’s defaults. A new colors option has been introduced for further tweaking.
Pro-tip: are you migrating from Awesome Print and missing the old-school hash rocket visual style? Add AmazingPrint.defaults = { hash_format: :rocket } to your ~/.irbrc or ~/.pryrc.
Post a comment