From 9e01161030e68f0740e7821791fef4e38f828f1a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 1 Feb 2010 19:44:33 -0800 Subject: Rakefile: autoload Gem easier to manage for cases where rake isn't a gem itself --- Rakefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Rakefile') 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" -- cgit v1.2.3-24-ge0c7