[MacRuby-devel] Using Gems in MacRuby
Craig Williams
cwilliams at allancraig.net
Fri Oct 16 18:08:19 PDT 2009
Hi Everyone,
I am still not understanding how to include gems in my MacRuby
project. From what has been discussed, I "unpacked"
the gem and included it in the project in "Vendor/gems."
I am using this in the rb_main.rb file, but it is resulting in 2180
errors.
Dir.glob(File.expand_path("#{NSBundle.mainBundle.resourcePath}/vendor/
gems/*", __FILE__)).each do |gem|
$:.unshift File.join(gem, 'lib')
end
I know this must be very simple but I am not getting it. I write Ruby
scripts nearly every day but I all of my development
experience is with Objective-C. I would really appreciate a small
example of how to accomplish this.
Thanks,
Craig
More information about the MacRuby-devel
mailing list