Install specific version of bundler from Gemfile.lock


Problem

Sometimes you’ll need to install very specific verion of bundler and run bundle install for example on your Ruby on Rails project.

Super easy way to do that with command line:

gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"

Stay tuned!