Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute MRuby's source as a Ruby gem #2937

Merged
merged 4 commits into from Oct 1, 2015
Merged

Distribute MRuby's source as a Ruby gem #2937

merged 4 commits into from Oct 1, 2015

Conversation

@sagmor
Copy link
Contributor

sagmor commented Sep 2, 2015

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 -> ./minirake

The 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-build command that can be used anywhere with any config file with a shared MRuby source: https://github.com/sagmor/mruby-build-command
This would allow you create a stand alone build_config.rb file and build it with a simple

mruby-build [FILE]

Another 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.

@joonjeong
Copy link

joonjeong commented Sep 3, 2015

I think this is really cool feature.

@sagmor
Copy link
Contributor Author

sagmor commented Sep 6, 2015

I've done some more experiments around this tooling and is working pretty well.
In fact, I've improved upon the build command idea and built a small command line tool that can build and test configs and I'm even adding generators (sagmor/mruby-cli#1) to bootstrap projects quickly.

Let me know if you like the approach.

@sagmor sagmor changed the title [WIP] Distribute MRuby's source as a Ruby gem Distribute MRuby's source as a Ruby gem Sep 6, 2015
matz added a commit that referenced this pull request Oct 1, 2015
Distribute MRuby's source as a Ruby gem
@matz matz merged commit d12926d into mruby:master Oct 1, 2015
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@sagmor
Copy link
Contributor Author

sagmor commented Oct 1, 2015

Awesome.

I can backport this to make 1.0.0 and 1.1.0 releases on rubygems (for completeness)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.