Spellcheck/Suggest for RubyGems
As a result of a Ruby bounty, I wrote a patch for RubyGems which provides suggestions when you try to install a gem and you get the name a little wrong. You can see all the details here.
Now that RubyGems 1.3.7 is out, I’m going to go ahead and provide a patched version for those who frequently forget, mistype, or misspell gem names (this includes myself).
After decompressing, I recommend installing it with
ruby setup.rb --no-rdoc --no-ri
(and probably sudo).
Here are some examples of what this adds to your RubyGems experience:
$ gem install Blah
ERROR: Could not find a valid gem 'Blah' (>= 0) in any repository
Possible alternatives: blahblahblah
$ gem install Nkojiri
ERROR: Could not find a valid gem 'Nkojiri' (>= 0) in any repository
Possible alternatives: nokogiri
$ gem install blue
ERROR: Could not find a valid gem 'blue' (>= 0) in any repository
Possible alternatives: bluecloth, BlueCloth, bluefeather,
blue_light_special, blue_light_special_heroku_fork, glue, bluepill,
blueprintr, blueprints, bluepay, ...
$ gem install sinatar-capcha
ERROR: Could not find a valid gem 'sinatar-capcha' (>= 0) in any repository
Possible alternatives: sinatra-captcha, sinatra-cache, sinatra-cas, sinatra-auth,
sinatra, sinatra-any, sinatra_app_gen, sinatra-flash, sinatra-dm, sinatra-dm-auth,
sinatra-doc, sinatra-erb, sinatra-compass, ...

