Compass mixes not found when used directly from ruby

I am creating a new ruby ​​script using the GLI gem that uses Compass inside. However, whenever I run the application using bundle exec SASS / Compass, it seems that it cannot find the mixes that I include in my .scss file. I get the following error ...

error: File to import not found or unreadable: compass/css3.

I know the solution is to set the environment variable. However, I do not mean which variable should be set.

Update :

I should add that this will follow another post that I had - Using Compass from Ruby (and not the shell)

Here is the code that I use to call the compass from my application.

 require 'compass' require 'sass/plugin' compiler = Compass::Compiler.new('.','.','.',{:style => :compact}) compiler.compile(sass_file,css_file) 

Here is the error that gets the throw

error: File to import was not found or unreadable: compass / css3.

Download Path: /Volumes/MacRAID/joeworkman/Desktop/stake-test/Badges/Badges.source/Contents

It seemed to me that this only happened when I was working under bundle exec . However, this happens every time, even if I usually run it.

Update # 2 :

I am pretty sure this is a SASS :load_paths . If I set the environment variable SASS_PATH to the value below, everything will work. However, I do not want to depend on environment variables.

~/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/frameworks/compass/stylesheets

0
ruby sass compass-sass
source share
1 answer

Make sure you check the answers below. Between my conclusions published here and the suggestions made in another post, the answer to the question.

Using Compass from Ruby (not a shell)

0
source share

All Articles