view_assets 0.0.9 → 0.0.10
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.
- data/lib/view_assets/assets_finder.rb +4 -1
- data/lib/view_assets/version.rb +1 -1
- metadata +1 -1
@@ -181,6 +181,7 @@ module ViewAssets
|
|
181
181
|
# NOTE: All assets returned will be "unabsolutely_pathized" here. That
|
182
182
|
# means each string of file path does not contain any root path info.
|
183
183
|
# todo BUG => can't retrieve assets with slash-asterisk(/*= xxx */) directive.
|
184
|
+
# todo add specs for testing required folders without index
|
184
185
|
def meta_retrieve(manifest_path, manifest)
|
185
186
|
single_file_lib = absolutely_pathize("#{ manifest_path }/#{ manifest }")
|
186
187
|
|
@@ -191,6 +192,8 @@ module ViewAssets
|
|
191
192
|
real_manifest = nil
|
192
193
|
if FileTest.exist?(single_file_lib)
|
193
194
|
real_manifest = single_file_lib
|
195
|
+
# TODO refactor => quick fix loading required folders without idnex
|
196
|
+
all_assets_in_manifest_dir = [unabsolutely_pathize(real_manifest)]
|
194
197
|
else FileTest.exist?(indexing_lib)
|
195
198
|
real_manifest = indexing_lib
|
196
199
|
all_assets_in_manifest_dir = retrieve_all_from(manifest_dir)
|
@@ -198,7 +201,7 @@ module ViewAssets
|
|
198
201
|
|
199
202
|
retrieve_assets_from(real_manifest).flatten
|
200
203
|
.concat(all_assets_in_manifest_dir)
|
201
|
-
.concat([unabsolutely_pathize(real_manifest)])
|
204
|
+
# .concat([unabsolutely_pathize(real_manifest)])
|
202
205
|
.uniq
|
203
206
|
end
|
204
207
|
|
data/lib/view_assets/version.rb
CHANGED