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.
Someone at RailsConf asked about freezing gems into the app, and
Jeremy K. 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 Thu, Jun 5, 2008 at 10:55 AM, rubynuby [email protected] 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
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