about summary refs log tree commit homepage
path: root/projects/fastthread/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/fastthread/Rakefile')
-rw-r--r--projects/fastthread/Rakefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/projects/fastthread/Rakefile b/projects/fastthread/Rakefile
index aadf9f8..e418a5a 100644
--- a/projects/fastthread/Rakefile
+++ b/projects/fastthread/Rakefile
@@ -1,9 +1,12 @@
 
+require 'rubygems'
+gem 'echoe', '>=2.7.11'
 require 'echoe'
 
 Echoe.new("fastthread") do |p|
   p.project = "mongrel"
   p.author = "MenTaLguY <mental@rydia.net>"
+  p.email = "mental@rydia.net"
   p.summary = "Optimized replacement for thread.rb primitives"
   p.extensions = "ext/fastthread/extconf.rb"
   p.clean_pattern = ['build/*', '**/*.o', '**/*.so', '**/*.a', 'lib/*-*', '**/*.log', "ext/fastthread/*.{bundle,so,obj,pdb,lib,def,exp}", "ext/fastthread/Makefile", "pkg", "lib/*.bundle", "*.gem", ".config"]
@@ -14,10 +17,10 @@ Echoe.new("fastthread") do |p|
     '/Users/eweaver/p/configuration/gem_certificates/evan_weaver-mongrel-public_cert.pem']    
   p.require_signed = true
 
-  p.eval = proc do  
-    if RUBY_PLATFORM.match("win32")
-      platform = Gem::Platform::WIN32
-      files += ['lib/fastthread.so']
+  p.eval = proc do
+    if Platform.windows?
+      self.platform = Gem::Platform::CURRENT
+      self.files += ['lib/fastthread.so']
       task :package => [:clean, :compile]
     end
   end