The Gemfile.lock is the snapshot file keeping the installed gem names, and versions.
The Gemfile.lock is the snapshot file, where bundler, after installing any needed gems to your system, bundler writes a snapshot of all of the gems and versions of the installed gems. The Gemfile.lock makes your application a single package of both your own code and the third-party code it ran the last time you know for sure that everything worked.
- Understanding the Gemfile.lock
- What is the difference between Gemfile and Gemfile.lock in Ruby on Rails