Fix absolute path detection on Windows.

Closes GH-451.
This commit is contained in:
Costin Bereveanu 2011-07-01 01:01:50 -07:00 committed by Chris Eppstein
parent b7e66a7658
commit 3b18b72d64
3 changed files with 5 additions and 4 deletions

View File

@ -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)
-------------------

View File

@ -84,8 +84,8 @@ module Compass
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?

View File

@ -38,8 +38,8 @@ module Compass
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