Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created May 7, 2009 06:57
Show Gist options
  • Select an option

  • Save toolmantim/107955 to your computer and use it in GitHub Desktop.

Select an option

Save toolmantim/107955 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
gem = Gem.cache.search(Gem::Dependency.new(ARGV.first, '> 0')).last
system "mate #{gem.full_gem_path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment