Return-Path: Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: (qmail 57775 invoked from network); 12 Jun 2010 16:47:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Jun 2010 16:47:22 -0000 Received: (qmail 77663 invoked by uid 500); 12 Jun 2010 16:47:22 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 77636 invoked by uid 500); 12 Jun 2010 16:47:22 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 77629 invoked by uid 99); 12 Jun 2010 16:47:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jun 2010 16:47:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jun 2010 16:47:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0AE6123889B6; Sat, 12 Jun 2010 16:46:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r954031 - /buildr/trunk/lib/buildr/core/build.rb Date: Sat, 12 Jun 2010 16:46:40 -0000 To: commits@buildr.apache.org From: toulmean@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100612164640.0AE6123889B6@eris.apache.org> Author: toulmean Date: Sat Jun 12 16:46:39 2010 New Revision: 954031 URL: http://svn.apache.org/viewvc?rev=954031&view=rev Log: fix for tag_name, for good Modified: buildr/trunk/lib/buildr/core/build.rb Modified: buildr/trunk/lib/buildr/core/build.rb URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/build.rb?rev=954031&r1=954030&r2=954031&view=diff ============================================================================== --- buildr/trunk/lib/buildr/core/build.rb (original) +++ buildr/trunk/lib/buildr/core/build.rb Sat Jun 12 16:46:39 2010 @@ -298,9 +298,9 @@ module Buildr # for example: # Release.find.tag_name = lambda { |ver| "foo-#{ver}" } # Deprecated: you should use Release.tag_name instead - def tag_name(tag_proc) + def tag_name=(tag_proc) warn("Release.find.tag_name is deprecated. You should use Release.tag_name instead") - Release.tag_name(tag_proc) + Release.tag_name=(tag_proc) end protected @@ -400,16 +400,6 @@ module Buildr fail "Uncommitted files violate the First Principle Of Release!\n#{uncommitted.join("\n")}" unless uncommitted.empty? fail "You are releasing from a local branch that does not track a remote!" unless Git.remote end - - # Use this to specify a different tag name for tagging the release in source control. - # You can set the tag name or a proc that will be called with the version number, - # for example: - # Release.find.tag_name = lambda { |ver| "foo-#{ver}" } - # Deprecated: you should use Release.tag_name instead - def tag_name(tag_proc) - warn("Release.find.tag_name is deprecated. You should use Release.tag_name instead") - Release.tag_name(tag_proc) - end # Add a tag reference in .git/refs/tags and push it to the remote if any. # If a tag with the same name already exists it will get deleted (in both local and remote repositories).