Add Bundler config and .gitignore for local gem installation#59
Merged
Add Bundler config and .gitignore for local gem installation#59
Conversation
- Add .bundle/config to set local vendor/bundle path by default - Add .gitignore to exclude vendor/bundle/ and other common files - This ensures 'bundle install' works without sudo on all systems - Gems install to project-local directory instead of system location Benefits: - No permission issues when running bundle install - Each developer gets isolated gem environment - Consistent setup across all development machines - Avoids conflicts with system Ruby gems Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Bundler configuration and .gitignore to ensure seamless local development without permission issues.
Changes
1. Added
This configures Bundler to install gems locally in instead of system directories, eliminating the need for when running
bundle install.2. Added
Excludes common files that shouldn't be committed:
vendor/bundle/- installed gems (large, system-specific).bundle/config.local- developer-specific overrides.DS_Store- macOS system files.vscode/- editor configurationscoverage/- test coverage reportsBenefits
✅ No permission issues - developers can run
bundle installwithout sudo✅ Isolated environments - each project has its own gem versions
✅ Consistent setup - works the same on all developer machines
✅ Cleaner repository - excludes generated/system-specific files
✅ Faster setup - no manual configuration needed
Testing
Verified that after cloning the repository:
bundle installworks without sudovendor/bundle/automatically