diff options
author | Vít Ondruch <[email protected]> | 2019-09-11 15:33:04 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-04-06 13:07:16 +0900 |
commit | 69460791ccdacef30eebb72c7a976f986292f48d (patch) | |
tree | bb93b720dc4c823c57f4ea9ea79c959d173e3d21 /lib | |
parent | f3d69bed626e3326959dd62dbcc9ac4510e42b2f (diff) |
[rubygems/rubygems] Improve comment explaining the neccessity of `write_default_spec` method.
The intention is not obvious from the commit log and it might avoid
temptation to remove the method without further consideration.
https://github.com/rubygems/rubygems/commit/8e17c50f64
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/installer.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index 3b6c6e71f0..5aa6acf811 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -461,6 +461,9 @@ class Gem::Installer ## # 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. def write_default_spec Gem.write_binary(default_spec_file, spec.to_ruby) |