Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Installer#write_spec
write_spec
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/installer.rb, line 458
def write_spec
spec.installed_by_version = Gem.rubygems_version
Gem.write_binary(spec_file, spec.to_ruby_for_cache)
end
Writes the .gemspec specification (in Ruby) to the gem home’s specifications directory.