about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-01 19:44:33 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-01 19:44:33 -0800
commit9e01161030e68f0740e7821791fef4e38f828f1a (patch)
treed63cb264ed65348a65ef2fb643a1b85e19760ac0 /Rakefile
parent0b6fe07c10278266e2f428a4355b7edfc13781cd (diff)
downloadrainbows-9e01161030e68f0740e7821791fef4e38f828f1a.tar.gz
easier to manage for cases where rake isn't a gem itself
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index ec5e62c..219744a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,5 @@
 # -*- encoding: binary -*-
+autoload :Gem, 'rubygems'
 
 # most tasks are in the GNUmakefile which offers better parallelism
 
@@ -89,8 +90,6 @@ end
 
 desc "print release notes for Rubyforge"
 task :release_notes do
-  require 'rubygems'
-
   spec = Gem::Specification.load('rainbows.gemspec')
   puts spec.description.strip
   puts ""
@@ -121,7 +120,6 @@ end
 
 desc "post to RAA"
 task :raa_update do
-  require 'rubygems'
   require 'net/http'
   require 'net/netrc'
   rc = Net::Netrc.locate('rainbows-raa') or abort "~/.netrc not found"