You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/10/09 08:59:14 UTC
svn commit: r1530511 - in /buildr/trunk: CHANGELOG doc/releasing.textile
Author: donaldp
Date: Wed Oct 9 06:59:14 2013
New Revision: 1530511
URL: http://svn.apache.org/r1530511
Log:
BUILDR-682 - Fix the documentation for releasing using your own versioning scheme.
Submitted by Jean-Philippe Caruana.
Modified:
buildr/trunk/CHANGELOG
buildr/trunk/doc/releasing.textile
Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1530511&r1=1530510&r2=1530511&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Wed Oct 9 06:59:14 2013
@@ -1,4 +1,7 @@
1.4.14 (Pending)
+* Fixed: BUILDR-682 - Fix the documentation for releasing using
+ your own versioning scheme. Submitted by Jean-Philippe
+ Caruana.
* Fixed: BUILDR-681 - Stop empty projects creating target/webapp.
* Change: Add dependency from generated jws client source directory
to the source wsdl in the wsgen addon.
Modified: buildr/trunk/doc/releasing.textile
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/releasing.textile?rev=1530511&r1=1530510&r2=1530511&view=diff
==============================================================================
--- buildr/trunk/doc/releasing.textile (original)
+++ buildr/trunk/doc/releasing.textile Wed Oct 9 06:59:14 2013
@@ -66,11 +66,13 @@ THIS_VERSION = "1.0.0-SNAPSHOT"
# a string
Release.next_version = "2.0.0-SNAPSHOT"
-# or a proc
-Release.next_version = lambda do |this_version| # 1.0.0-SNAPSHOT
- new_version = @THIS_VERSION@.split(/\./)
- new_version[0] = new_version[0] + 1
- new_version
+# or a proc - equivalent result
+Release.next_version = lambda do |this_version| # 2.0.0-SNAPSHOT
+ new_version = THIS_VERSION.split /\./
+ new_version[0] = new_version[0].to_i + 1
+ new_version[1] = 0
+ new_version[2] = '0-SNAPSHOT'
+ new_version.join '.'
end
define 'killer-app' do