summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-01-19 15:27:20 +0900
committergit <svn-admin@ruby-lang.org>2026-01-19 07:14:33 +0000
commitdf479f41f81709daf00dd034e6ca3e1e88d2259d (patch)
tree2d6cd48e57c78747019d5273fdf586734435f1f8
parentfb75e99efea67ad3c2f802817345f749ffaf202c (diff)
[ruby/rubygems] Added another usage of pristine command
ref. https://github.com/rubygems/guides/issues/388 https://github.com/ruby/rubygems/commit/43f3768f09
-rw-r--r--lib/rubygems/commands/pristine_command.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rubygems/commands/pristine_command.rb b/lib/rubygems/commands/pristine_command.rb
index 93503d2b69..942b75fba1 100644
--- a/lib/rubygems/commands/pristine_command.rb
+++ b/lib/rubygems/commands/pristine_command.rb
@@ -88,6 +88,10 @@ If you have made modifications to an installed gem, the pristine command
will revert them. All extensions are rebuilt and all bin stubs for the gem
are regenerated after checking for modifications.
+Rebuilding extensions also refreshes C-extension gems against updated system
+libraries (for example after OS or package upgrades) to avoid mismatches like
+outdated library version warnings.
+
If the cached gem cannot be found it will be downloaded.
If --no-extensions is provided pristine will not attempt to restore a gem