Load PROTOTYPE_VERSION from src/constants.yml

This commit is contained in:
Sam Stephenson 2009-02-10 10:52:08 -06:00
parent a519c02b2e
commit 938ac16c2d
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ PROTOTYPE_PKG_DIR = File.join(PROTOTYPE_ROOT, 'pkg')
PROTOTYPE_TEST_DIR = File.join(PROTOTYPE_ROOT, 'test')
PROTOTYPE_TEST_UNIT_DIR = File.join(PROTOTYPE_TEST_DIR, 'unit')
PROTOTYPE_TMP_DIR = File.join(PROTOTYPE_TEST_UNIT_DIR, 'tmp')
PROTOTYPE_VERSION = '1.6.0.3'
PROTOTYPE_VERSION = YAML.load(IO.read(File.join(PROTOTYPE_SRC_DIR, 'constants.yml')))['PROTOTYPE_VERSION']
$:.unshift File.join(PROTOTYPE_ROOT, 'lib')
$:.unshift File.join(PROTOTYPE_ROOT, 'vendor', 'sprockets', 'lib')