Can gems be used by ruby code compiled with macrubyc
MacRuby 0.5 includes a ruby compiler built on LLVM called macrubyc.
Does anyone know if it would be possible to dynamically load gems from compiled code? Or compile the gems and link them in? Is this planned? Or how compiled code 开发者_StackOverflow社区will be able to make use of gems in general.
Turns out that as of MacRuby 0.6, something like this will compile
require 'rubygems'
require 'sequel'
DB = Sequel.mysql(...)
But fail at run time trying to load mysql
leading me to think that it loads the gems at run time.
精彩评论