Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bensheldon/rbenv-version-file
rbenv plugin to read from .rbenv-version file if present
https://github.com/bensheldon/rbenv-version-file
Last synced: 24 days ago
JSON representation
rbenv plugin to read from .rbenv-version file if present
- Host: GitHub
- URL: https://github.com/bensheldon/rbenv-version-file
- Owner: bensheldon
- License: mit
- Created: 2024-03-20T11:57:31.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-20T15:02:19.000Z (8 months ago)
- Last Synced: 2024-10-09T13:07:10.323Z (about 1 month ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rbenv-version-file
rbenv plugin to look for an `.rbenv-version` file before using the `.ruby-version`.
Why? You may want to differentiate between the version activated by rbenv and the version used by other automated tooling. For example, consider this scenario:
- For local development, you want to use a custom-compiled system Ruby that is in the PATH and is not managed by rbenv. (`.rbenv-version` contains `system`)
- For CI and other automated tools like Dependabot, you want to use a version specified in a `.ruby-version` file (`.ruby-version` contains `3.3.0`)## Installation
Use git to check out a version of the plugin into the rbenv plugins directory:
```shell
git clone https://github.com/bensheldon/rbenv-version-file.git "$(rbenv root)"/plugins/rbenv-version-file
```