Re: [MacRuby-devel] Using Gems in MacRuby
17 Oct
2009
17 Oct
'09
1:08 a.m.
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
5867
Age (days ago)
5867
Last active (days ago)
0 comments
1 participants
participants (1)
-
Craig Williams