diff options
Diffstat (limited to 'activeresource')
-rw-r--r-- | activeresource/Rakefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/activeresource/Rakefile b/activeresource/Rakefile index 61804df40e..829752516f 100644 --- a/activeresource/Rakefile +++ b/activeresource/Rakefile @@ -4,7 +4,6 @@ require 'rake/testtask' require 'rake/rdoctask' require 'rake/packagetask' require 'rake/gempackagetask' -require 'rake/gemcutter' require File.join(File.dirname(__FILE__), 'lib', 'active_resource', 'version') @@ -90,10 +89,12 @@ end # Publishing ------------------------------------------------------ -Rake::Gemcutter::Tasks.new(spec).define - desc "Release to gemcutter" -task :release => [:package, 'gem:push'] +task :release => :package do + require 'rake/gemcutter' + Rake::Gemcutter::Tasks.new(spec).define + Rake::Task['gem:push'].invoke +end desc "Publish the API documentation" task :pdoc => [:rdoc] do |