Distribute MRuby's source as a Ruby gem #2937
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been playing around with some tooling for MRuby and think that having MRuby's source as a gem could be a good Idea.
Right now, the simplest way to build MRuby is to clone the repo -> edit
build_config.rb->./minirakeThe cool thing of bundling MRuby's source as a gem is that you can specify it as a Bundler dependency and use it with other tooling.
To make it clearer, here's a simple
mruby-buildcommand that can be used anywhere with any config file with a shared MRuby source: https://github.com/sagmor/mruby-build-commandThis would allow you create a stand alone
build_config.rbfile and build it with a simpleAnother more complex example I'm experimenting with is a build tool that can crossbuild an application to multiple platforms: https://github.com/loicarb/loica-build
The idea behind this is to eventually build a whole app with MRuby and crossbuild it to multiple platforms like Android, iOS and the Web.
These are currently just experiments I'm working on but thought somebody might be interested and having a simple way of working with MRuby might foster more tooling around it.