Q:

How do I downgrade to an old version of compass using gem install?

I've been using compass from http://compass-style.org/ to manage my sites css for a long time. I just installed the newest version and I get a rather unpleasant error, that has as a side effect corrupted all my css files. How do I downgrade to an older version of this?
Thanks,
Matt

A:

I just had a similar situation and there is something else missing from @corroded answer. Since @Matt Lynn is downgrading, he needs to uninstall the existing version of compass.
$ sudo gem uninstall compass

$ sudo gem install compass --version versionnumber

Otherwise you will end up with two different versions of compass.

A:

sudo gem install compass --version versionnumber

A:

If you want to automate it in a script (I had the same problem after a gem update), just do the following:

Install your favored version (if you don't have already)
gem install compass -v 1.2.3
Uninstall newer versions
gem uninstall compass -v '>1.2.3' --force

