diff --git a/CHANGELOG.md b/CHANGELOG.md index 77698cf8..492f87e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +#### 3.2.2 (2019-09-23) + #### 3.2.1 (2019-09-23) ##### Chores diff --git a/gulpfile.ts b/gulpfile.ts index 81864cb2..3fd0fc2a 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -160,7 +160,15 @@ export function updateVersion(cb) { cb(); } -exports.build = series(clean, createDirectories, compile, squash, copyToSamples, copyToTests); +function insertVersionNumber(cb) { + const filePath = path.join(buildDir, 'Rooibos.brs'); + let text = fs.readFileSync(filePath, 'utf8'); + text = text.replace('#ROOIBOS_VERSION#', pkg.version); + fs.writeFileSync(filePath, text, 'utf8'); + cb(); +} + +exports.build = series(clean, createDirectories, compile, insertVersionNumber, squash, copyToSamples, copyToTests); exports.runFrameworkTests = series(exports.build, prepareFrameworkTests, zipFrameworkTests, deployFrameworkTests) exports.prePublishFrameworkTests = series(exports.build, prepareFrameworkTests) exports.prePublishFrameworkCodeCoverage = series(exports.build, prepareCodeCoverageTests) diff --git a/package.json b/package.json index 3155d1a8..4cd34910 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rooibos", - "version": "3.2.1", + "version": "3.2.2", "description": "simple, flexible, fun brihhtscript test framework for roku scenegraph apps", "main": "index.js", "directories": { diff --git a/src/Rooibos.bs b/src/Rooibos.bs index e030c34c..f8eab0fb 100644 --- a/src/Rooibos.bs +++ b/src/Rooibos.bs @@ -55,7 +55,7 @@ function Init(preTestSetup = invalid, testUtilsDecoratorMethodName = invalid, te args.testScene = scene args.global = m.global - rooibosVersion = "3.1.1" + rooibosVersion = "#ROOIBOS_VERSION#" requiredRooibosPreprocessorVersion = "1.0.0" if not RBS_CMN.isFunction(RBSFM_getPreprocessorVersion) @@ -72,7 +72,7 @@ function Init(preTestSetup = invalid, testUtilsDecoratorMethodName = invalid, te ? "######################################################" ? "" ? "# rooibos framework version: " ; rooibosVersion - ? "# tests parsed with rooibosC version: " ; rooibosVersion + ? "# tests parsed with rooibosC version: " ; RBSFM_getPreprocessorVersion() ? "######################################################" ? ""