linux - ruby gem --pre list/install, weird error? -


rubygems 1.7.2, ruby 1.8.7. linux.

i thought way see "pre" versions of gem available:

gem list --pre --remote somegem 

when try though, error message:

*** remote gems ***  error:  while executing gem ... (gem::remotefetcher::fetcherror)     bad response not found 404 (http://gems.rubyonrails.org/prerelease_specs.4.8.gz) 

anyone know what's , how fix it, and/or how should instead list/install available prerelease gems? know gem versions end in "pre*" , similar things not listed/installed when don't include "--pre".

answering own question, way later, seems have been problem default gem sources.

gem sources -l *** current sources ***  http://gems.rubyforge.org/ http://gems.rubyonrails.org http://gems.github.com 

did not include new http://rubygems.org/. somehow still install gems anyway, not pre-release gems. thought rubygems updated it's own sources, apparently not, updating latest version of rubygems didn't change it's sources.

odder still, adding http://rubygems.org/ did not fix it:

gem sources -a http://rubygems.org/ 

still exhibited problem, long old 3 in there. had remove old 3 (which think recommended, need http://rubygems.org now, right?)

gem sources -r http://gems.github.com etc 

then 1 , 1 source in there, http://rubygems.org, can install pre-release gems again, although require supplying "--pre" tag. (it appears when installing via bundler, bundler happy install gems pre-release versions, without special flag -- not sure that).

there still seems problem installing pre-release gems have dependencies on other pre-release gems. if there's way that, don't know it. not sure if known issue rubygems or effecting people other me, or related other mis-configuration have. not sure yet if installing via bundler fixes one.


Comments