aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-02-05 00:03:03 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-02-05 00:03:03 -0800
commit459ecaf95db12ec64e70c02f8ee58ddb1133021e (patch)
treeaf35c4dcc49da477813545fee5237aa1ff3c31fa /activemodel
parentae4cb0641ed5505c99f3ba6eef35a83c263bfe98 (diff)
downloadrails-459ecaf95db12ec64e70c02f8ee58ddb1133021e.tar.gz
rails-459ecaf95db12ec64e70c02f8ee58ddb1133021e.tar.bz2
rails-459ecaf95db12ec64e70c02f8ee58ddb1133021e.zip
Submarine the rake-gemcutter dep in Rakefiles
Diffstat (limited to 'activemodel')
-rwxr-xr-xactivemodel/Rakefile9
1 files changed, 5 insertions, 4 deletions
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