If you want to add gems locally, which should not be committed to the repository:
-
Create a
Gemfile.localand put it in.gitignore:eval File.read('Gemfile') gem 'my-other-gem' -
Set an env var overriding the
Gemfilelocation. For example, put it in.envif you use direnv.BUNDLE_GEMFILE=Gemfile.local