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.08k stars 454 forks source link

awesome_print requires rails? #298

Closed TechRsch closed 7 years ago

TechRsch commented 7 years ago

AP runs fine in my Rails app but fails quickly in my Sinatra app. Does it require Rails? If so, should that not be in the documentation and gemspec? Thanks.

I should mention that the failure appears to be on the method convert_to_hash and, if diagnostics are to be believed, it is in formatter.rb:122. Debugging Ruby in Sinatra while using EventMachine and FayeWebsocket is quite an experience, however. So, YMMV.

thbar commented 7 years ago

A quick note to tell you that I'm using awesome_print just fine in a lot of plain ruby projects, without problems.

gerrywastaken commented 7 years ago

@TechRsch It shouldn't require rails at all. Perhaps you could share the error... otherwise I'm not sure how I can help.