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 CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
data/css_sprite.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{css_sprite}
8
- s.version = "1.4.1"
8
+ s.version = "1.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Richard Huang"]
@@ -40,7 +40,13 @@ class Sprite
40
40
  else
41
41
  stylesheet_path = dest_css_path(directory)
42
42
  end
43
- !File.exist?(stylesheet_path) or File.new(directory).mtime > File.new(stylesheet_path).mtime
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 1
9
- version: 1.4.1
8
+ - 2
9
+ version: 1.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Richard Huang