Unpacking Gems [Rails 2.3.5]

I have the following gems defined in the environment.rb file:

  config.gem "authlogic"
  config.gem "paperclip"
  config.gem "pauldix-feedzirra", :lib => "feedzirra", :source => "http://gems.github.com"
  config.gem 'whenever', :lib => false, :source => 'http://gemcutter.org/'

I installed them on my local computer and everything works fine. Since I'm working on a shared server (DreamHost), I need to unzip these gems to make them work (I can’t install them the way I did on my computer to get them to work).

Before downloading, I ran the following on my local machine:

rake gems:unpack

This created the following folders in /vender/gems:

authlogic-2.1.3, paperclip-2.3.1.1, pauldix-feedzirra-0.0.18, whenever-0.4.1

So it looks like they are all there.

When I run rake db:migrateon the server, I get the following error:

Missing these required gems:
  pauldix-feedzirra

For some reason, the raw feedzirra gem has not been discovered. Can someone make it clear why this is happening and a potential solution?

Thank!


EDIT: , environment.rb , bundler . ?

+5
4

, config.gem, Bundler . , . config.gem Rails 3 , .

+2

feedzirra: -, 3 , , . "feedzirra" - github.

, gems: unpack: .

, , ( feedzirra) , . Dreamhost (), gem .

, .gemrc , : : user_install: true

gems: install

, - , Dreamhost , -gems.

( libcurl...)

+1

. envoirment.rb

  config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir| 
    File.directory?(lib = "#{dir}/lib") ? lib : dir
  end
0

, , feedzirra ( CURL, ). , feedzirra gem ( ) .


() feedzirra gem, pauldix-feedzirra. , feedzirra.

config.gem feedzirra

environment.rb

rake gems:install
rake gems:unpack

It looks like there is /vendor/pluginsno unpacked gem in it feedzirra. See if feedzirra will be copied there after these commands ...

0
source

All Articles