diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-23 05:46:20 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-23 05:46:20 +0900 |
| commit | 14d5a86b299a2e1de990dc441710e3df5e8c4da0 (patch) | |
| tree | 644e18aa7f3251e0c717012f396a7f015a680274 /Rakefile | |
| parent | 246179518d8e3641dcb026fb24e8b06f9878faa8 (diff) | |
| parent | e312842a1866a551c0b73bdf21f52ad94d25152a (diff) | |
| download | mruby-14d5a86b299a2e1de990dc441710e3df5e8c4da0.tar.gz mruby-14d5a86b299a2e1de990dc441710e3df5e8c4da0.zip | |
Merge pull request #4656 from shuujii/refine-processing-for-gem-lock-file
Refine processing for gem lock file
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 22 |
1 files changed, 2 insertions, 20 deletions
@@ -8,10 +8,10 @@ MRUBY_BUILD_HOST_IS_OPENBSD = RUBY_PLATFORM.include?('openbsd') $LOAD_PATH << File.join(MRUBY_ROOT, "lib") # load build systems -require 'yaml' require "mruby-core-ext" require "mruby/build" require "mruby/gem" +require "mruby/lockfile" # load configuration file MRUBY_CONFIG = (ENV['MRUBY_CONFIG'] && ENV['MRUBY_CONFIG'] != '') ? ENV['MRUBY_CONFIG'] : "#{MRUBY_ROOT}/build_config.rb" @@ -125,25 +125,7 @@ task :all => depfiles do MRuby.each_target do print_build_summary end - - require 'mruby/source' - - locks_result = { - 'mruby_version' => { - 'version' => MRuby::Source::MRUBY_VERSION, - 'release_no' => MRuby::Source::MRUBY_RELEASE_NO - }, - 'builds' => {} - } - if File.exist? "#{MRUBY_ROOT}/.git" - locks_result['mruby_version']['git_commit'] = `git --git-dir '#{MRUBY_ROOT}/.git' --work-tree '#{MRUBY_ROOT}' rev-parse --verify HEAD`.strip - end - - MRuby.each_target do - locks_result['builds'][name] = locks - end - - File.write MRUBY_CONFIG_LOCK_FILE, YAML.dump(locks_result) + MRuby::Lockfile.write end desc "run all mruby tests" |
