asset 0.1.13 → 0.1.14

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: aa56707d89c8c2fa5650e219c0035d44f04c76b5
4
- data.tar.gz: ef875488de30478045bf28906063559ddff6eb46
3
+ metadata.gz: 0748263acb1dc8fa7dafafbaf46759c4e50a28c8
4
+ data.tar.gz: f993ae2401bcf3a5dda14a78b9e67490d1148ccb
5
5
  SHA512:
6
- metadata.gz: 5cef50cde999cc938a62720f83b975c3392bca36cac2227107111080dcd04d496f9720c6cbe9d60d9c0063118d2c41a71a041c49121a064ad9e0a590c85fdc2a
7
- data.tar.gz: 7377e09d18a821d5e6e02784a3b3ad10c7bae49a1d4e09f0b26f8a67933ed3ddca6af361e97abb07c8edfab7276e6dc35d745a61a25998465753b2b10502d495
6
+ metadata.gz: dd4706519a5da6af9626ccf4baa1464dd754b84f57bdc01835f0f7dbef39f4fe2e0df82aa462be2b620fc385a9821be9ab189bfa399b7fa86f9e34205a37194b
7
+ data.tar.gz: acc00c0c65be0bbb717b927725c1c4175c8809e6b0a7e70edf17fae68540c78f1bdb65575ed44d4b278501d66e6fb7c1ca4d91782fd1cb7c6908affc0efacf72
@@ -1,4 +1,8 @@
1
- **Version 0.1.13** - *2017-01-26*
1
+ **Version 0.1.14** - *2017-01-27*
2
+
3
+ - Setting bundle last modified to max bundle modified time
4
+
5
+ **Version 0.1.13** - *2017-01-27*
2
6
 
3
7
  - Setting bundle last modified to boot time
4
8
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'asset'
3
- s.version = '0.1.13'
3
+ s.version = '0.1.14'
4
4
  s.date = '2017-01-27'
5
5
  s.summary = "Compress and serve your CSS and JS assets automatically"
6
6
  s.description = "The only thing you need for your assets."
@@ -44,11 +44,14 @@ module Asset
44
44
 
45
45
  # Load bundles for js and css
46
46
  def self.load_bundle(type)
47
- # Find keys for the cache key (digest)
48
- keys = ::Asset.manifest.select{|r| r.type == type}.map(&:key).join
47
+ # Find the items
48
+ items = ::Asset.manifest.select{|r| r.type == type}
49
+
50
+ # Find keys for digest and max modified time
51
+ keys, max = items.map(&:key).join, items.map(&:modified).max
49
52
 
50
53
  # Insert the bundle into the manifest
51
- ::Asset.manifest.insert(0, ::Asset::Item.new("bundle.#{type}", type, digest(keys), Time.now.utc))
54
+ ::Asset.manifest.insert(0, ::Asset::Item.new("bundle.#{type}", type, digest(keys), max))
52
55
  end
53
56
 
54
57
  # Load images into memory
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited