Rubygems tries to fetch version number with a leading zero
I've problems installing rchardet, because rubygems
seems to try to resolve the version 1.3 to
1.03.
$ gem install rchardet --verbose
GET http://gemcutter.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
GET http://gems.rubyforge.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
GET http://gems.rubyonrails.org/latest_specs.4.8.gz
200 OK
GET http://gems.github.com/latest_specs.4.8.gz
200 OK
GET http://gemcutter.org/quick/Marshal.4.8/rchardet-1.03.gemspec.rz
404 Not Found
Error fetching remote data: bad response Not Found 404 (http://gemcutter.org/quick/Marshal.4.8/rchardet-1.03.gemspec.rz)
Falling back to local-only install
ERROR: Could not find a valid gem 'rchardet' (>= 0) in any repository
ERROR: Possible alternatives: rchardet
Is there a way to force the version number? Or what is suggested way to handle such old gem versions?
Thanks!
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Eric Hodel on 02 Jan, 2011 11:27 PM
There's a possibly related bug with prereleases, gem install eventmachine --pre tries to download eventmachine-1.0.0.beta1.gemspec.rz instead of beta.1
Could be related to this change https://github.com/rubygems/rubygems/commit/57ce085060f95f44a841703...
Support Staff 3 Posted by Ryan Davis on 18 Jan, 2011 09:07 PM
I'm uncertain about Eric's diagnosis. I'm unable to repro this using rubygems 1.4.2. Eg:
gem fetch rchardet -v 1.3works fine for me.Support Staff 4 Posted by Ryan Davis on 13 May, 2011 08:00 AM
I assume this issue is resolved.
Ryan Davis closed this discussion on 13 May, 2011 08:00 AM.