Hi all.  I'm having an issue with the ruby-ole gem, which is a
dependency of the spreadsheet gem i installed.  I'm trying to unpack it
into my vendor/gems folder.  I have this line in my environment.rb

  config.gem "ruby-ole", :version => '1.2.10.1', :lib => "ole"

and then do rake gems:unpack.

It complains thus:

  no such file to load -- ole

but goes ahead and copies the gem into vendor/gems anyway.  I set the
:lib option to 'ole' because that's what the main folder inside the
gem's lib folder is called (rather than ruby-ole).  If i omit the lib
option then it complains that it can't load ruby-ole but again copies
the gem into vendor/gems anyway.

The structure of the gem looks like this:

http://dl.dropbox.com/u/846812/Screenshot-1.png

ruby-ole is used by the spreadsheet gem, and whenever spreadsheet
requires it, it doesn't require the whole thing but instead requires
'ole/file_system', which in turn requires 'storage/file_system' file,
which in turn requires the whole ole/storage folder.  Does this mean
that when i specify the gem in my environment file i need to just
require 'ole/storage' as well?  I'm a little confused about this, i'd
appreciate any clarification/advice.

cheers, max

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to