[Rubygems-developers] invalid Gem::Specification format?

Chad Woolley thewoolleyman at gmail.com
Wed Jun 25 11:34:27 EDT 2008


On Tue, Jun 24, 2008 at 11:14 PM, Ryan Davis <ryand-ruby at zenspider.com> wrote:
> gah... lame. I have no idea what's wrong now:

I get something similar - but maybe this isn't a problem with my gem anymore?

Anyway, I got a ton of spew when I ran this initially (with 1.2.0
released version already installed):

chadmac:~ woolley$ sudo gem sources -c; sudo gem update --system --debug; gem -v
Password:
*** Removed specs cache ***
*** Removed user source cache ***
*** Removed latest user source cache ***
*** Removed system source cache ***
*** Removed latest system source cache ***
Exception `NameError' at
/Library/Ruby/Site/1.8/rubygems/command_manager.rb:134 - uninitialized
constant Gem::Commands::UpdateCommand
Updating RubyGems
Updating rubygems-update
Exception `IOError' at /Library/Ruby/Site/1.8/rubygems/format.rb:50 -
closed stream
Exception `Errno::EEXIST' at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:243
- File exists - /Library/Ruby/Gems/1.8/gems/rubygems-update-1.2.0
<.....snip a lot of the same ...>
Successfully installed rubygems-update-1.2.0
Exception `NameError' at
/Library/Ruby/Site/1.8/rubygems/commands/update_command.rb:87 -
undefined local variable or method `remote_gemspecs' for
#<Gem::Commands::UpdateCommand:0x51f57c>
ERROR:  While executing gem ... (NameError)
    undefined local variable or method `remote_gemspecs' for
#<Gem::Commands::UpdateCommand:0x51f57c>
	/Library/Ruby/Site/1.8/rubygems/commands/update_command.rb:87:in `execute'
	/Library/Ruby/Site/1.8/rubygems/command.rb:136:in `invoke'
	/Library/Ruby/Site/1.8/rubygems/command_manager.rb:105:in `process_args'
	/Library/Ruby/Site/1.8/rubygems/command_manager.rb:75:in `run'
	/Library/Ruby/Site/1.8/rubygems/gem_runner.rb:39:in `run'
	/usr/bin/gem:24
1.2.0


Then, after I remove ~/.gem (for user, not root), I only get one error:

chadmac:~ woolley$ sudo gem sources -c; sudo gem update --system --debug; gem -v
*** Removed specs cache ***
*** Removed user source cache ***
*** Removed latest user source cache ***
*** Removed system source cache ***
*** Removed latest system source cache ***
Exception `NameError' at
/Library/Ruby/Site/1.8/rubygems/command_manager.rb:134 - uninitialized
constant Gem::Commands::UpdateCommand
Updating RubyGems
Nothing to update
1.2.0

Not sure if the errors went away because of partial install success,
or deleting the non-root ~/.gem?

Looks like there are some upgrade issues, but they go away, except for
the command_manager missing constant...

-- Chad


More information about the Rubygems-developers mailing list