ERROR While executi gem (NoMethodError)undefined method []=

I’ve just installed ruby and rubygems on a solaris machine, but when i
do this :

gem install rails --include-dependencies -p http://10.17.0.1:3128

it crashes out with :

ERROR: While executing gem … (NoMethodError)
undefined method `[]=’ for #Gem::ConfigFile:0x84691d4

Does anybody have any idea why its hapenning? Im totally at a loss. Any
help would be greatly appreciated.

Thanks

CHris

Its a bug with rubygems not working with a proxy. I manually added this
method :

def []=(key,value)
@hash[key.to_s]=value
end

and it now works.

Chris wrote:

Its a bug with rubygems not working with a proxy. I manually added this
method :

def []=(key,value)
@hash[key.to_s]=value
end

and it now works.

hi, in which file did you add this method?

jeroen wrote:

Chris wrote:

Its a bug with rubygems not working with a proxy. I manually added this
method :

def []=(key,value)
@hash[key.to_s]=value
end

and it now works.

hi, in which file did you add this method?

apparently in /usr/local/lib/ruby/site_ruby/1.8/rubygems/config_file.rb
(as a public method)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs