summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-05 10:39:01 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-05 10:39:01 +0000
commit7fd8cdf398456b2da0f6fe541b77826051e60624 (patch)
treebf701a7a8d2ad3ba475fe4ed575ba62a20ce3390 /tool/downloader.rb
parentb2311c67671c69df8c390f22b3cb961f7be39a75 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index 0386fe273b..dce135587c 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -74,6 +74,9 @@ class Downloader
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
# 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)