1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix typo of r41331

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-06-16 08:24:09 +00:00
parent 107dbe525a
commit a70a7ea2fe

View file

@ -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