Skip to content

Commit

Permalink
Fix --update with absolute Windows paths.
Browse files Browse the repository at this point in the history
Closes #1328.
  • Loading branch information
nex3 committed Aug 2, 2014
1 parent 071b4b5 commit f3d2dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc-src/SASS_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* Improved edge-case parsing of special-syntax functions like `calc()` and
`expression()`.

* Fixed a bug when using `--update` with absolute paths on Windows.

## 3.3.13 (31 July 2014)

* Fixed a bug on ruby 2.0 where watching several folders was broken.
Expand Down
3 changes: 2 additions & 1 deletion lib/sass/plugin/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def file_list(individual_files = [])
template_location_array.each do |template_location, css_location|
Sass::Util.glob(File.join(template_location, "**", "[^_]*.s[ca]ss")).sort.each do |file|
# Get the relative path to the file
name = file.sub(template_location.to_s.sub(/\/*$/, '/'), "")
name = Sass::Util.pathname(file).relative_path_from(
Sass::Util.pathname(template_location.to_s)).to_s
css = css_filename(name, css_location)
sourcemap = Sass::Util.sourcemap_name(css) if engine_options[:sourcemap]
files << [file, css, sourcemap]
Expand Down

0 comments on commit f3d2dbd

Please sign in to comment.