diff options
| author | Daniel Bovensiepen <[email protected]> | 2014-04-20 05:39:40 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2014-04-20 05:39:40 +0800 |
| commit | 874bec2af5800b0847d702999efbe796b1c20cfa (patch) | |
| tree | 1caf87feca38136587e33c12e0564da5650e0031 /build_config.rb | |
| parent | 44cc51fef7b68f2b93a5c51d4da9778ca43fa80e (diff) | |
| download | mruby-874bec2af5800b0847d702999efbe796b1c20cfa.tar.gz mruby-874bec2af5800b0847d702999efbe796b1c20cfa.zip | |
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
Diffstat (limited to 'build_config.rb')
| -rw-r--r-- | build_config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 => '[email protected]:masuidrive/mrbgems-example.git', :branch => 'master', :options => '-v' # include the default GEMs |
