Skip to content

Instantly share code, notes, and snippets.

@slyphon
Created January 17, 2012 22:04
Show Gist options
  • Save slyphon/115d23122e5a6bb32ff6 to your computer and use it in GitHub Desktop.
Save slyphon/115d23122e5a6bb32ff6 to your computer and use it in GitHub Desktop.
diff --git a/lib/rubygems/indexer.rb b/lib/rubygems/indexer.rb
index 9cd32f5..f9cbe68 100644
--- a/lib/rubygems/indexer.rb
+++ b/lib/rubygems/indexer.rb
@@ -586,6 +586,7 @@ class Gem::Indexer
specs = map_gems_to_specs updated_gems
prerelease, released = specs.partition { |s| s.version.prerelease? }
+ Gem::Specification.dirs = []
files = build_marshal_gemspecs
Gem.time 'Updated indexes' do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment