This project is archived and is in readonly mode.

#3380 ✓invalid
Betelgeuse

rake gems:install doesn't upgrade gems that need a newer version

Reported by Betelgeuse | October 15th, 2009 @ 06:32 PM

betelgeuse@pena ~/project $ vim config/environment.rb
betelgeuse@pena ~/project $ rake gems:install
(in /home/betelgeuse/project)
betelgeuse@pena ~/project $ ./script/server -b localhost
=> Booting Mongrel
=> Rails 2.3.4 application starting on http://localhost:3000
Missing these required gems:
  hobo  >= 0.8.10

You're running:
  ruby 1.8.7.174 at /usr/bin/ruby18
  rubygems 1.3.5 at /home/betelgeuse/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8

Run `rake gems:install` to install the missing gems.
betelgeuse@pena ~/project $ sudo gem install --version ">= 0.8.10" hobo
Password:
Successfully installed hobosupport-0.8.10
Successfully installed hobofields-0.8.10
Successfully installed hobo-0.8.10
3 gems installed
Installing ri documentation for hobosupport-0.8.10...
Installing ri documentation for hobofields-0.8.10...
Installing ri documentation for hobo-0.8.10...
Installing RDoc documentation for hobosupport-0.8.10...
Installing RDoc documentation for hobofields-0.8.10...
Installing RDoc documentation for hobo-0.8.10...
betelgeuse@pena ~/project $ grep hobo config/environment.rb
  config.gem 'hobo', :version => '>= 0.8.10'
betelgeuse@pena ~/project $ ./script/server -b localhost
=> Booting Mongrel
=> Rails 2.3.4 application starting on http://localhost:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
^CExiting

expected: gems:install should have installed a newer hobo version for me

Comments and changes to this ticket

  • Matt Jones

    Matt Jones October 16th, 2009 @ 08:48 PM

    • State changed from “new” to “invalid”

    Closing as invalid, as this is due to the "require 'hobo/tasks/rails'" the generator adds to the Rakefile. I'll open a ticket over on the Hobo Lighthouse to try to figure this out.

    Note that the output of 'rake gems' would have been a dead giveaway that something was wrong:

    matt-jones-computer:foo mattjones$ rake gems
    (in /Users/mattjones/scratch/foo)
     - [R] hobo >= 0.8.10
    
    I = Installed
    F = Frozen
    R = Framework (loaded before rails starts)
    
  • Jeff Kreeftmeijer

    Jeff Kreeftmeijer October 19th, 2010 @ 07:08 AM

    • Tag cleared.

    Automatic cleanup of spam.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages