Wirble in Ruby 1.9
Wirble, which is awesome, uses syntax in its case blocks that break Ruby 1.9.0. It’s too bad. Wirble makes irb so much nicer to look at and use (although, I do have to say that I don’t use its prompt or history features, but maybe only through old stubbornness).
Anyway, if you’re using 1.9 alongside 1.8, it’s nice when everything works the same. And so, here’s a simple patch for wirble.rb (the only file when you install the gem). Apply it to your gems/1.9/gems/wirble-0.1.2/wirble.rb (usually in /usr/local/lib/ruby/) and there you go.
Dan Grigsby said,
January 2, 2008 @ 12:56 pm
Thanks. Very helpful. IRB w/o the Wirble-ized tab-complete is painful.
Fred said,
March 4, 2008 @ 2:32 pm
It is not recommended to use wirble on your irb if you have large ouptut print out
such as:
Item.find(:all)
which might return 1,000 results
the ruby process memory will go up to the roof (1.GB ram usage)