aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/Rakefile
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-02-04 18:28:45 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-02-04 18:28:45 -0800
commitc1785f32825431d30a5d826066d37dfb0403cd46 (patch)
treee7a0bf9efed0981e7e918bfebef393f02834a31b /activesupport/Rakefile
parent31f8a59c16d4a29553e2dbf891c891493fd138c0 (diff)
downloadrails-c1785f32825431d30a5d826066d37dfb0403cd46.tar.gz
rails-c1785f32825431d30a5d826066d37dfb0403cd46.tar.bz2
rails-c1785f32825431d30a5d826066d37dfb0403cd46.zip
Release using gemcutter gem:push tasks
Diffstat (limited to 'activesupport/Rakefile')
-rw-r--r--activesupport/Rakefile23
1 files changed, 5 insertions, 18 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile
index 03ab3b2760..059d99d8ff 100644
--- a/activesupport/Rakefile
+++ b/activesupport/Rakefile
@@ -1,6 +1,7 @@
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
+require 'rake/gemcutter'
require File.join(File.dirname(__FILE__), 'lib', 'active_support', 'version')
@@ -49,27 +50,13 @@ Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
end
-desc "Publish the beta gem"
-task :pgem => [:package] do
- require 'rake/contrib/sshpublisher'
- Rake::SshFilePublisher.new("gems.rubyonrails.org", "/u/sites/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
- `ssh gems.rubyonrails.org '/u/sites/gems/gemupdate.sh'`
-end
+Rake::Gemcutter::Tasks(spec)
+
+desc "Release to gemcutter"
+task :release => [:package, 'gem:push']
desc "Publish the API documentation"
task :pdoc => [:rdoc] do
require 'rake/contrib/sshpublisher'
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/as", "doc").upload
end
-
-desc "Publish the release files to RubyForge."
-task :release => [ :package ] do
- require 'rubyforge'
- require 'rake/contrib/rubyforgepublisher'
-
- packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
-
- rubyforge = RubyForge.new
- rubyforge.login
- rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
-end