Yes! Truth.
When you use the --deployment flag, the Bundler ensures that every gem you need is a seller, i.e. they are copied to a predetermined place in the structure of your application folder (which, as a rule, is vendor/bundle in Rails by agreement). This is good for two things.
First, if you have limited permissions that prevent the installation of stones on your deployment computer, then let you have all the necessary stones in your application.
Secondly, if you want to crack the actual code in gems, you can do it on your copies without affecting system gems. The changes you make will only affect the application you are working on.
This use approach, used for other uses, ensures that you are using a specific version of the gem and your application will work even if the system gems have been upgraded to a higher version that will break your application. However, Bundler himself made this use case mostly obsolete, since he automated the installation and binding of specific versions of gemstones.
And yes, the seller will inflate your application code. Gemfile.lock is just a list of the gems you need. If you sell your gems, they will be fully copied to your application.
So, I recommend you not the supplier of your gems (this also means that you do not use the --deployment flag) if you do not have one of the reasons mentioned above.
edgerunner Sep 09 '10 at 23:56 on 2010-09-09 23:56
source share