mruby-require adds require support to mruby This is based on iij's fork of mruby: https://github.com/iij/mruby
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'mattn/mruby-require'
end
To work properly, mruby-require must be the last mrbgem specified in the build configuration.
When mruby-require is being used, additional mrbgems must be required to be used.
For example, if using mruby-onig-regexp, you should add the following to your code:
require 'mruby-onig-regexp'
Set MRUBY_REQUIRE environment variable as comma separated values like following
MRUBY_REQUIRE=mruby-onig-regexp,mruby-xquote