summaryrefslogtreecommitdiffhomepage
path: root/doc/guides/mrbgems.md
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-03-22 17:06:31 +0900
committerGitHub <[email protected]>2018-03-22 17:06:31 +0900
commit8e8bc9e40b2054881cde7bb16b29173c9ca6a048 (patch)
treee42883e587d5145628e0a7998d1d2fb6fa28960d /doc/guides/mrbgems.md
parentfb78f1089304e09932f022800395a6c0f507dda0 (diff)
parent4940ddb9fcc1484730781a9a0b2e30957a8f6735 (diff)
downloadmruby-8e8bc9e40b2054881cde7bb16b29173c9ca6a048.tar.gz
mruby-8e8bc9e40b2054881cde7bb16b29173c9ca6a048.zip
Merge pull request #3974 from take-cheeze/repo_path
Add `:path` option for git repository.
Diffstat (limited to 'doc/guides/mrbgems.md')
-rw-r--r--doc/guides/mrbgems.md5
1 files changed, 5 insertions, 0 deletions
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'