[前][次][番号順一覧][スレッド一覧]

ruby-changes:29282

From: naruse <ko1@a...>
Date: Sun, 16 Jun 2013 17:24:19 +0900 (JST)
Subject: [ruby-changes:29282] naruse:r41334 (trunk): fix typo of r41331

naruse	2013-06-16 17:24:09 +0900 (Sun, 16 Jun 2013)

  New Revision: 41334

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41334

  Log:
    fix typo of r41331

  Modified files:
    trunk/tool/config_files.rb

Index: tool/config_files.rb
===================================================================
--- tool/config_files.rb	(revision 41333)
+++ tool/config_files.rb	(revision 41334)
@@ -2,7 +2,7 @@ require 'open-uri' https://github.com/ruby/ruby/blob/trunk/tool/config_files.rb#L2
 
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]