Unable to specify config.gem in Rails applications for rodf
mezza opened this issue · 1 comments
I normally like to ensure the deployment environments have the correct gems installed by specifying config.gem in the environment.rb file.
However, for the rodf gem this doesn't seem to work.
I gather that config.gem is deprecated in Rails 3, but I don't understand why it doesn't work for the rodf gem in Rails 2.x.x applications.
Is there a simple solution? I'm not familiar enough with the structure of a gem package to attempt to solve this.
The problem is that Rails expects gems to provide a top-level library directory with the same name as the gem, which rodf doesn't. Its top-level library dir is odf
, not rodf
.
I managed to get config.gem working by using this line:
config.gem "rodf", :lib => false, :version => '>= 0.1.4'
and requiring the needed files inside the app.