about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 5178c71..58b04a6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -30,12 +30,17 @@ end
 
 task :compile do
   # Append a sanity check to the compile task
-  if Dir.glob(File.join("lib","http11.*")).length == 0
+  files = Dir["lib/http11/http11.*"]
+  unless files.any?
     STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
     STDERR.puts "Gem actually failed to build.  Your system is"
     STDERR.puts "NOT configured properly to build Mongrel."
     STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
     exit(1)
+  else
+    files.each do |file|
+      mv file, "lib/"
+    end
   end
 end