summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVít Ondruch <[email protected]>2019-09-11 15:33:04 +0200
committerHiroshi SHIBATA <[email protected]>2023-04-06 13:07:16 +0900
commit69460791ccdacef30eebb72c7a976f986292f48d ()
treebb93b720dc4c823c57f4ea9ea79c959d173e3d21
parentf3d69bed626e3326959dd62dbcc9ac4510e42b2f (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://.com/rubygems/rubygems/commit/8e17c50f64
-rw-r--r--lib/rubygems/installer.rb3
1 files changed, 3 insertions, 0 deletions
@@ -461,6 +461,9 @@ class Gem::Installer
##
# Writes the full .gemspec specification (in Ruby) to the gem home's
# specifications/default directory.
def write_default_spec
Gem.write_binary(default_spec_file, spec.to_ruby)