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

Awesome print + RVM + Bundler + Global gems + Git == Fail #96

Closed envygeeks closed 11 years ago

envygeeks commented 12 years ago

This isn't all awesome prints fault, it's partially my fault for patching a Mongoid + Awesome Print failure and then using git gems, but what I am saying is the old way of not requiring if AwesomePrint is defined is broken. When using Bundler mixed with Git based gems and RVM you end up with a mess where AwesomePrint is defined and then it all goes to hell from there.

I think since 1.8 is dead and 1.9.3 does not have the old require problem where there was an impact in speed the old way should be killed off and awesome print just require everything it can upfront (of course leaving the other if's intact.) This would resolve the quirky situation.

Edit: yes I did try require: false in my Gemfile, but AwesomePrint was always still defined somehow

michaeldv commented 11 years ago

Good to know ;-). Upcoming 1.2.0 will be the last version supporting Ruby < 1.9.3 and Rails < 3.0.