From 1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8 Mon Sep 17 00:00:00 2001 From: Chris Sims Date: Sat, 17 Sep 2011 18:34:09 -0500 Subject: [PATCH] Fixes #150. Strip leading path before checking for excluded file. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 95e95c7..ca76518 100644 --- a/Rakefile +++ b/Rakefile @@ -209,7 +209,7 @@ desc "copy dot files for deployment" task :copydot do exclusions = [".", "..", ".DS_Store"] Dir["#{source_dir}/**/.*"].each do |file| - if !File.directory?(file) && !exclusions.include?(file) + if !File.directory?(file) && !exclusions.include?(File.basename(file)) cp(file, file.gsub(/#{source_dir}/, "#{public_dir}")); end end