Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Submarine the rake-gemcutter dep in Rakefiles

  • Loading branch information...
commit 459ecaf95db12ec64e70c02f8ee58ddb1133021e 1 parent ae4cb06
@jeremy jeremy authored
View
13 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
View
9 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
View
9 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
View
9 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
View
9 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
View
9 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
View
9 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
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.