From c9296e3c83160f49414f9b2f0338f9744209df27 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Tue, 13 May 2008 19:36:07 -0700 Subject: [PATCH] Added spec:commit task to commit changes to spec/ruby sources. --- rakelib/spec.rake | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rakelib/spec.rake b/rakelib/spec.rake index 54979691e..4d782f126 100644 --- a/rakelib/spec.rake +++ b/rakelib/spec.rake @@ -35,7 +35,7 @@ namespace :spec do task :update => %w[init mspec:update clone] do sh "git submodule update spec/frozen" - puts "Updating rubyspec repository..." + puts "\nUpdating rubyspec repository..." Dir.chdir "spec/ruby" do git_update end @@ -43,9 +43,17 @@ namespace :spec do task :pull => :update + desc "Commit changes to rubyspec sources" + task :commit do + puts "\nCommitting changes to rubyspec sources..." + Dir.chdir "spec/ruby" do + sh "git commit -a" + end + end + desc "Push changes to the rubyspec repository" task :push => :update do - puts "Pushing changes to the rubyspec repository..." + puts "\nPushing changes to the rubyspec repository..." Dir.chdir "spec/ruby" do git_push end -- 2.11.4.GIT