forked from rojo-rbx/rojo
Upgrade to Insta master to get bugfix.
Map sorting in Insta was previously not recursive. As of this PR, it is! https://github.com/mitsuhiko/insta/pull/80 Since it hasn't made it into a release yet, but is important for Rojo to have snapshot determinism, we're moving temporarily to depend on Insta via Git.
This commit is contained in:
8
Cargo.lock
generated
8
Cargo.lock
generated
@@ -710,7 +710,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "insta"
|
||||
version = "0.11.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
source = "git+https://github.com/mitsuhiko/insta#8e32e354d1db280412592cfb627b26bbd58e0164"
|
||||
dependencies = [
|
||||
"console 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -1567,7 +1567,7 @@ dependencies = [
|
||||
"futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"humantime 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"insta 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"insta 0.11.0 (git+https://github.com/mitsuhiko/insta)",
|
||||
"jod-thread 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -1608,7 +1608,7 @@ name = "rojo-test"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"insta 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"insta 0.11.0 (git+https://github.com/mitsuhiko/insta)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"paste 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rbx_dom_weak 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -2383,7 +2383,7 @@ dependencies = [
|
||||
"checksum indexmap 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a61202fbe46c4a951e9404a720a0180bcf3212c750d735cb5c4ba4dc551299f3"
|
||||
"checksum inotify 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "40b54539f3910d6f84fbf9a643efd6e3aa6e4f001426c0329576128255994718"
|
||||
"checksum inotify-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e74a1aa87c59aeff6ef2cc2fa62d41bc43f54952f55652656b18a02fd5e356c0"
|
||||
"checksum insta 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "23f83ab4ee86f38b292f0420c27fd412690a4baa9ea0ad4e3fa624bf34379b76"
|
||||
"checksum insta 0.11.0 (git+https://github.com/mitsuhiko/insta)" = "<none>"
|
||||
"checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08"
|
||||
"checksum itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b8467d9c1cebe26feb08c640139247fac215782d35371ade9a2136ed6085358"
|
||||
"checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"
|
||||
|
||||
@@ -88,5 +88,5 @@ walkdir = "2.1"
|
||||
criterion = "0.3"
|
||||
|
||||
[dev-dependencies.insta]
|
||||
version = "0.11.0"
|
||||
git = "https://github.com/mitsuhiko/insta"
|
||||
features = ["redactions"]
|
||||
|
||||
@@ -23,5 +23,5 @@ rojo-insta-ext = { path = "../rojo-insta-ext" }
|
||||
rojo = { path = ".." }
|
||||
|
||||
[dependencies.insta]
|
||||
version = "0.11.0"
|
||||
git = "https://github.com/mitsuhiko/insta"
|
||||
features = ["redactions"]
|
||||
|
||||
@@ -4,23 +4,23 @@ expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: add_folder
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children:
|
||||
- id-3
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
id-3:
|
||||
Id: id-3
|
||||
Parent: id-2
|
||||
Name: my-new-folder
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children: []
|
||||
Id: id-2
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: add_folder
|
||||
Parent: ~
|
||||
Properties: {}
|
||||
id-3:
|
||||
Children: []
|
||||
ClassName: Folder
|
||||
Id: id-3
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: my-new-folder
|
||||
Parent: id-2
|
||||
Properties: {}
|
||||
messageCursor: 1
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,13 +4,13 @@ expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: add_folder
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children: []
|
||||
ClassName: Folder
|
||||
Id: id-2
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: add_folder
|
||||
Parent: ~
|
||||
Properties: {}
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,16 +4,16 @@ expression: "subscribe_response.intern_and_redact(&mut redactions, ())"
|
||||
---
|
||||
messageCursor: 1
|
||||
messages:
|
||||
- removedInstances: []
|
||||
addedInstances:
|
||||
- addedInstances:
|
||||
id-3:
|
||||
Id: id-3
|
||||
Parent: id-2
|
||||
Name: my-new-folder
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children: []
|
||||
ClassName: Folder
|
||||
Id: id-3
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: my-new-folder
|
||||
Parent: id-2
|
||||
Properties: {}
|
||||
removedInstances: []
|
||||
updatedInstances: []
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,13 +4,13 @@ expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: empty
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children: []
|
||||
ClassName: Folder
|
||||
Id: id-2
|
||||
Metadata:
|
||||
ignoreUnknownInstances: true
|
||||
Name: empty
|
||||
Parent: ~
|
||||
Properties: {}
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,16 +4,16 @@ expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: just_txt
|
||||
Children: []
|
||||
ClassName: StringValue
|
||||
Id: id-2
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: just_txt
|
||||
Parent: ~
|
||||
Properties:
|
||||
Value:
|
||||
Type: String
|
||||
Value: "Hello, world!"
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,39 +4,39 @@ expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: scripts
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children:
|
||||
- id-3
|
||||
- id-4
|
||||
ClassName: Folder
|
||||
Id: id-2
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: scripts
|
||||
Parent: ~
|
||||
Properties: {}
|
||||
id-3:
|
||||
Id: id-3
|
||||
Parent: id-2
|
||||
Name: bar
|
||||
Children: []
|
||||
ClassName: Script
|
||||
Id: id-3
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: bar
|
||||
Parent: id-2
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: "-- Hello, from bar!"
|
||||
id-4:
|
||||
Children: []
|
||||
ClassName: ModuleScript
|
||||
Id: id-4
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
id-4:
|
||||
Id: id-4
|
||||
Parent: id-2
|
||||
Name: foo
|
||||
ClassName: ModuleScript
|
||||
Parent: id-2
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Updated foo!
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
messageCursor: 1
|
||||
sessionId: id-1
|
||||
|
||||
@@ -4,39 +4,39 @@ expression: "read_response.intern_and_redact(&mut redactions, root_id)"
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: scripts
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children:
|
||||
- id-3
|
||||
- id-4
|
||||
ClassName: Folder
|
||||
Id: id-2
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: scripts
|
||||
Parent: ~
|
||||
Properties: {}
|
||||
id-3:
|
||||
Id: id-3
|
||||
Parent: id-2
|
||||
Name: bar
|
||||
Children: []
|
||||
ClassName: Script
|
||||
Id: id-3
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
Name: bar
|
||||
Parent: id-2
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: "-- Hello, from bar!"
|
||||
id-4:
|
||||
Children: []
|
||||
ClassName: ModuleScript
|
||||
Id: id-4
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
id-4:
|
||||
Id: id-4
|
||||
Parent: id-2
|
||||
Name: foo
|
||||
ClassName: ModuleScript
|
||||
Parent: id-2
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: "-- Hello, from foo!"
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
---
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: redactions.redacted_yaml(subscribe_response)
|
||||
expression: "subscribe_response.intern_and_redact(&mut redactions, ())"
|
||||
---
|
||||
messageCursor: 1
|
||||
messages:
|
||||
- removedInstances: []
|
||||
addedInstances: {}
|
||||
- addedInstances: {}
|
||||
removedInstances: []
|
||||
updatedInstances:
|
||||
- id: id-4
|
||||
- changedClassName: ~
|
||||
changedMetadata: ~
|
||||
changedName: ~
|
||||
changedClassName: ~
|
||||
changedProperties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Updated foo!
|
||||
changedMetadata: ~
|
||||
id: id-4
|
||||
sessionId: id-1
|
||||
|
||||
Reference in New Issue
Block a user