Skip to content

Instantly share code, notes, and snippets.

@zerowidth
Created December 11, 2008 19:04
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 zerowidth/34825 to your computer and use it in GitHub Desktop.
Save zerowidth/34825 to your computer and use it in GitHub Desktop.
--- /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb 2008-12-07 13:54:11.000000000 -0700
+++ /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb 2008-12-07 13:54:11.000000000 -0700
@@ -128,6 +128,10 @@
# Gem::Requirement and Gem::Version documentation.
def self.activate(gem, *version_requirements)
+ if ENV["GEM_DEBUG"]
+ STDERR.puts "activating #{gem} #{version_requirements.inspect}"
+ caller[2..-1].each {|c| STDERR.puts " #{c}"}
+ end
if version_requirements.empty? then
version_requirements = Gem::Requirement.default
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment