Skip to content

Instantly share code, notes, and snippets.

@martin-brennan
Last active August 29, 2015 14:12
Show Gist options
  • Save martin-brennan/0f934be6a497c443022a to your computer and use it in GitHub Desktop.
Save martin-brennan/0f934be6a497c443022a to your computer and use it in GitHub Desktop.
gem bin include lib
path = __FILE__
while File.symlink?(path)
path = File.expand_path(File.readlink(path), File.dirname(path))
end
$:.unshift(File.join(File.dirname(File.expand_path(path)), '..', 'lib'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment