From 60fc8dda647cbfe272c7b1bdbbb8e54c1fa7816e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 2 Dec 2021 21:13:02 +0900 Subject: [PATCH] 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 48dcaa9f2c..5b9c6b6974 100755 --- a/tool/update-bundled_gems.rb +++ b/tool/update-bundled_gems.rb @@ -12,7 +12,7 @@ unless /^[^#]/ !~ (gem = $F[0]) 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