Write out version.rb on dist build

This commit is contained in:
ragaskar
2011-06-23 07:55:04 -04:00
parent 634a7dc402
commit b722f416c7
7 changed files with 22 additions and 15 deletions

View File

@@ -2472,6 +2472,6 @@ jasmine.version_= {
"major": 1,
"minor": 1,
"build": 0,
"revision": 1308618948,
"revision": 1308830021,
"release_candidate": 1
};

View File

@@ -1,8 +1,6 @@
module Jasmine
module Core
require 'json'
VERSION_HASH = JSON.parse(File.new(File.join(File.dirname(__FILE__), "..", "..", "src", "version.json")).read)
VERSION = "#{VERSION_HASH['major']}.#{VERSION_HASH['minor']}.#{VERSION_HASH['build']}"
VERSION << ".rc#{VERSION_HASH['release_candidate']}" if VERSION_HASH['release_candidate']
VERSION = "1.1.0.rc1"
end
end