Gem 1.3 does not work out of the box on windows.
Here is what happens:
C:\>gem update
Updating installed gems
ERROR: While executing gem ... (NoMethodError)
undefined method `uid' for nil:NilClass
The problem is in C:\ruby\lib\ruby\site_ruby\1.8\rubygems.rb, line 713:
"if 0 == File.expand_path(path).index(Gem.user_home) and Etc.getpwuid.uid != File::Stat.new(Gem.user_home).uid
then"
Which should be replaced with:
"if 0 == File.expand_path(path).index(Gem.user_home) and !Gem.win_platform? and Etc.getpwuid.uid
!= File::Stat.new(Gem.user_home).uid then"
Then everything works as expected. |