readded mtime to importer class

This commit is contained in:
Scott Davis 2011-06-09 15:43:38 -04:00
parent 008cffa3ef
commit 7e583e5f58

View File

@ -43,7 +43,12 @@ module Compass
other.class == self.class
end
def mtime(uri, options)
@uri, @options = uri, options
files.sort.inject(Time.at(0)) do |max_time, file|
(t = File.mtime(file)) > max_time ? t : max_time
end
end
def key(uri, options={})
@uri, @options = uri, options