Conrad T. wrote:
Hi, I have just started using edge rails with subversion. Thus, I was
wondering, what’s the correct way of getting your installed Gems added
to your rails project? BTW, this is for deployment purposes.
Ideally, I would like to copy the most current version of these Gems
into my rails project when I perform an ‘svn update’.
Are you talking about the Rails gems themselves (activerecord,
If so, are you using the svn:externals method of putting them into
vendor/rails, or are you using the rails:freeze:edge rake task?
Personally I use the latter, because I like the idea of testing my app
against a specific revision of Edge Rails that I’m happy with, and
keeping that entire setup in my repository. On the other hand, the
svn:externals method will probably work better with your desire to
automatically grab the latest revision of Edge when you do an svn up.
Or are you talking about third-party gems (e.g tzinfo)? If so, Rick
Olson has a nice plugin called gems:
which will help you freeze gems into your vendor directory so that they
can be deployed with your app. It won’t automatically update them for
you when you svn up, though.