From 4940ddb9fcc1484730781a9a0b2e30957a8f6735 Mon Sep 17 00:00:00 2001 From: Takeshi Watanabe Date: Thu, 22 Mar 2018 12:42:41 +0900 Subject: Add `:path` option for git repository. --- doc/guides/mrbgems.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/guides/mrbgems.md b/doc/guides/mrbgems.md index 258f405b5..8dac0dc86 100644 --- a/doc/guides/mrbgems.md +++ b/doc/guides/mrbgems.md @@ -26,6 +26,11 @@ conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master' conf.gem :bitbucket => 'mruby/mrbgems-example', :branch => 'master' ``` +You can specify the sub directory of the repository with `:path` option: +```ruby +conf.gem github: 'mruby/mruby', path: 'mrbgems/mruby-socket' +``` + To use mrbgem from [mgem-list](https://github.com/mruby/mgem-list) use `:mgem` option: ```ruby conf.gem :mgem => 'mruby-yaml' -- cgit v1.2.3