summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-08 10:32:27 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-08 10:32:27 -0800
commitf5cbae120faf5f216e352f8a23184baf6029c72d (patch)
tree88eeac112f316e4d2b81e537505a889ca51ae068
parent813cdd3cbc35a86ebf33aaf028937e70a15ddba0 (diff)
-rw-r--r--Rakefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 755915c..f2ab994 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,5 @@
 # -*- encoding: binary -*-
+autoload :Gem, 'rubygems'
 
 # most tasks are in the GNUmakefile which offers better parallelism
 
@@ -94,8 +95,6 @@ end
 
 desc "print release notes for Rubyforge"
 task :release_notes do
-  require 'rubygems'
-
   spec = Gem::Specification.load('unicorn.gemspec')
   puts spec.description.strip
   puts ""
@@ -110,7 +109,6 @@ end
 
 desc "post to RAA"
 task :raa_update do
-  require 'rubygems'
   require 'net/http'
   require 'net/netrc'
   rc = Net::Netrc.locate('unicorn-raa') or abort "~/.netrc not found"
@@ -177,7 +175,6 @@ end
 
 # optional rake-compiler support in case somebody needs to cross compile
 begin
-  require 'rubygems'
   spec = Gem::Specification.load('unicorn.gemspec')
   require 'rake/extensiontask'
   unless test ?r, "ext/unicorn_http/unicorn_http.c"