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

ruby-changes:48304

From: hsbt <ko1@a...>
Date: Wed, 25 Oct 2017 15:58:30 +0900 (JST)
Subject: [ruby-changes:48304] hsbt:r60418 (trunk): Fixed conflicted variables. v is already used another condition.

hsbt	2017-10-25 15:58:24 +0900 (Wed, 25 Oct 2017)

  New Revision: 60418

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60418

  Log:
    Fixed conflicted variables. v is already used another condition.
    
      [Misc #14050][ruby-core:83553]

  Modified files:
    trunk/tool/make-snapshot
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 60417)
+++ tool/make-snapshot	(revision 60418)
@@ -369,8 +369,8 @@ _touch-unicode-files: https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L369
     if File.exist?("gems/bundled_gems")
       gems = Dir.glob("gems/*.gem")
       gems -= File.readlines("gems/bundled_gems").map {|line|
-        n, v, _ = line.split(' ')
-        "gems/#{n}-#{v}.gem"
+        name, version, _ = line.split(' ')
+        "gems/#{name}-#{version}.gem"
       }
       FileUtils.rm_f(gems)
     else

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

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