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

Retain custom color defaults #352

Open RST-J opened 5 years ago

RST-J commented 5 years ago

When using custom color defaults by setting AwesomePrint.defaults from anywhere else than ~/.aprc then the custom coloring was gone after the first object had been inspected. This was due to the permanent removal of the :color key from the given options. This PR ensures that the given options are not modified.

Fixes #209

RST-J commented 5 years ago

The builds for all rails gemfiles fail due to an error loading the sqlite3 gem. Should I address this here or not? I ask, because I think that is nothing related to this PR in general.