public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Search Repo:
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
Fixed two issues with assets installation
Alexander Flatter (author)
Fri Jun 27 08:54:28 -0700 2008
eldiablo (committer)
Fri Jul 18 12:27:38 -0700 2008
commit  f456764010368b085d65e077b640940c93e78624
tree    9d4af39f860c7df28f07593b6ccd362859f5737f
parent  d362d592f50426fcad4aa71c9baa51c08d2875c3
...
26
27
28
29
 
30
31
 
32
33
34
...
36
37
38
39
 
40
41
42
...
26
27
28
 
29
30
 
31
32
33
34
...
36
37
38
 
39
40
41
42
0
@@ -26,9 +26,9 @@ class Theme
0
   end
0
   
0
   def each_asset_path(&proc)
0
- [:stylesheet => "stylesheets", :image => "images", :javascript => "javascripts"].each_pair do |k, v|
0
+ {:stylesheet => "stylesheets", :image => "images", :javascript => "javascripts"}.each_pair do |k, v|
0
       source = File.join(path, 'assets', v)
0
- target = File.join(Merb.dir_for(k), manifest['name'])
0
+ target = File.join(Merb.dir_for(k), name)
0
       proc.call(source, target)
0
     end
0
   end
0
@@ -36,7 +36,7 @@ class Theme
0
   def install_assets
0
     each_asset_path do |source, target|
0
       FileUtils.mkdir_p(target)
0
- File.mv(Dir.glob(File.join(source, '*')), target)
0
+ FileUtils.cp_r(Dir.glob(File.join(source, '*')), target)
0
     end
0
   end
0
   

Comments

    No one has commented yet.