sprite-factory-custom 1.6.4.3 → 1.6.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e488f3cdbbb89226fd39cfecee7c3e1f79bf4fc
4
- data.tar.gz: 286a3433eda8e3e9f0a64e9d574675e7273cb89e
3
+ metadata.gz: 0d077e5a403859949ea9123643891f5212ee4222
4
+ data.tar.gz: ed8d3e662195becc4337b9c93a8421d1cd462f38
5
5
  SHA512:
6
- metadata.gz: 2a53318e43f5d07620edf21683c13fd3621a74e569f2b25f1204c97f2c2af4f2e5a90caea70f2f1b275d18cbd7383aa79270781d98159cb74fa44527c58f04fe
7
- data.tar.gz: b731817ab5ef12027aae94f6139fa90cc6c298fe14c915c51284ebbf566cc66cf9343a5a56a6b51881128cc913f0a16b774d75a3531a6b9696fb1905bd610eb5
6
+ metadata.gz: c5fdad188f25cf80e90bae1bcce1dded57059a3b75f65feb4bd7563e817cb172bea4df5dae06a092aae0184df66cc8ebd5209385f8c6e536de4a6c5f330299d5
7
+ data.tar.gz: f0d06a63a2c989622f3cee1fca6fd0b41050ec6e25933d67a7ff3e72283446979f7b46f806a960c04311e294adb2b08557c3d887e9432b16868f6ae639957f92
@@ -2,7 +2,7 @@ module SpriteFactory
2
2
 
3
3
  #----------------------------------------------------------------------------
4
4
 
5
- VERSION = "1.6.4.3"
5
+ VERSION = "1.6.4.4"
6
6
  SUMMARY = "Automatic CSS sprite generator"
7
7
  DESCRIPTION = "[tam-vo/sprite-factory v#{VERSION}] Combines individual images from a directory into a single sprite image file and creates an appropriate CSS stylesheet"
8
8
  LIB = File.dirname(__FILE__)
@@ -172,10 +172,14 @@ module SpriteFactory
172
172
  elsif custom.include?('$IMAGE')
173
173
  custom.sub('$IMAGE', base) # allow custom url with simple token replacement
174
174
  else
175
- "url(#{File.join(custom, base)})" # allow custom url with simple prepend
175
+ url = File.join(custom, base)
176
+ url = "#{url}?t=#{Time.now.to_i}" if config[:prevent_caching]
177
+ "url(#{url})" # allow custom url with simple prepend
176
178
  end
177
179
  else
178
- "url(#{base})" # otherwise, just default to basename of the output image file
180
+ url = base
181
+ url = "#{url}?t=#{Time.now.to_i}" if config[:prevent_caching]
182
+ "url(#{url})" # otherwise, just default to basename of the output image file
179
183
  end
180
184
  end
181
185
 
@@ -309,3 +313,4 @@ module SpriteFactory
309
313
 
310
314
  end # class Runner
311
315
  end # module SpriteFactory
316
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprite-factory-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4.3
4
+ version: 1.6.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Gordon
@@ -39,7 +39,7 @@ dependencies:
39
39
  - - '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
- description: '[tam-vo/sprite-factory v1.6.4.3] Combines individual images from a directory
42
+ description: '[tam-vo/sprite-factory v1.6.4.4] Combines individual images from a directory
43
43
  into a single sprite image file and creates an appropriate CSS stylesheet'
44
44
  email:
45
45
  - jake@codeincomplete.com