ruby-changes:55238
From: duerst <ko1@a...>
Date: Fri, 5 Apr 2019 19:39:06 +0900 (JST)
Subject: [ruby-changes:55238] duerst:r67445 (trunk): add puts statements to debug Unicode file download (temporary)
duerst 2019-04-05 19:39:01 +0900 (Fri, 05 Apr 2019) New Revision: 67445 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67445 Log: add puts statements to debug Unicode file download (temporary) Unicode file download doesn't work with Visual Studio, see e.g. https://ci.appveyor.com/project/ruby/ruby/builds/23614399/job/f8vya2l7fjdfcye4 We temporarily produce more output for debugging. Modified files: trunk/tool/downloader.rb Index: tool/downloader.rb =================================================================== --- tool/downloader.rb (revision 67444) +++ tool/downloader.rb (revision 67445) @@ -74,6 +74,9 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L74 UNICODE_PUBLIC = "http://www.unicode.org/Public/" def self.download(name, dir = nil, since = true, options = {}) + if $VERBOSE # temporary, for debugging only + $stdout.puts "Downloader::Unicode#download, name='#{name}', dir='#{dir}', since='#{since}', options='#{options.inspect}'" + end options = options.dup unicode_beta = options.delete(:unicode_beta) name_dir_part = name.sub(/[^\/]+$/, '') @@ -147,6 +150,10 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L150 # download 'http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt', # 'UnicodeData.txt', 'enc/unicode/data' def self.download(url, name, dir = nil, since = true, options = {}) + if $VERBOSE # temporary, for debugging only + $stdout.puts "Downloader#download, url='#{url}', name='#{name}', dir='#{dir}', since='#{since}', options='#{options.inspect}'" + end + options = options.dup url = URI(url) dryrun = options.delete(:dryrun) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/