Skip to content

Instantly share code, notes, and snippets.

@adamsanderson
Created April 22, 2010 19:24
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 adamsanderson/375691 to your computer and use it in GitHub Desktop.
Save adamsanderson/375691 to your computer and use it in GitHub Desktop.
# Track down where requirements are coming from.
# ruby -r require_inspector.rb <file>
def require path
puts "require: (#{path}) #{caller[0]}"
super
end
def gem(*args)
puts "gem: #{args.inspect} #{caller[0]}"
super(*args)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment