Google Groups Home
Help | Sign in
Rails 1.2.6 gem freeze fails with gem 0.9.5 system
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Nathan  
View profile
 More options Nov 26 2007, 12:21 pm
From: Nathan <nyoung...@gmail.com>
Date: Mon, 26 Nov 2007 09:21:16 -0800 (PST)
Local: Mon, Nov 26 2007 12:21 pm
Subject: Rails 1.2.6 gem freeze fails with gem 0.9.5 system
Freezing to the gems for Rails 1.2.6
rake aborted!
uninitialized constant Gem::GemRunner

tracing gives:
no such file to load -- /Users/nathany/Sites/boat/oat/config/../vendor/
rails/railties/lib/initializer
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
...

which seems like it may be trying to load the frozen gems before they
are there?

It doesn't do a nice rollback on failure... leaving the empty vendor/
rails/ folder there, which of course causes a mess of things.

Anyone else experience this, or get it working with the same setup?
I'm guessing it's more gem related than 1.2.6 related, but I haven't
verified.

- nathan.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile
(1 user)  More options Nov 26 2007, 12:30 pm
From: Nathan <nyoung...@gmail.com>
Date: Mon, 26 Nov 2007 09:30:21 -0800 (PST)
Local: Mon, Nov 26 2007 12:30 pm
Subject: Re: Rails 1.2.6 gem freeze fails with gem 0.9.5 system
To confirm, I uninstalled Rails 1.2.6 and ran into the same problem
with 1.2.5. So it is more than likely related to my recent update to
the gem 0.9.5 system.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonard Chin  
View profile
 More options Nov 27 2007, 1:52 am
From: "Leonard Chin" <l.g.c...@gmail.com>
Date: Tue, 27 Nov 2007 15:52:14 +0900
Local: Tues, Nov 27 2007 1:52 am
Subject: Re: [Rails-core] Re: Rails 1.2.6 gem freeze fails with gem 0.9.5 system
On Nov 27, 2007 2:30 AM, Nathan <nyoung...@gmail.com> wrote:

> To confirm, I uninstalled Rails 1.2.6 and ran into the same problem
> with 1.2.5. So it is more than likely related to my recent update to
> the gem 0.9.5 system.

What seems to have happened is that gem_runner is no longer required
automatically when you require rubygems. It appears to be an
intentional change in rubygems, as a part of "slimming" it down for
inclusion in 1.9

http://blog.segment7.net/articles/category/rubygems

The trivial fix is to add a line to require the rubygems/gem_runner.rb
in railties/lib/tasks/framework.rake

A quick check of the rubygems commit logs reveals that there could be
a fix down the line (r1515 will apparently "faults in the full
rubygems library if any Gem constant or method is called.") so it
might not be worthwhile actually patching this.

Anyway:

Index: railties/lib/tasks/framework.rake
===================================================================
--- railties/lib/tasks/framework.rake   (revision 8220)
+++ railties/lib/tasks/framework.rake   (working copy)
@@ -4,6 +4,7 @@
     task :gems do
       deps = %w(actionpack activerecord actionmailer activesupport
actionwebservice)
       require 'rubygems'
+      require 'rubygems/gem_runner'
       Gem.manage_gems

       rails = (version = ENV['VERSION']) ?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google