asset 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/asset.gemspec +1 -1
- data/lib/assets/item.rb +1 -6
- 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: 79324a6a074bc04bca16da39d57e2f4dc0c152b5
|
4
|
+
data.tar.gz: 17ba912dfa3881fb46828ba8743e5f3763611311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04e03ba158217c029ba9cde16659b6f1b77dc1237a281365c91b181348c0f580afa7abd2a6dff05ab2cd22c0dd73c6c961cdaa5ab81829c97179fb970a42abf5
|
7
|
+
data.tar.gz: bc060a99a62b72841ace1024d22f4fa965d2497fa4c34219ef872ccd1bf9e300353afb63d8a614eb02b6fa9b5e975048476f29bc4a03944d75bbc839b76fbb83
|
data/CHANGELOG.md
CHANGED
data/asset.gemspec
CHANGED
data/lib/assets/item.rb
CHANGED
@@ -13,7 +13,7 @@ module Asset
|
|
13
13
|
|
14
14
|
# Get the files for this item
|
15
15
|
def files(bundle = true)
|
16
|
-
(@app and bundle) ?
|
16
|
+
(@app and bundle) ? ::Asset.bundle[@type] : [@path]
|
17
17
|
end
|
18
18
|
|
19
19
|
# Get the sources for this item
|
@@ -26,11 +26,6 @@ module Asset
|
|
26
26
|
File.join('/assets', @type, (p? ? @kpath : @path))
|
27
27
|
end
|
28
28
|
|
29
|
-
# Get the files for the bundle
|
30
|
-
def bundle_files
|
31
|
-
@bundle_files ||= ::Asset.manifest.select{|i| ::Asset.bundle[type].include?(i.path) and i.type == @type and !i.app}.map{|i| i.path}
|
32
|
-
end
|
33
|
-
|
34
29
|
# Get the content. Pass cache = false to fetch from disk instead of the cache.
|
35
30
|
def content(key = nil)
|
36
31
|
!key ? (@joined ||= joined) : (@cached ||= cached)
|