ruby-changes:58150
From: Kazuhiro <ko1@a...>
Date: Mon, 7 Oct 2019 19:44:08 +0900 (JST)
Subject: [ruby-changes:58150] 3374e1450c (master): Write yaml and json under destdir and print to stdout
https://git.ruby-lang.org/ruby.git/commit/?id=3374e1450c From 3374e1450c18c33420f616f41ad7f884fdb4df21 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Mon, 7 Oct 2019 19:33:33 +0900 Subject: Write yaml and json under destdir and print to stdout diff --git a/tool/make-snapshot b/tool/make-snapshot index ecc3cd5..666fd1d 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -628,8 +628,16 @@ revisions.collect {|rev| package(vcs, rev, destdir, tmp)}.flatten.each do |name| https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L628 end end -File.write('info.yml', info.values.to_yaml) -File.write('info.json', info.values.to_json) +yaml = info.values.to_yaml +json = info.values.to_json +puts "#{$colorize.pass('JSON:')}" +puts yaml +puts "#{$colorize.pass('YAML:')}" +puts json +infodir = Pathname(destdir) + 'info' +infodir.mkpath +(infodir+'info.yml').write(yaml) +(infodir+'info.json').write(json) exit false if !success -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/