Rubygems tries to fetch version number with a leading zero

blindgaenger's Avatar

blindgaenger

02 Jan, 2011 02:25 PM

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!

  1. Support Staff 2 Posted by Eric Hodel on 02 Jan, 2011 11:27 PM

    Eric Hodel's Avatar

    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...

  2. Support Staff 3 Posted by Ryan Davis on 18 Jan, 2011 09:07 PM

    Ryan Davis's Avatar

    I'm uncertain about Eric's diagnosis. I'm unable to repro this using rubygems 1.4.2. Eg: gem fetch rchardet -v 1.3 works fine for me.

  3. Support Staff 4 Posted by Ryan Davis on 13 May, 2011 08:00 AM

    Ryan Davis's Avatar

    I assume this issue is resolved.

  4. Ryan Davis closed this discussion on 13 May, 2011 08:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac