tag:help.rubygems.org,2010-01-19:/discussions/problems/287-gem-file-in-current-directory-makes-gem-update-failRubyGems.org: Discussion 2011-04-07T20:59:31Ztag:help.rubygems.org,2010-01-19:Comment/25905362010-08-16T20:18:48Z2010-08-16T20:18:48Zgem file in current directory makes 'gem update' fail.<div><p>Use <code>gem update -r</code> to only update from remote gems. Local gems are preferred if available.</p></div>Eric Hodeltag:help.rubygems.org,2010-01-19:Comment/25905362010-08-18T11:24:37Z2010-08-31T01:41:13Zgem file in current directory makes 'gem update' fail.<div><p>Sorry to say that gem update (with or without -r) is not working, if you have an older gem in the current directory.</p>
<pre>
# ls
hhvacation-0.0.1.gem
# ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
# gem -v
1.3.7
# gem list
*** LOCAL GEMS ***
activesupport (2.3.8)
hhvacation (0.0.1)
mail (2.2.5)
mime-types (1.16)
mysql (2.8.1)
polyglot (0.3.1)
rubygems-update (1.3.7)
treetop (1.4.8)
# gem update -r
Updating installed gems
Updating hhvacation
Successfully installed hhvacation-0.0.1
Gems updated: hhvacation
</pre></div>wingfiretag:help.rubygems.org,2010-01-19:Comment/25905362010-08-20T07:08:41Z2010-08-20T07:08:42Zgem file in current directory makes 'gem update' fail.<div><p>seams to be a gem bug.<br />
<a href="http://rubyforge.org/tracker/index.php?func=detail&aid=26109&group_id=126&atid=575">http://rubyforge.org/tracker/index.php?func=detail&amp;aid=26109&am...</a></p></div>wingfiretag:help.rubygems.org,2010-01-19:Comment/25905362010-08-31T01:43:17Z2010-08-31T01:43:17Zgem file in current directory makes 'gem update' fail.<div><p>Great, keeping it open in the bug tracker instead of here.</p></div>Nick Quaranto