Open heygrady opened 12 years ago
https://github.com/chriseppstein/compass/blob/stable/lib/compass/configuration.rb#L77
Changing line 77 to Data.strip_trailing_separator(name)
seems to work.
#...
if name.to_s =~ /dir|path/
Data.strip_trailing_separator(name)
end
#...
+1, adding the following to your extension library file will act as a workaround:
module Compass
module Configuration
def self.strip_trailing_separator(*args)
Data.strip_trailing_separator(*args)
end
end
end
+1. Just encountered this same problem. The workaround posted by coderanger worked for me.
http://compass-style.org/help/tutorials/extending/#adding-configuration-properties
The documentation clearly advises the use of
add_configuration_property
for creating new configuration properties but it is broken when trying to add a property that is a directory or path.This code appears to work just fine:
This code results in an error:
The reason is that any config variable with "dir" or "path" in the name will trigger a call to
strip_trailing_seperator
but that method appears undefined in that context.The problem can be traced to the Compass Configuration module, on line 77. The function
strip_trailing_separator
doesn't appear to be able to be called from a class method.I tested this using a config file identical to this: