Specify Compass/Sass version for grunt build

I'm on a shared server with multiple versions of Compass and Sass installed.

The latest version of Compass (0.12.6), is dependent on Sass 3.2.19, where 3.3.8 is the newest version installed on the machine.

CSS compilation is dependent on grunt & grunt-sass-contrib.

I'm looking for a way to specify either the version of Sass, or the version of Compass to use in the Grunt build process.

I have tested the latest pre-release version of Compass and this works fine: compass install --pre, but cannot install this globally, as other projects are dependent on the previous version. Likewise, if I roll back the version of Sass to 3.2.19 my project compiles but others will be affected.

I can also get the Sass to compile using compass watch and forcing the version number, but this needs to compile through Grunt rather than Compass.

I can't use RVM as I'm on Windows. Investigating Bundler (Grunt/Bundler wont use specified sass version), seems like it might bear fruit, but Grunt needs to run as a standalone, so I can't run the command bundle exec grunt as mentioned in the comments.

Does anyone have any experience of such a scenario?


Bundler was the answer.

Creating a gem file with the dependencies listed in it, then running bundle install, followed by bundler exec grunt fixed the problem.

Need Your Help

Should .NET developers *really* be spending time learning C for low-level exposure?

c clr il

When Joel Spolsky and Jeff Atwood began the disagreement in their podcast over whether programmers should learn C, regardless of their industry and platform of delivery, it sparkled quite an explos...

joomla layout handling in custom component

layout joomla components

where do I set the desired layout in the following function if is getting called like