Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !299

Ignore `.ruby-version` file

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge gw-ruby-version into master Dec 07, 2015
  • Overview 12
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: gracewashere

Closes #289 (closed)

Problem:

Different ruby version managers and installers use different formats for the .ruby-version file. Contributors may need to change the contents of that file to get their own development environment working. They do not want to commit these changes to version control because they would affect other contributors.

Solution:

Don't track the .ruby-version file in git. Instead, have the bin/setup script generate the suggested .ruby-version file, and let contributors customize it freely on their own system.

The only pain point developers might feel is that when the project updates the ruby version, all contributors will need to manually update their .ruby-version files.

This should not be much of a pain. Ruby version updates are relatively infrequent, and an incorrect .ruby-version setup will raise a fatal error quickly, with a clear error message.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gw-ruby-version