'gem install' always prefers local files with partial name match
If you try to install gem with a shorter name (e.g., active_form) from a remote server but you have a .gem file of another gem with a longer name (e.g., active_forms) in the working directory, 'gem install' will use the gem file. The exact match should be preferred.
$ ruby -v -S gem install --ignore-dependencies --no-rdoc --no-ri active_forms-0.2.1.gem
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-darwin10.4.0]
Successfully installed active_forms-0.2.1
1 gem installed
$ ruby -v -S gem install --ignore-dependencies --no-rdoc --no-ri active_form
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-darwin10.4.0]
Successfully installed active_forms-0.2.1
1 gem installed
This was first reported by Stephen Bannasch in http://jira.codehaus.org/browse/JRUBY-4934.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Nick Quaranto on 14 Aug, 2010 03:28 PM
Yeah, this sounds like a bug, it would be best if a bug was opened up on RubyGems' bug tracker:
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575
3 Posted by wingfire on 20 Aug, 2010 07:02 AM
seams to be the same bug as #26109
http://rubyforge.org/tracker/index.php?func=detail&aid=26109&am...
Support Staff 4 Posted by Nick Quaranto on 31 Aug, 2010 01:36 AM
Great, going to keep it in the rubygems tracker then. Closing this one.
Nick Quaranto closed this discussion on 31 Aug, 2010 01:36 AM.