From 874bec2af5800b0847d702999efbe796b1c20cfa Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Sun, 20 Apr 2014 05:39:40 +0800 Subject: Implement :checksum_hash mrbgem option. This allows to use a mgem with a specific checksum hash. The following modification were necessary to implement this function: - add run_checkout build command to use 'git checkout' - skip shallow copy in case checksum_hash is used - make 'master' the default branch if branch isn't defined --- build_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build_config.rb') diff --git a/build_config.rb b/build_config.rb index 3f8009047..795251486 100644 --- a/build_config.rb +++ b/build_config.rb @@ -16,7 +16,7 @@ MRuby::Build.new do |conf| # g.cc.flags << '-g' # append cflags in this gem # end # conf.gem 'examples/mrbgems/c_and_ruby_extension_example' - # conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master' + # conf.gem :github => 'masuidrive/mrbgems-example', :checksum_hash => '76518e8aecd131d047378448ac8055fa29d974a9' # conf.gem :git => 'git@github.com:masuidrive/mrbgems-example.git', :branch => 'master', :options => '-v' # include the default GEMs -- cgit v1.2.3