Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
acts as slimgems
diff --git a/Gemfile b/Gemfile
index 22bde6e..a429815 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,5 +1,15 @@
source ''
+require 'rubygems'
+def Gem.source_index
+ STDERR.puts "Guess who wants Gem.source_index? #{caller[0]}"
+ # see
+ Gem.const_set(:SourceIndex, do
+ def initialize(specifications={})
+ p ["Source index", specifications]
+ end
+ end)
+end unless Gem.respond_to?(:source_index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.