Permalink
Browse files

Fix absolute path detection on Windows.

Closes GH-451.
  • Loading branch information...
1 parent b7e66a7 commit 3b18b72d641aa50aa8d5032fcb9b2357f8aadccc @schniper schniper committed with chriseppstein Jul 1, 2011
@@ -22,6 +22,7 @@ The Documentation for the [latest preview release](http://beta.compass-style.org
* Vertical rhythm now has a minimum padding that defaults to 2px.
This makes some edge cases look better.
* New mixin `force-wrap` prevents URLs and long lines of text from breaking layouts.
+* Fix absolute path detection on windows.
0.11.3 (06/11/2011)
-------------------
@@ -84,8 +84,8 @@ def determine_project_directory(working_path, options)
end
def absolute_path?(path)
- # This is only going to work on unix, gonna need a better implementation.
- path.index(File::SEPARATOR) == 0
+ # Pretty basic implementation
+ path.index(File::SEPARATOR) == 0 || path.index(':') == 1
end
def skip_extension_discovery?
@@ -38,8 +38,8 @@ def resolve_additional_import_paths
end
def absolute_path?(path)
- # This is only going to work on unix, gonna need a better implementation.
- path.index(File::SEPARATOR) == 0
+ # Pretty basic implementation
+ path.index(File::SEPARATOR) == 0 || path.index(':') == 1
end
def to_sass_engine_options

0 comments on commit 3b18b72

Please sign in to comment.