Strip some trailing whitespace.

This commit is contained in:
Chris Eppstein 2009-04-03 12:09:45 -07:00
parent e18ed8118b
commit bb197d849b

View File

@ -25,7 +25,7 @@ module Compass
else else
logger.record :directory, separate("#{basename(dir)}/") logger.record :directory, separate("#{basename(dir)}/")
FileUtils.mkdir_p(dir) unless options[:dry_run] FileUtils.mkdir_p(dir) unless options[:dry_run]
end end
end end
# Write a file given the file contents as a string # Write a file given the file contents as a string
@ -67,7 +67,7 @@ module Compass
def basename(file) def basename(file)
relativize(file) {|f| File.basename(file)} relativize(file) {|f| File.basename(file)}
end end
def relativize(path) def relativize(path)
if path.index(working_path+File::SEPARATOR) == 0 if path.index(working_path+File::SEPARATOR) == 0
path[(working_path+File::SEPARATOR).length..-1] path[(working_path+File::SEPARATOR).length..-1]