Suggest similar gem names when install fails to find any matches

Justin's Avatar

Justin

26 Aug, 2010 07:54 PM

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
  1. Support Staff 1 Posted by Nick Quaranto on 31 Aug, 2010 02:50 AM

    Nick Quaranto's Avatar

    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?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM