In Ruby on Rails, is copying vendor/gems/somegem from one project to another project the same as freezing the gem?
问题 I was told that copying from vendor/gems/somegem from proj1 to proj2's folder will essentially freeze the gem into the project. The gem somegem is an internal gem, so there is no repository to install it from. But I wonder how will it work with Rails 3, since we need to use gem 'somegem' in the Gemfile, and supposedly when we do a gem list , the name of the gem should show up. What is a good / proper way to do this? thanks. 回答1: I believe the Gemfile.lock file stores the versions of the gems