Skip to content

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

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.