aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/Rakefile')
-rw-r--r--activesupport/Rakefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile
index 160802b10d..357bdca715 100644
--- a/activesupport/Rakefile
+++ b/activesupport/Rakefile
@@ -1,7 +1,6 @@
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
-require 'rake/gemcutter'
require File.join(File.dirname(__FILE__), 'lib', 'active_support', 'version')
@@ -50,10 +49,12 @@ Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
end
-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