Skip to content

Instantly share code, notes, and snippets.

@mkempe
Created June 18, 2013 11:35
Show Gist options
  • Save mkempe/5804668 to your computer and use it in GitHub Desktop.
Save mkempe/5804668 to your computer and use it in GitHub Desktop.
Find path of installed gem through ruby.
specs = Gem.latest_spec_for 'foo'
puts specs.gem_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment