instance method
Gem::Installer#write_default_spec
write_default_spec
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/installer.rb, line 420
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.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0