Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Installer#write_default_spec
write_default_spec
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/installer.rb, line 455
def write_default_spec
Gem.write_binary(default_spec_file, spec.to_ruby)
end
Writes the full .gemspec specification (in Ruby) to the gem home’s specifications/default directory.
In contrast to write_spec, this keeps file lists, so the ‘gem contents` command works.
See also
#write_cache_file
#write_spec
#write_build_info_file
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0