[rubygems/rubygems] Unconditionally set installed_by_version

It has been supported since RubyGems 2.2.0 via 4525e45a4d

Signed-off-by: Samuel Giddins <segiddins@segiddins.me>

bf39c583e8
This commit is contained in:
Samuel Giddins 2024-09-19 15:10:40 -07:00 committed by git
parent 7836626f92
commit 43e3416b70
6 changed files with 5 additions and 10 deletions

View file

@ -131,7 +131,7 @@ module Bundler
Bundler::Index.build do |index|
files.each do |file|
next unless spec = Bundler.load_gemspec(file)
Bundler.rubygems.set_installed_by_version(spec)
spec.installed_by_version = Gem::VERSION
spec.source = self
Bundler.rubygems.validate(spec)