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 authored and indirect committed Apr 10, 2018
1 parent 4d04aa1 commit b2c7d4d
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 @@ -96,7 +96,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 b2c7d4d

Please sign in to comment.