gilesbowkett / utility-belt

IRB Power User Utility Belt
http://utilitybelt.rubyforge.org
91 stars 23 forks source link

Seems to disable hirb #6

Open thams opened 12 years ago

thams commented 12 years ago

When I require utility_belt, either before or after requiring hirb, hirb no longer functions... at least, the defaults of showing ActiveRecord objects nicely. (can still force hirb by doing "table User.all")

Using latest utility_belt and Hirb 0.6.2 or Hirb 0.4.5

gilesbowkett commented 12 years ago

I haven't really done a lot to maintain this gem, so there's a chance you might see better results with one of the forks, in particular Fabio Akita's, or Jon Trupiano's (which he re-named flyrb). however, you might not, and either way, I'm open to pull requests.

here's my best guess. first, Utility Belt sets a few IRB constants, and it's possible that hirb sets these constants also, but sets them to different values. I would especially suspect this to be the case if you saw better results requiring hirb after UB than you did requiring hirb before UB.

Second, UB monkey-patches IRB a little, and those monkey-patches may interfere with functionality hirb expects. It could also be a situation where both IRB and hirb monkey-patch the same thing in different ways.