Skip to content

Commit

Permalink
Stringify paths to unique paths correctly
Browse files Browse the repository at this point in the history
The problem here is that gems like compass-sass and bootstrap-sass will
build their own Importer classes that aren't being properly uniqued.

Also this resolves the issue outlined in
sass#79
  • Loading branch information
hexgnu committed Nov 28, 2016
1 parent 63acddc commit 2cdc612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sassc/rails/importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def imports(path, parent_path)
return glob_imports(base, m[2], parent_path)
end

search_paths = ([parent_dir] + load_paths).uniq
# Compass and other gems us their own special loaders
# Hence making this to_s required to have a proper uniq set.
search_paths = ([parent_dir] + load_paths).map(&:to_s).uniq

if specified_dir != "."
search_paths.map! do |path|
Expand Down

0 comments on commit 2cdc612

Please sign in to comment.