GuessMethod 0.2.1
I gave a lightning talk about GuessMethod at MountainWest RubyConf, and then I looked at the code again. I figured it could use a little cleaning, so I took my steel wool to it.
I fixed up some of the documentation and the website, made the specs run again (they always passed, they just stopped running at some point… rspec change?), and rewrote the code that finds close matches of missing methods and constant names. And that last change (based on a naïve benchmark) doubled its speed (of course, iterating over an array once instead of twice will sort of do that).
So, if you need aggressive spell-checking in your irb or script/console sessions check it out:
001:0> Strin.tos attention: replacing non-existant constant Strin with String for Object attention: sending to_s instead of tos to String:Class “String”
Or, if you sometimes can’t be bothered to correctly remember rake task names (and rake -T takes too long), use grake!
mvb:~/hot-rails-app cms$ grake db:migrat (in /Users/cms/hot-rails-app) attention: invoking task db:migrate instead of db:migrat ...
It might show up in Giles Bowkett’s utility_belt at some point, in case you’re into that and you can’t be bothered with this:
sudo gem install guessmethod