Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Created April 16, 2015 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenderlove/430e4154c970ce8e94fe to your computer and use it in GitHub Desktop.
Save tenderlove/430e4154c970ce8e94fe to your computer and use it in GitHub Desktop.
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index f01d237..f97c232 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -292,7 +292,7 @@ class Gem::Installer
say spec.post_install_message unless spec.post_install_message.nil?
- Gem::Installer.install_lock.synchronize { Gem::Specification.add_spec spec }
+ Gem::Installer.install_lock.synchronize { Gem::Specification.reset }
run_post_install_hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment