rbenv-bundler-ruby-version

Automatically select Ruby version from Gemfile for rbenv

brewmacoslinux
Try with needOr install directly
Source

About

Pick a ruby version from bundler's Gemfile

Commands

rbenv-bundler-ruby-version

Examples

Automatically use Ruby version specified in project's Gemfile$ cd /path/to/project && rbenv shell $(rbenv-bundler-ruby-version)
Get the Ruby version from Gemfile without changing current version$ rbenv-bundler-ruby-version
Use in .ruby-version file for automatic version selection$ rbenv-bundler-ruby-version > .ruby-version