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/04/06 21:47:17 UTC
svn commit: r931295 - in /buildr/trunk: CHANGELOG lib/buildr/core/build.rb
Author: toulmean
Date: Tue Apr 6 19:47:17 2010
New Revision: 931295
URL: http://svn.apache.org/viewvc?rev=931295&view=rev
Log:
fix for BUILDR-414 Provide tag_name method on GitRelease as part of API
Modified:
buildr/trunk/CHANGELOG
buildr/trunk/lib/buildr/core/build.rb
Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=931295&r1=931294&r2=931295&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Tue Apr 6 19:47:17 2010
@@ -121,6 +121,7 @@
"false" value
* Fixed: BUILDR-404 buildr -V causes exception on JRuby
* Fixed: BUILDR-411: fix for RDoc generation
+* Fixed: BUILDR-414: Provide tag_name method on GitRelease as part of API
1.3.5 (2009-10-05)
* Added: Interactive shell (REPL) support
* Added: BeanShell as default shell for java projects, bsh is small and it's
Modified: buildr/trunk/lib/buildr/core/build.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/build.rb?rev=931295&r1=931294&r2=931295&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/build.rb (original)
+++ buildr/trunk/lib/buildr/core/build.rb Tue Apr 6 19:47:17 2010
@@ -400,6 +400,16 @@ 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).