I updated to rails 2.1 on my dev machine, freeze rails into vendor,and upload to my host. however, I now get an error on startup /../config/../vendor/rails/railties/lib/initializer.rb:181:in `install_gem_spec_stubs'': undefined method `loaded_specs'' for Gem:Module (NoMethodError) It appears I need rubygems >= 0.9.4 However, I''m on shared hosting and cannot do gem update --system and the hosting co. isn''t being cooperative. is there a workaround for this? Is it possible to put rubygems in vendor/ or lib/? I tried it but it''s not working. I think it''s still using the old rubygems. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Someone at RailsConf asked about freezing gems into the app, and Jeremy Kemper said it was possible... but I can''t how he said to do it... something about rake gems:dependencies or something... I know you have to declare gem dependencies, and then rake:freeze:gems I think. I could, and may, be wrong... On Jun 5, 1:55 pm, rubynuby <dear...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I updated to rails 2.1 on my dev machine, freeze rails into vendor,and > upload to my host. however, I now get an error on startup > > /../config/../vendor/rails/railties/lib/initializer.rb:181:in > `install_gem_spec_stubs'': undefined method `loaded_specs'' for > Gem:Module (NoMethodError) > > It appears I need rubygems >= 0.9.4 > > However, I''m on shared hosting and cannot do gem update --system and > the hosting co. isn''t being cooperative. > > is there a workaround for this? Is it possible to put rubygems in > vendor/ or lib/? I tried it but it''s not working. I think it''s still > using the old rubygems.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Jun 5, 2008 at 10:55 AM, rubynuby <dearluu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> is there a workaround for this? Is it possible to put rubygems in > vendor/ or lib/? I tried it but it''s not working. I think it''s still > using the old rubygems.You can use ~/.gemrc to set your GEM_HOME and GEM_PATH to any location you want (one which is writeable by you). -- Chad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This link might help you, I found that I had to do some similar hacking to get gem to ''freeze'' http://www.godale.org/blog/2008/04/freezing-rubygems-on-shared-server.html Sure seems like there should be hooks into rake''s freeze task to let you opt to do this. -Dale --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---