canvas_sync 0.26.0.beta3 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/canvas_sync/concerns/jit_syncing.rb +4 -1
- data/lib/canvas_sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de18757d9f34a2b87abf23c01b530ec430c9b062076807fdfc0a7998275f32fd
|
|
4
|
+
data.tar.gz: 23d760b8d2321535b13f54bd180127da73b850208b9fe8c290c3df104c8bd87c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7550620a27aaf21ef46781f6aa1f13019b5fca01740e1042a84f382617d4ebe685663a3351ddb3672dc4ec04b0690a313a7d0ffa797a3346f80cee36c0f87a4d
|
|
7
|
+
data.tar.gz: 2ddf86c553495b781a7023ad6171f1594c19def1bdfee9fe17dbd1160741f06c229b75d728c3161a4d36bbd34ce1bfc86a6d1ab91e4b2f0b15f5f382e10be2c0
|
|
@@ -19,7 +19,10 @@ module CanvasSync::Concerns
|
|
|
19
19
|
context.instance_variable_set(:@api_response, api_response)
|
|
20
20
|
|
|
21
21
|
api_sync_race_create!(rec, save: true) do |inst2|
|
|
22
|
-
|
|
22
|
+
# Some other thread ended up creating the record before us, so assume that it handled
|
|
23
|
+
# everything beyond this point, including the after_jit_sync hooks
|
|
24
|
+
throw :jit_found, inst2 unless inst2 === rec
|
|
25
|
+
|
|
23
26
|
inst2.assign_from_api_params(api_response)
|
|
24
27
|
end
|
|
25
28
|
|
data/lib/canvas_sync/version.rb
CHANGED