aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rakefile13
-rw-r--r--actionmailer/Rakefile9
-rw-r--r--actionpack/Rakefile9
-rwxr-xr-xactivemodel/Rakefile9
-rw-r--r--activerecord/Rakefile9
-rw-r--r--activeresource/Rakefile9
-rw-r--r--activesupport/Rakefile9
-rw-r--r--railties/Rakefile9
8 files changed, 42 insertions, 34 deletions
diff --git a/Rakefile b/Rakefile
index 99be4e0711..96d69bd33e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,7 +1,6 @@
require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'
-require 'rake/gemcutter'
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
@@ -14,7 +13,7 @@ end
desc 'Run all tests by default'
task :default => %w(test test:isolated)
-%w(test test:isolated rdoc pgem package release gem gemspec).each do |task_name|
+%w(test test:isolated rdoc pgem package gem gemspec).each do |task_name|
desc "Run #{task_name} task for all projects"
task task_name do
errors = []
@@ -38,13 +37,15 @@ Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
-Rake::Gemcutter::Tasks.new(spec).define
-
desc "Release all gems to gemcutter. Package rails, package & push components, then push rails"
-task :release => [:package, :release_all, 'gem:push']
+task :release => :release_projects do
+ require 'rake/gemcutter'
+ Rake::Gemcutter::Tasks.new(spec).define
+ Rake::Task['gem:push'].invoke
+end
desc "Release all components to gemcutter."
-task :release_all do
+task :release_projects => :package do
errors = []
PROJECTS.each do |project|
system(%(cd #{project} && #{env} #{$0} release)) || errors << project
diff --git a/actionmailer/Rakefile b/actionmailer/Rakefile
index d63e092e10..baea591b97 100644
--- a/actionmailer/Rakefile
+++ b/actionmailer/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', 'action_mailer', 'version')
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
@@ -55,10 +54,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
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index 5122b44f4e..c45f88ed04 100644
--- a/actionpack/Rakefile
+++ b/actionpack/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', 'action_pack', 'version')
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
@@ -71,10 +70,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
task :lines do
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0
diff --git a/activemodel/Rakefile b/activemodel/Rakefile
index 565277d6bd..5ea7b373fc 100755
--- a/activemodel/Rakefile
+++ b/activemodel/Rakefile
@@ -44,7 +44,6 @@ end
require 'rake/packagetask'
require 'rake/gempackagetask'
-require 'rake/gemcutter'
spec = eval(File.read("#{dir}/activemodel.gemspec"))
@@ -52,7 +51,9 @@ 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
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index aee8e49ada..8a414a751b 100644
--- a/activerecord/Rakefile
+++ b/activerecord/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_record', 'version')
require File.expand_path(File.dirname(__FILE__)) + "/test/config"
@@ -227,10 +226,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
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
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
diff --git a/railties/Rakefile b/railties/Rakefile
index fad60e50c9..f32a794544 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -4,7 +4,6 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
-require 'rake/gemcutter'
require 'date'
require 'rbconfig'
@@ -91,10 +90,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 guides"
task :pguides => :generate_guides do