You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by to...@apache.org on 2010/06/12 18:46:40 UTC
svn commit: r954031 - /buildr/trunk/lib/buildr/core/build.rb
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).