From c1785f32825431d30a5d826066d37dfb0403cd46 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 4 Feb 2010 18:28:45 -0800 Subject: Release using gemcutter gem:push tasks --- activesupport/Rakefile | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'activesupport/Rakefile') 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 -- cgit v1.2.3 From 7b81f5981fd6dfcede61a89da80b09a1650e2c02 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 4 Feb 2010 18:44:14 -0800 Subject: Fix task defines --- activesupport/Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 059d99d8ff..160802b10d 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -50,7 +50,7 @@ Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec end -Rake::Gemcutter::Tasks(spec) +Rake::Gemcutter::Tasks.new(spec).define desc "Release to gemcutter" task :release => [:package, 'gem:push'] -- cgit v1.2.3 From 459ecaf95db12ec64e70c02f8ee58ddb1133021e Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 5 Feb 2010 00:03:03 -0800 Subject: Submarine the rake-gemcutter dep in Rakefiles --- activesupport/Rakefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'activesupport/Rakefile') 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 -- cgit v1.2.3