Skip to content

Add Bundler config and .gitignore for local gem installation#59

Merged
chorrell merged 1 commit intomainfrom
add-bundle-config-and-gitignore
Feb 10, 2026
Merged

Add Bundler config and .gitignore for local gem installation#59
chorrell merged 1 commit intomainfrom
add-bundle-config-and-gitignore

Conversation

@chorrell
Copy link
Owner

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 configurations
  • coverage/ - test coverage reports

Benefits

No permission issues - developers can run bundle install without 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:

  1. bundle install works without sudo
  2. Gems install to vendor/bundle/ automatically
  3. Git properly ignores vendor directory and system files

- 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>
@chorrell chorrell merged commit 7553aa9 into main Feb 10, 2026
1 check passed
@chorrell chorrell deleted the add-bundle-config-and-gitignore branch February 10, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant