summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-08-23 05:46:20 +0900
committerGitHub <[email protected]>2019-08-23 05:46:20 +0900
commit14d5a86b299a2e1de990dc441710e3df5e8c4da0 (patch)
tree644e18aa7f3251e0c717012f396a7f015a680274 /Rakefile
parent246179518d8e3641dcb026fb24e8b06f9878faa8 (diff)
parente312842a1866a551c0b73bdf21f52ad94d25152a (diff)
downloadmruby-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--Rakefile22
1 files changed, 2 insertions, 20 deletions
diff --git a/Rakefile b/Rakefile
index 6d8382f74..298ef8020 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"