require specific version #131

Closed
brewster1134 opened this Issue Jan 24, 2014 · 5 comments

Projects

None yet

3 participants

@brewster1134

How can i require a specific ruby library version? I ran into issues with having the latest susy beta installed, but i need to require ~> 1.0 when running grunt compass.

currently i have to uninstall the beta before running grunt, and then reinstalling it when i need it. ><

@sindresorhus
grunt member

That's what Bundler is for. Questions => StackOverflow ;)

@brewster1134

I apologize for not providing enough information up front... i was in a bit of a hurry..

I have a gem version specified via bundler but grunt compass does not respect it.

Gemfile

gem 'susy', '~> 1.0'

Gruntfile

module.exports = {
  app: {
    options: {
      require : [
        'susy'
      ]
    }
  }
};

it still tries compiling the sass with the susy 2.0 library

@brewster1134

@sindresorhus can you re-open this issue?

@vladikoff vladikoff reopened this Jan 28, 2014
@sindresorhus
grunt member

You have to use the bundleExec option: https://github.com/gruntjs/grunt-contrib-compass#bundleexec

@brewster1134

👍 perfect. thnx!

@vladikoff vladikoff closed this Jan 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment