From a70a7ea2fe84f932728bd796606824bef6263a31 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 16 Jun 2013 08:24:09 +0000 Subject: [PATCH] fix typo of r41331 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/config_files.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/config_files.rb b/tool/config_files.rb index 815e97a222..676c355e05 100644 --- a/tool/config_files.rb +++ b/tool/config_files.rb @@ -2,7 +2,7 @@ require 'open-uri' ConfigFiles = "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=%s;hb=HEAD" def ConfigFiles.download(name, dir = nil) - data = URI.read(self % name) + data = URI(self % name).read file = dir ? File.join(dir, name) : name open(file, "wb", 0755) {|f| f.write(data)} end