gem file in current directory makes 'gem update' fail.

wingfire's Avatar


16 Aug, 2010 10:55 AM

i have the file hhvacation-0.0.1.gem my current dir and try to update with'gem update' to hhvacation-0.0.2.gem from
gem is always using the hhvacation-0.0.1.gem file and the update is not happening.
Bug or feature?

  1. Support Staff 1 Posted by Eric Hodel on 16 Aug, 2010 08:18 PM

    Eric Hodel's Avatar

    Use gem update -r to only update from remote gems. Local gems are preferred if available.

  2. Eric Hodel closed this discussion on 16 Aug, 2010 08:18 PM.

  3. wingfire re-opened this discussion on 18 Aug, 2010 11:24 AM

  4. 2 Posted by wingfire on 18 Aug, 2010 11:24 AM

    wingfire's Avatar

    Sorry to say that gem update (with or without -r) is not working, if you have an older gem in the current directory.

    # ls
    # ruby -v
    ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
    # gem -v
    # 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
  5. 3 Posted by wingfire on 20 Aug, 2010 07:08 AM

    wingfire's Avatar
  6. Support Staff 4 Posted by Nick Quaranto on 31 Aug, 2010 01:43 AM

    Nick Quaranto's Avatar

    Great, keeping it open in the bug tracker instead of here.

  7. Nick Quaranto closed this discussion on 31 Aug, 2010 01:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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