public
Description: Rails plugin for managing your site's version number.
Homepage: http://fiatdev.com/2007/03/31/new-rails-plugin-app-version
Clone URL: git://github.com/toland/app_version.git
Updated README with info on the Git build numbers.
Phillip Toland (author)
Thu Aug 14 15:06:07 -0700 2008
commit  c0f9da8f1281d005be7201a15c0f835addb360ed
tree    fc34c76ec626150345ba6a1766dc70a6525ae7b0
parent  48055e21bb77ed5ea66d716f284a0f815912e431
0
...
22
23
24
25
 
26
27
28
29
30
31
 
 
 
 
 
 
 
 
 
 
 
32
33
34
...
22
23
24
 
25
26
27
 
 
 
 
28
29
30
31
32
33
34
35
36
37
38
39
40
41
0
@@ -22,13 +22,20 @@ following format:
0
   minor: 0
0
   patch: 1
0
   milestone: 4
0
- build: svn
0
+ build: git-revcount
0
 
0
 If the milestone or patch fields are less than 0 then they will not show up
0
-in the version string. The build field can be a build number or the string
0
-svn. If it is a number then that number will be used as the build number, if it
0
-is the string 'svn' then the plugin will attempt to query Subversion for the
0
-build number.
0
+in the version string. The build field can be a build number or one of the
0
+following strings: svn, git-hash or git-revcount. If it is a number then that
0
+number will be used as the build number, if it is one of the special strings
0
+then the plugin will attempt to query the source control system for the build
0
+number.
0
+
0
+Using 'svn' for the build number will cause the plugin to query Subversion for
0
+the current revision number. Since Git doesn't have a numbered revision we have
0
+to fake it. 'git-revcount' will count the number of commits to the repository
0
+and use that as the build number whereas 'git-hash' will use the first 6 digits
0
+of the current HEAD's hash.
0
 
0
 The plugin creates a constant APP_VERSION that contains the version number of
0
 the application. Calling the +to_s+ method on APP_VERSION will result in a

Comments

    No one has commented yet.