Thursday, April 9, 2015

How to specify a local gem in your Gemfile

If you're developing a gem and you want to test it out locally in another project, this is easily accomplished by specifying the path to the local gem in your Gemfile:

gem 'bears', path: '/path/to/bears/gem'

and boom, it's there. One bundle install later and you'll be good to go.