mack-asset_packager 0.8.0.101 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ module Mack
|
|
2
2
|
module Assets
|
3
3
|
class PackageCollection # :nodoc:
|
4
4
|
include Singleton
|
5
|
+
ASSET_LOAD_TIME = Time.now
|
5
6
|
|
6
7
|
attr_accessor :bundle_processed
|
7
8
|
|
@@ -63,8 +64,14 @@ module Mack
|
|
63
64
|
# now read data from all the files defined in the bundle
|
64
65
|
raw = ""
|
65
66
|
assets_mgr.send(asset_type, group).each do |file|
|
66
|
-
|
67
|
-
|
67
|
+
|
68
|
+
Mack.search_path_local_first(:public).each do |p|
|
69
|
+
path = File.join(p, asset_type.to_s, file)
|
70
|
+
if File.exists?(path)
|
71
|
+
raw += File.read(path)
|
72
|
+
break
|
73
|
+
end
|
74
|
+
end
|
68
75
|
end
|
69
76
|
|
70
77
|
# save it to some tmp file, and compress it
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-asset_packager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darsono Sutedja
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-10-
|
12
|
+
date: 2008-10-26 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|