Upgrading to Rails 1.1.5 with svn:externals

Rails announced a mandatory security patch.

For the third time: This is not like “sure, I should be flossing my teeth”. This is “yes, I will wear my helmet as I try to go 100mph on a motorcycle through downtown in rush hour”. It’s not a suggestion, it’s a prescription. So get to it!

They sound serious so I figured I better update. I’d been using my ISP’s version of Rails since it worked just fine.

rake rails:freeze:gems would work except all the vendor code would need to be checked into subversion since I use Capistrano for deployment. It’s not my code and it’s already under version control so there’s no reason for me to keep it in svn.

I found a better way. Using svn:externals I can link vendor/rails/ to a tagged version of rails 1.1.5 in the rubyonrails repository.

$ cd /path/to/your/app/vendor
$ svn ps svn:externals "rails \
http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-5/" .

UPDATE: Rails 1.1.6 replaces 1.1.5

$ cd /path/to/your/app/vendor
$ svn propset svn:externals "rails \
http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-6/" .
$ svn ci
$ svn up
$ cd ..
$ rake deploy

Posted in rails, subversion
One comment on “Upgrading to Rails 1.1.5 with svn:externals
  1. evan says:

    You’re the “I’m feeling lucky” result on google for “rails externals”. Funny how these things work.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: