hawx / guard-sass

Guard::Sass automatically rebuilds sass files when modified (like sass --watch)
MIT License
88 stars 35 forks source link

Use Sass::Engine to determine owners of partials #38

Closed chrisirhc closed 11 years ago

chrisirhc commented 11 years ago

As discussed in https://github.com/hawx/guard-sass/pull/31#issuecomment-13059559, here's a pull request.

I'm new to Ruby so do let me know if you have any changes you want me to make even if it's regarding coding style.

Cheers!

hawx commented 11 years ago

Works perfectly, thanks!

chrisirhc commented 11 years ago

Cheers! :+1:

cheald commented 11 years ago

This PR caused a regression when you have mixed Sass and SCSS files. The indendation of the SCSS files causes an exception to be thrown due to indentation mismatches. I don't have a unit test just yet, but I've narrowed it down to this change.