Skip to content

Commit

Permalink
Merge pull request #112 from jsconan/release-1.6.1
Browse files Browse the repository at this point in the history
Release 1.6.1
  • Loading branch information
jsconan authored Feb 17, 2022
2 parents 03ecf8b + ae830d2 commit 3b6faf4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# camelSCAD history

## [Version 1.6.1](https://github.com/jsconan/camelSCAD/releases/tag/v1.6.1)

Fix script utils:

- use the provided path to Slic3r to get the version in `slic3rversion`
- use the function `slic3rversion` to get the version of Slic3r

## [Version 1.6.0](https://github.com/jsconan/camelSCAD/releases/tag/v1.6.0)

Add core functions:
Expand Down
2 changes: 1 addition & 1 deletion core/version.scad
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* The version of the library.
* @type Vector
*/
CAMEL_SCAD_VERSION = [1, 6, 0];
CAMEL_SCAD_VERSION = [1, 6, 1];

/**
* The minimal version of OpenSCAD required by the library.
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/slic3r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ slic3rversion() {
if [ "$1" != "" ]; then
cmd="$1"
fi
version="$(${slic3rcmd} --help | egrep -o '[0-9].[0-9]' | head -1 2>&1)"
version="$(${cmd} --help | egrep -o '[0-9].[0-9]' | head -1 2>&1)"
if [ "$?" != "0" ]; then
return ${E_SLIC3R}
fi
Expand Down Expand Up @@ -142,7 +142,7 @@ slic3rcheck() {
else
printmessage "${C_SPE}${slic3rname}${C_RST} has been detected."
fi
local version="$(${slic3rcmd} --help | egrep -o '[0-9].[0-9]' | head -1 2>&1)"
local version="$(slic3rversion)"
if [[ "${version}" < "${slic3rver}" ]]; then
printerror "The installed version of ${slic3rname} does not meet the requirement.\n\tInstalled: ${version}\n\tRequired: ${slic3rver}" ${E_SLIC3R}
fi
Expand Down
4 changes: 2 additions & 2 deletions test/core/version.scad
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ module testCoreVersion() {
// test camelSCAD()
testModule("camelSCAD()", 2) {
testUnit("as vector", 1) {
assertEqual(camelSCAD(), [1, 6, 0], "The current version of the library is 1.6.0");
assertEqual(camelSCAD(), [1, 6, 1], "The current version of the library is 1.6.1");
}
testUnit("as string", 1) {
assertEqual(camelSCAD(true), "1.6.0", "The current version of the library is 1.6.0");
assertEqual(camelSCAD(true), "1.6.1", "The current version of the library is 1.6.1");
}
}
}
Expand Down

0 comments on commit 3b6faf4

Please sign in to comment.