Bugs item #28237, was opened at 2010-05-23 14:58
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28237&group_id=126

Category: `gem` commands (other)
Group: v1.3.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Caio Chassot (cchassot)
Assigned to: Nobody (None)
Summary: gem outdated fails for gems that are outdated but have a prerelease 
installed

Initial Comment:
    $ sudo gem1.9 outdated --backtrace
    ERROR:  While executing gem ... (NoMethodError)
        undefined method `first' for nil:NilClass
            .../rubygems/commands/outdated_command.rb:26:in `block in execute'
            .../rubygems/commands/outdated_command.rb:21:in `each'
            .../rubygems/commands/outdated_command.rb:21:in `execute'
            .../rubygems/command.rb:270:in `invoke'
            .../rubygems/command_manager.rb:134:in `process_args'
            .../rubygems/command_manager.rb:104:in `run'
            .../rubygems/gem_runner.rb:58:in `run'
            /opt/local/bin/gem1.9:21:in `<main>'

That occurs on my machine because I have rails 3.0.0.beta3 and 2.3.5 installed, 
but 2.3.6 is out.

I can fix this by updating Gem::Commands::OutdatedCommand to exclude 
prereleases when listing the outdated gems. Not sure if you'll want to somehow 
handle prereleases with gem outdated, tho.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28237&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to