asset 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/asset.gemspec +1 -1
- data/lib/assets/util.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0748263acb1dc8fa7dafafbaf46759c4e50a28c8
|
4
|
+
data.tar.gz: f993ae2401bcf3a5dda14a78b9e67490d1148ccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd4706519a5da6af9626ccf4baa1464dd754b84f57bdc01835f0f7dbef39f4fe2e0df82aa462be2b620fc385a9821be9ab189bfa399b7fa86f9e34205a37194b
|
7
|
+
data.tar.gz: acc00c0c65be0bbb717b927725c1c4175c8809e6b0a7e70edf17fae68540c78f1bdb65575ed44d4b278501d66e6fb7c1ca4d91782fd1cb7c6908affc0efacf72
|
data/CHANGELOG.md
CHANGED
data/asset.gemspec
CHANGED
data/lib/assets/util.rb
CHANGED
@@ -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
|
48
|
-
|
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),
|
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
|