Skip to content

Instantly share code, notes, and snippets.

@davidrupp
Forked from bguthrie/gemmate.rb
Created January 14, 2010 20:38
Show Gist options
  • Save davidrupp/277484 to your computer and use it in GitHub Desktop.
Save davidrupp/277484 to your computer and use it in GitHub Desktop.
gemmate
#!/usr/bin/env ruby
if ARGV.empty?
puts "Usage: gemmate <name-of-gem>"
else
src = `gem which #{ARGV[0]}`.split.last
lib_dir = src.slice 0, src.rindex("lib")
`mate -a '#{lib_dir}'`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment