Last active
February 11, 2025 10:07
-
-
Save CKolkey/bf0bef4fa931e75d635e91b12d0c188a to your computer and use it in GitHub Desktop.
Using personal gems with Bundle without bothering your colleagues.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: When updating gems, the ENV var below will need to be _unset_, so bundler updates the correct lock file. | |
# NOTE 2: The name 'Gemfile.dev' isn't important - it could be `dev_gems.rb` or anything else. | |
# SETUP: | |
# - Set the ENV var: BUNDLE_GEMFILE=Gemfile.dev in your app dir | |
# - Add Gemfile.dev and Gemfile.dev.lock to your .gitignore (global or local) | |
# - Copy the rest of this gist into Gemfile.dev (in your project root): | |
# Copy real lock file to ensure it gets priority | |
FileUtils.cp("Gemfile.lock", "Gemfile.dev.lock") | |
# Source real gemfile | |
eval_gemfile("Gemfile") | |
# Add personal gems below here | |
group :development do | |
gem "Your Gems Here" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment