view_assets 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module ViewAssets
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: