зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
552c0c5aa8
Коммит
3f7647f9c2
|
@ -1,3 +1,7 @@
|
|||
Sun Jun 16 16:04:38 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* tool/config_files.rb: use URI.read to allow it runs with Ruby 1.8.5.
|
||||
|
||||
Sun Jun 16 14:32:25 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bary_pack) Extracted from rb_integer_pack_internal.
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче