summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--build_config.rb6
-rw-r--r--doc/guides/mrbgems.md5
2 files changed, 8 insertions, 3 deletions
diff --git a/build_config.rb b/build_config.rb
index 751317c7a..c0c079c89 100644
--- a/build_config.rb
+++ b/build_config.rb
@@ -18,9 +18,9 @@ MRuby::Build.new do |conf|
# end
# conf.gem 'examples/mrbgems/c_and_ruby_extension_example'
# conf.gem :core => 'mruby-eval'
- # conf.gem :mgem => 'mruby-io'
- # conf.gem :github => 'iij/mruby-io'
- # conf.gem :git => '[email protected]:iij/mruby-io.git', :branch => 'master', :options => '-v'
+ # conf.gem :mgem => 'mruby-onig-regexp'
+ # conf.gem :github => 'mattn/mruby-onig-regexp'
+ # conf.gem :git => '[email protected]:mattn/mruby-onig-regexp.git', :branch => 'master', :options => '-v'
# include the default GEMs
conf.gembox 'default'
diff --git a/doc/guides/mrbgems.md b/doc/guides/mrbgems.md
index 0fcc936ed..184f62954 100644
--- a/doc/guides/mrbgems.md
+++ b/doc/guides/mrbgems.md
@@ -37,6 +37,11 @@ conf.gem :mgem => 'mruby-yaml'
conf.gem :mgem => 'yaml' # 'mruby-' prefix could be omitted
```
+For specifying commit hash to checkout use `:checksum_hash` option:
+```ruby
+conf.gem mgem: 'mruby-redis', checksum_hash: '3446d19fc4a3f9697b5ddbf2a904f301c42f2f4e'
+```
+
If there is missing dependencies, mrbgem dependencies solver will reference
mrbgem from core or mgem-list.