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

ruby-changes:70019

From: Nobuyoshi <ko1@a...>
Date: Thu, 2 Dec 2021 22:21:44 +0900 (JST)
Subject: [ruby-changes:70019] 60fc8dda64 (master): update-bundled_gems.rb: Fix typo and version comparison

https://git.ruby-lang.org/ruby.git/commit/?id=60fc8dda64

From 60fc8dda647cbfe272c7b1bdbbb8e54c1fa7816e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 2 Dec 2021 21:13:02 +0900
Subject: update-bundled_gems.rb: Fix typo and version comparison

---
 tool/update-bundled_gems.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb
index 48dcaa9f2cf..5b9c6b6974e 100755
--- a/tool/update-bundled_gems.rb
+++ b/tool/update-bundled_gems.rb
@@ -12,7 +12,7 @@ unless /^[^#]/ !~ (gem = $F[0]) https://github.com/ruby/ruby/blob/trunk/tool/update-bundled_gems.rb#L12
   if $F[3]
     if $F[3].include?($F[1])
       $F[3][$F[1]] = gem.version.to_s
-    elsif $F[2] != gem.version and /\A\h+\z/ =~ $F[3]
+    elsif Gem::Version.new($F[1]) != gem.version and /\A\h+\z/ =~ $F[3]
       $F[3..-1] = []
     end
   end
-- 
cgit v1.2.1


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

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