Suggest similar gem names when install fails to find any matches
I submitted a patch to Rubyforge for this a while ago in response to a Ruby Bounty but I thought I would try again now that RubyGems has moved to GitHub.
Code is here.
The patch provides suggestions like these:
$ gem install red_cloth
ERROR: Could not find a valid gem 'red_cloth' (>= 0) in any repository
Possible alternatives: RedCloth
$ gem install nokojiri
ERROR: Could not find a valid gem 'nokojiri' (>= 0) in any repository
Possible alternatives: nokogiri, nokogirl
$ 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-css, sinatra-path, sinatras-hat
Support Staff 2 Posted by Nick Quaranto on 31 Aug, 2010 02:50 AM
Oh sweet. I've been considering doing this.
Eric, John, any thoughts? Is there anything we could do on the server side at rubygems.org to speed this up?