You can run several versions of the foundation. There are several documents on how to do this:
http://foundation.zurb.com/docs/sass.html
in the section Starting multiple versions
I wanted to have the latest version of Foundation 3, as well as the latest version 4. Here you can check the available versions:
https://rubygems.org/gems/zurb-foundation/versions
I saw that version 3.2.5 was the latest. You can install it by running gem.
gem install zurb-foundation --version 3.2.5
now if you run gem list
you will see something like zurb-foundation (4.0.3, 4.0.2, 3.2.5) at the end
Now, if you run the compass, it will automatically use the latest version, so we will need to use the package. Create a new directory and create a gemfile.
mkdir myApp cd myApp touch Gemfile
then edit the Gemfile with your editor so that it looks like this:
source "https://rubygems.org"
then run bundler for compass comp:
bundle exec compass create . -r zurb-foundation --using foundation
this will create everything, as usual, like a compass, but with the specific version that you specified.