How to specify local Ruby gems in your Gemfile

January 26, 2021

Sometimes for development you need to test out a gem locally from another project and this article does a great job explaining how to do just that:

https://rossta.net/blog/how-to-specify-local-ruby-gems-in-your-gemfile.html

TL;DR

You can use path:

gem "tacokit", path: "/path/to/tacokit"

but you should use bundle config instead:

bundle config --local local.tacokit /path/to/tacokit

to avoid accidentally committing your temp change to production.