css_sprite 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/css_sprite.gemspec +1 -1
- data/lib/css_sprite/sprite.rb +7 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.2
|
data/css_sprite.gemspec
CHANGED
data/lib/css_sprite/sprite.rb
CHANGED
@@ -40,7 +40,13 @@ class Sprite
|
|
40
40
|
else
|
41
41
|
stylesheet_path = dest_css_path(directory)
|
42
42
|
end
|
43
|
-
|
43
|
+
return true unless File.exist?(stylesheet_path)
|
44
|
+
stylesheet_mtime = File.new(stylesheet_path).mtime
|
45
|
+
Dir["**/*"].each do |path|
|
46
|
+
# it is a directory
|
47
|
+
return true if path !~ /.*\..*/ and File.new(path).mtime > stylesheet_mtime
|
48
|
+
end
|
49
|
+
return false
|
44
50
|
end
|
45
51
|
|
46
52
|
def output_stylesheet(directory, results)
|