[MacRuby-devel] Packing gems in the app's folder
Thiago Jackiw
tjackiw at gmail.com
Fri Mar 27 09:57:58 PDT 2009
Do I have to do anything special to pack gems inside my application's
folder? The following isn't working when I require the gems inside of
my 'Gems' folder:
# rb_main.rb
ENV['GEM_HOME'] = File.dirname(__FILE__) + '/Gems'
require 'rubygems'
require 'mechanize'
`require': no such file to load -- mechanize (LoadError)
If I do the above in IRB it works just fine.
The 'Gems' folder contains the following structure:
Gems
- cache
- doc
- gems
- mechanize-0.9.2
- specifications
- mechanize-0.9.2.gemspec
Thanks, and I'm using MacRuby 0.4.
--
Thiago Jackiw
More information about the MacRuby-devel
mailing list