You must define the gemstones that you want to freeze the application in the GemFile itself before starting the installation of the package. After that, you define and run it bundle install, it will generate Gemfile.lock with versions of all installed stones and their dependencies.
Again, the .lock file is automatically generated and should not be manually modified. this is what for gemfile.
source
share