amikula-sprite 0.1.8.1 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8.1
1
+ 0.1.9
@@ -56,7 +56,9 @@ module Sprite
56
56
  def image_path(group)
57
57
  image_info = images.detect{|image| image['name'] == group}
58
58
  image_config = ImageConfig.new(image_info, config)
59
- sprite_file = "#{image_config.name}.#{image_config.format}"
59
+
60
+ cache_buster = "-#{config['cache_buster']}" if config['cache_buster']
61
+ sprite_file = "#{image_config.name}#{cache_buster}.#{image_config.format}"
60
62
  "#{config['css_image_path']}#{sprite_file}"
61
63
  end
62
64
 
@@ -20,7 +20,9 @@ module Sprite
20
20
  def image_output_path(name, format, relative = false)
21
21
  path_parts = []
22
22
  path_parts << Config.chop_trailing_slash(@config['image_output_path']) if Config.path_present?(@config['image_output_path'])
23
- path_parts << "#{name}.#{format}"
23
+
24
+ cache_buster = "-#{@config['cache_buster']}" if @config['cache_buster']
25
+ path_parts << "#{name}#{cache_buster}.#{format}"
24
26
  Config.new(@config).public_path(File.join(*path_parts), relative)
25
27
  end
26
28
  end
metadata CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 8
9
- - 1
10
- version: 0.1.8.1
8
+ - 9
9
+ version: 0.1.9
11
10
  platform: ruby
12
11
  authors:
13
12
  - Jacques Crocker
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-03-15 00:00:00 -07:00
18
+ date: 2010-03-24 00:00:00 -07:00
20
19
  default_executable: sprite
21
20
  dependencies: []
22
21