ruby - Using Gems with MacRuby -
How do you use gems from a MacRuby.5 application on Snow Leopard? Do I need to specify the gem route? If so, how can I do this?
The best scenario is to package the gems so that users do not have to install them when the app is distributed.
Yehuda Catz Gem Bundler is a very good option IMHO:
Anyway, many people have other options like creating vendors / directories in your app bundle, rb_main.rb
: $:. Adding each vendor subdirectory to the Ruby Library search path in the Unshift file. (File: Dynamic name (__ file__), 'Seller / Rest-client / Lib') $:. Unshift file.join (File.dirname (__ FILE__, 'vendor / crack / lib') is required 'rest-customer' is required 'crack'
I here Using the following approach:
Comments
Post a Comment