Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10541 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Rails 2.0.2 gems choke RubyGems <= 0.9.4

Reported by: tpope Assigned to: core
Priority: high Milestone: 2.x
Component: Railties Version: edge
Severity: major Keywords: verified
Cc:

Description

The recently uploaded 2.0.2 gems, apparently generated with rubygems 0.9.5, are missing a platform specification, which confuses older versions of rubygems. The following illustrates what happens when one attempts to install Rails 2.0.2.

Select which gem to install for your platform (i486-linux)
 1. rails 2.0.2 ()
 2. rails 2.0.1 (ruby)
 3. rails 2.0.0 (ruby)
...
> 1
Select which gem to install for your platform (i486-linux)
 1. activesupport 2.0.2 ()
 2. Cancel installation
> 1
ERROR:  While executing gem ... (OpenURI::HTTPError)
    404 Not Found

According to http://www.dcmanges.com/blog/rubygems-0-9-5-platform-bug , this can be worked around by explicitly setting a platform in the gem specification. ActionPack and ActionMailer already do this, but the rest of the components do not. The attached patch adds the platform to ActiveSupport, ActiveRecord, ActiveResource, and Railties.

I would argue that this problem is severe enough to justify another release, as upgrading rubygems is not always an option.

Attachments

gem_platform.patch (1.6 kB) - added by tpope on 12/17/07 21:22:10.

Change History

12/17/07 21:22:10 changed by tpope

  • attachment gem_platform.patch added.

12/17/07 21:25:18 changed by jbarnette

+1

12/17/07 21:41:31 changed by revans

+1

12/17/07 22:03:30 changed by danger

+1

12/17/07 22:03:50 changed by danger

  • keywords set to verified.

12/17/07 22:53:05 changed by evolving_jerk

+1

12/18/07 01:39:28 changed by chuyeow

+1 !

12/18/07 04:12:42 changed by lawrence

  • priority changed from normal to high.

just got bitten! +1

12/18/07 04:19:07 changed by lifofifo

+1

12/18/07 04:26:12 changed by tpope

A couple more relevant details (as discussed in #rails-contrib):

* With RubyGems 0.9.5, the install breaks as well. But if you pull from --source http://gems.rubyonrails.org, it works. * Previous versions give the same error with --source http://gems.rubyonrails.org/.

12/18/07 09:37:16 changed by l.guidi

+1

12/18/07 10:32:21 changed by dibistore

+1

12/18/07 17:49:55 changed by sjgman9

+1

12/19/07 06:58:27 changed by hansdegraaff

+1 from me too, we've had to temporarily removed Rails 2.0.2 from the Gentoo distribution until this gets resolved: https://bugs.gentoo.org/show_bug.cgi?id=202688

12/19/07 07:06:38 changed by revans

Bitsweat did take care of this in Changeset 8438.

12/20/07 03:56:23 changed by josh

  • status changed from new to closed.
  • resolution set to fixed.