buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toulm...@apache.org
Subject svn commit: r954031 - /buildr/trunk/lib/buildr/core/build.rb
Date Sat, 12 Jun 2010 16:46:40 GMT
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).



Mime
View raw message