Skip to content

Commit

Permalink
Update for 1.5.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Sep 26, 2022
1 parent a1398d1 commit 2c0473a
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 13 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [1.5.7](https://github.com/nicklockwood/ShapeScript/releases/tag/1.5.7) (2022-09-26)

- Fixed bug where a `define` inside a block couldn't refer to `option` value
- Fixed bug when parsing expressions ending in a `not` identifier
- Fixed bug where view unexpectedly jumped to custom camera after reload
- Bumped Euclid to version 0.5.30
- Bumped LRUCache to version 1.0.3
- Bumped SVGPath to version 1.1.1
- Added iOS help pages

## [1.5.6](https://github.com/nicklockwood/ShapeScript/releases/tag/1.5.6) (2022-09-06)

- Added ability to copy the current camera configuration for easy creation of custom cameras
Expand Down
4 changes: 2 additions & 2 deletions ShapeScript.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ShapeScript",
"version": "1.5.6",
"version": "1.5.7",
"license": {
"type": "MIT",
"file": "LICENSE.md"
Expand All @@ -10,7 +10,7 @@
"authors": "Nick Lockwood",
"source": {
"git": "https://github.com/nicklockwood/ShapeScript.git",
"tag": "1.5.6"
"tag": "1.5.7"
},
"source_files": ["ShapeScript", "LRUCache/Sources", "SVGPath/Sources"],
"requires_arc": true,
Expand Down
8 changes: 4 additions & 4 deletions ShapeScript.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.5.6;
MARKETING_VERSION = 1.5.7;
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
PRODUCT_MODULE_NAME = Viewer;
PRODUCT_NAME = "ShapeScript Viewer";
Expand Down Expand Up @@ -902,7 +902,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.5.6;
MARKETING_VERSION = 1.5.7;
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptViewer;
PRODUCT_MODULE_NAME = Viewer;
PRODUCT_NAME = "ShapeScript Viewer";
Expand Down Expand Up @@ -1062,7 +1062,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.5.6;
MARKETING_VERSION = 1.5.7;
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
PRODUCT_NAME = ShapeScript;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -1093,7 +1093,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.5.6;
MARKETING_VERSION = 1.5.7;
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.ShapeScriptLib;
PRODUCT_NAME = ShapeScript;
SKIP_INSTALL = YES;
Expand Down
14 changes: 8 additions & 6 deletions ShapeScript/Geometry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,15 @@ public extension Geometry {
} ?? .empty) { bounds, child in
bounds.formIntersection(child.bounds.transformed(by: child.transform))
}
case .union, .xor, .group:
return Bounds(bounds: children.map {
$0.bounds.transformed(by: $0.transform)
})
case .cone, .cube, .cylinder, .sphere, .path, .mesh,
.lathe, .fill, .extrude, .loft,
.union, .xor, .group,
.camera, .light:
return children.reduce(into: type.bounds) { bounds, child in
bounds.formUnion(child.bounds.transformed(by: child.transform))
}
.lathe, .fill, .extrude, .loft:
return type.bounds
case .camera, .light:
return .empty
}
}

Expand Down
2 changes: 1 addition & 1 deletion ShapeScript/Interpreter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation

// MARK: Public interface

public let version = "1.5.6"
public let version = "1.5.7"

public protocol EvaluationDelegate: AnyObject {
func resolveURL(for path: String) -> URL
Expand Down
4 changes: 4 additions & 0 deletions ShapeScriptTests/MetadataTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ class MetadataTests: XCTestCase {
XCTFail("Help directory for \(shapeScriptVersion) not found")
return
}
let attrs = try fm.attributesOfItem(atPath: outputDirectory.path)
if attrs[.type] as? FileAttributeType == .typeSymbolicLink {
return
}
try? fm.removeItem(at: outputDirectory)
for subdir in ["mac", "ios"] {
let helpDir = helpDirectory.appendingPathComponent(subdir)
Expand Down
1 change: 1 addition & 0 deletions docs/1.5.7

0 comments on commit 2c0473a

Please sign in to comment.