mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
update-bundled_gems.rb: Fix typo and version comparison
This commit is contained in:
parent
524a808d23
commit
60fc8dda64
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user