diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-16 08:24:09 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-16 08:24:09 +0000 |
commit | a70a7ea2fe84f932728bd796606824bef6263a31 (patch) | |
tree | 5efe820c99bd4475b406b9ec6e541a5bbff4465c /tool | |
parent | 107dbe525a8b2ac2cb1361870201a404cef163c2 (diff) | |
download | ruby-a70a7ea2fe84f932728bd796606824bef6263a31.tar.gz |
fix typo of r41331
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r-- | tool/config_files.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |