Update to stable rbx-dom libraries

This commit is contained in:
Lucien Greathouse
2021-06-29 01:20:09 -04:00
parent a3d8e50f26
commit 672d207961
36 changed files with 129 additions and 122 deletions

View File

@@ -360,8 +360,7 @@ mod test {
"$className": "StringValue",
"$properties": {
"Value": {
"Type": "String",
"Value": "Hello, world!"
"String": "Hello, world!"
}
}
}

View File

@@ -13,7 +13,7 @@ pub fn snapshot_rbxm(
path: &Path,
instance_name: &str,
) -> SnapshotInstanceResult {
let temp_tree = rbx_binary::from_reader_default(vfs.read(path)?.as_slice())
let temp_tree = rbx_binary::from_reader(vfs.read(path)?.as_slice())
.with_context(|| format!("Malformed rbxm file: {}", path.display()))?;
let root_instance = temp_tree.root();

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/csv.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: LocalizationTable
properties:
Contents:
Type: String
Value: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/csv.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: LocalizationTable
properties:
Contents:
Type: String
Value: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
String: "[{\"key\":\"Ack\",\"example\":\"An exclamation of despair\",\"source\":\"Ack!\",\"values\":{\"es\":\"¡Ay!\"}}]"
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/json.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: ModuleScript
properties:
Source:
Type: String
Value: "return {\n\t[\"1invalidident\"] = \"nice\",\n\tarray = {1, 2, 3},\n\t[\"false\"] = false,\n\tfloat = 1234.5452,\n\tint = 1234,\n\tnull = nil,\n\tobject = {\n\t\thello = \"world\",\n\t},\n\t[\"true\"] = true,\n}"
String: "return {\n\t[\"1invalidident\"] = \"nice\",\n\tarray = {1, 2, 3},\n\t[\"false\"] = false,\n\tfloat = 1234.5452,\n\tint = 1234,\n\tnull = nil,\n\tobject = {\n\t\thello = \"world\",\n\t},\n\t[\"true\"] = true,\n}"
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/json_model.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -14,8 +15,7 @@ name: foo
class_name: IntValue
properties:
Value:
Type: Int64
Value: 5
Int64: 5
children:
- snapshot_id: ~
metadata:
@@ -26,3 +26,4 @@ children:
class_name: StringValue
properties: {}
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/lua.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: LocalScript
properties:
Source:
Type: String
Value: Hello there!
String: Hello there!
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/lua.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: ModuleScript
properties:
Source:
Type: String
Value: Hello there!
String: Hello there!
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/lua.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: ModuleScript
properties:
Source:
Type: String
Value: Hello there!
String: Hello there!
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/lua.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,9 +16,8 @@ name: bar
class_name: Script
properties:
Disabled:
Type: Bool
Value: true
Bool: true
Source:
Type: String
Value: Hello there!
String: Hello there!
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/lua.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: Script
properties:
Source:
Type: String
Value: Hello there!
String: Hello there!
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/lua.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: Script
properties:
Source:
Type: String
Value: Hello there!
String: Hello there!
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/project.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: path-property-override
class_name: StringValue
properties:
Value:
Type: String
Value: Changed
String: Changed
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/project.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -16,6 +17,6 @@ name: path-project
class_name: StringValue
properties:
Value:
Type: String
Value: "Hello, world!"
String: "Hello, world!"
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/project.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -14,6 +15,6 @@ name: resolved-properties
class_name: StringValue
properties:
Value:
Type: String
Value: "Hello, world!"
String: "Hello, world!"
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/project.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -14,6 +15,6 @@ name: unresolved-properties
class_name: StringValue
properties:
Value:
Type: String
Value: Hi!
String: Hi!
children: []

View File

@@ -1,6 +1,7 @@
---
source: src/snapshot_middleware/txt.rs
expression: instance_snapshot
---
snapshot_id: ~
metadata:
@@ -15,6 +16,6 @@ name: foo
class_name: StringValue
properties:
Value:
Type: String
Value: Hello there!
String: Hello there!
children: []