summaryrefslogtreecommitdiff
path: root/tool/update-bundled_gems.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-02 21:13:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-02 21:13:02 +0900
commit60fc8dda647cbfe272c7b1bdbbb8e54c1fa7816e (patch)
tree5a80d5e954a9df18d33232950e8d07875d40f033 /tool/update-bundled_gems.rb
parent524a808d23f1ed3eca946236e98e049b55458e71 (diff)
update-bundled_gems.rb: Fix typo and version comparison
Diffstat (limited to 'tool/update-bundled_gems.rb')
-rwxr-xr-xtool/update-bundled_gems.rb2
1 files changed, 1 insertions, 1 deletions
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