Support for release candidates in the version.json file; propagates up through the version string everywhere: filenames, ZIP, source code

This commit is contained in:
Davis W. Frank
2011-06-15 18:37:12 -07:00
parent 6b2e45eab5
commit ae24e00c0f
8 changed files with 32 additions and 18 deletions

View File

@@ -30,6 +30,7 @@ task :write_version_file do
scope = OpenStruct.new(:major => version_hash["major"],
:minor => version_hash["minor"],
:build => version_hash["build"],
:rc => version_hash["rc"],
:revision => Time.now.to_i)
File.open('src/version.js', 'w+') do |f|

View File

@@ -29,7 +29,9 @@ def console_specfiles
end
def version_string
"#{version_hash['major']}.#{version_hash['minor']}.#{version_hash['build']}"
version = "#{version_hash['major']}.#{version_hash['minor']}.#{version_hash['build']}"
version += ".rc#{version_hash['rc']}" if version_hash['rc']
version
end
def version_hash