diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-16 07:10:17 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-16 07:10:17 +0000 |
commit | 3f7647f9c20783170d00a9cfd1aaf60577cb5706 (patch) | |
tree | d062f383c173f8f6d01a516f131762a9b8788b20 /tool | |
parent | 552c0c5aa88856a642da620ef534265d19deb8ec (diff) | |
download | ruby-3f7647f9c20783170d00a9cfd1aaf60577cb5706.tar.gz |
* tool/config_files.rb: use URI.read to allow it runs with Ruby 1.8.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41331 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 1551589bf9..815e97a222 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 = open(self % name, &:read) + data = URI.read(self % name) file = dir ? File.join(dir, name) : name open(file, "wb", 0755) {|f| f.write(data)} end |