readded mtime to importer class
This commit is contained in:
parent
008cffa3ef
commit
7e583e5f58
@ -43,7 +43,12 @@ module Compass
|
|||||||
other.class == self.class
|
other.class == self.class
|
||||||
end
|
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={})
|
def key(uri, options={})
|
||||||
@uri, @options = uri, options
|
@uri, @options = uri, options
|
||||||
|
Loading…
Reference in New Issue
Block a user