1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

update-bundled_gems.rb: Fix typo and version comparison

This commit is contained in:
Nobuyoshi Nakada 2021-12-02 21:13:02 +09:00
parent 524a808d23
commit 60fc8dda64
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -12,7 +12,7 @@ unless /^[^#]/ !~ (gem = $F[0])
if $F[3] if $F[3]
if $F[3].include?($F[1]) if $F[3].include?($F[1])
$F[3][$F[1]] = gem.version.to_s $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] = [] $F[3..-1] = []
end end
end end